diff --git a/cypress/e2e/common/add_a_FILTERTYPE_filter.js b/cypress/e2e/common/add_a_FILTERTYPE_filter.js index f2b84ec28..89ff1b6e0 100644 --- a/cypress/e2e/common/add_a_FILTERTYPE_filter.js +++ b/cypress/e2e/common/add_a_FILTERTYPE_filter.js @@ -11,7 +11,7 @@ const OU_ID = 'ImspTQPwCqd' //Sierra Leone const FACILITY_TYPE = 'Clinic' When('I add a {string} filter', (dimensionType) => { - cy.contains('Filter').click() + cy.containsExact('Filter').click() // select an item in the modal switch (dimensionType) { diff --git a/cypress/e2e/filter_restrict/filter_restrict.js b/cypress/e2e/filter_restrict/filter_restrict.js index f0cbb60fb..2dd028a5a 100644 --- a/cypress/e2e/filter_restrict/filter_restrict.js +++ b/cypress/e2e/filter_restrict/filter_restrict.js @@ -168,7 +168,7 @@ Scenario: I restrict filters to no dimensions and do not see Add Filter in dashb */ Then('Add Filter button is not visible', () => { - cy.contains('Filter').should('not.exist') + cy.containsExact('Filter').should('not.exist') }) When('I delete the dashboard', () => { diff --git a/cypress/e2e/view_errors/item_chart_fails_to_render.js b/cypress/e2e/view_errors/item_chart_fails_to_render.js index f01f9d3e2..d3139d5f2 100644 --- a/cypress/e2e/view_errors/item_chart_fails_to_render.js +++ b/cypress/e2e/view_errors/item_chart_fails_to_render.js @@ -41,7 +41,7 @@ Given('I open a dashboard with a chart that will fail', () => { When( 'I apply a {string} filter of type {string}', (dimensionType, filterName) => { - cy.contains('Filter').click() + cy.containsExact('Filter').click() cy.get(filterDimensionsPanelSel).contains(dimensionType).click() cy.get(dimensionsModalSel, EXTENDED_TIMEOUT).should('be.visible')