diff --git a/CHANGELOG.md b/CHANGELOG.md index e0e26957..cde57a69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/cypress/integration/add_map_to_dashboard.spec.js b/cypress/integration/add_map_to_dashboard.spec.js index fbb3da8f..02f327c5 100644 --- a/cypress/integration/add_map_to_dashboard.spec.js +++ b/cypress/integration/add_map_to_dashboard.spec.js @@ -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();