Skip to content

Commit 4c9d417

Browse files
Fix Test failures in CI group 16 (#10873)
* Fix Test failures in CI group 16 Signed-off-by: Suchit Sahoo <[email protected]> * Changeset file for PR #10873 created/updated --------- Signed-off-by: Suchit Sahoo <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
1 parent af6ca5f commit 4c9d417

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

changelogs/fragments/10873.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test:
2+
- Fix Failures in CI group 16 ([#10873](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/10873))

cypress/integration/core_opensearch_dashboards/opensearch_dashboards/apps/explore/06/add_log_to_dashboard.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ export const runAddLogToDashboardTests = () => {
113113
const existingDashboardName = 'Test Dashboard';
114114
const exploreName = 'Test Saved Explore in existing dashboard';
115115

116-
cy.getElementByTestId('selectExistingDashboard')
117-
.should('be.visible')
118-
.select(existingDashboardName);
116+
cy.getElementByTestId('selectExistingDashboard').should('be.visible').click();
117+
118+
cy.get(`[title="${existingDashboardName}"]`).click();
119119

120120
cy.get('input[placeholder="Enter save search name"]').should('be.visible').type(exploreName);
121121

cypress/integration/core_opensearch_dashboards/opensearch_dashboards/apps/explore/06/add_vis_to_dashboard.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ export const runAddVisToDashboardTests = () => {
132132
const existingDashboardName = 'Test Dashboard';
133133
const exploreName = 'Test Saved Explore in existing dashboard';
134134

135-
cy.getElementByTestId('selectExistingDashboard')
136-
.should('be.visible')
137-
.select(existingDashboardName);
135+
cy.getElementByTestId('selectExistingDashboard').should('be.visible').click();
136+
137+
cy.get(`[title="${existingDashboardName}"]`).click();
138138

139139
cy.get('input[placeholder="Enter save search name"]').should('be.visible').type(exploreName);
140140

0 commit comments

Comments
 (0)