Skip to content

Commit

Permalink
Fix cypress test failed due to OSD dashboard create button updated (#393
Browse files Browse the repository at this point in the history
) (#395)

Signed-off-by: Junqiu Lei <[email protected]>
(cherry picked from commit 1d7e1e9)

Co-authored-by: Junqiu Lei <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and junqiu-lei authored Apr 17, 2023
1 parent ebbc02b commit 593f56a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Infrastructure
* Add CHANGELOG ([#342](https://github.com/opensearch-project/dashboards-maps/pull/342))
* Add stats API for maps and layers in maps plugin ([#362](https://github.com/opensearch-project/dashboards-maps/pull/362))
* Fix cypress test failed due to OSD dashboard create button updated ([#393](https://github.com/opensearch-project/dashboards-maps/pull/393))

### Documentation

Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/add_map_to_dashboard.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('Add map to dashboard', () => {
it('Add new map to dashboard', () => {
const testMapName = 'saved-map-' + Date.now().toString();
cy.visit(`${BASE_PATH}/app/dashboards`);
cy.get('button[data-test-subj="newItemButton"]').click();
cy.get('[data-test-subj="newItemButton"]').click();
cy.get('button[data-test-subj="dashboardAddNewPanelButton"]').click();
cy.get('button[data-test-subj="visType-customImportMap"]').click();
cy.wait(5000).get('button[data-test-subj="mapSaveButton"]').click();
Expand Down

0 comments on commit 593f56a

Please sign in to comment.