From 6b97844e9abfaff895ff6566ba53894e70f161a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Storl=C3=B8kken=20Melseth?= Date: Tue, 23 Feb 2021 16:45:02 +0100 Subject: [PATCH] fix: broken cypress tests --- .../EventWorkingLists/EventWorkingListsDev/index.js | 4 ++-- .../EventWorkingLists/EventWorkingListsUser/index.js | 4 ++-- cypress/integration/NewPage/index.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/integration/EventWorkingLists/EventWorkingListsDev/index.js b/cypress/integration/EventWorkingLists/EventWorkingListsDev/index.js index 9494739a88..cd777d9eb3 100644 --- a/cypress/integration/EventWorkingLists/EventWorkingListsDev/index.js +++ b/cypress/integration/EventWorkingLists/EventWorkingListsDev/index.js @@ -154,7 +154,7 @@ Then('active events that are assigned to anyone should be retrieved from the api When('you set the age filter to 10-20', () => { cy.get('[data-test="event-working-lists"]') - .contains('Age (years)') + .contains('Age in years') .click(); cy.get('[data-test="list-view-filter-contents"]') @@ -175,7 +175,7 @@ When('you apply the current filter', () => { Then('the age filter button should show that the filter is in effect', () => { cy.get('[data-test="event-working-lists"]') - .contains('Age (years): 10 to 20') + .contains('Age in years: 10 to 20') .should('exist'); }); diff --git a/cypress/integration/EventWorkingLists/EventWorkingListsUser/index.js b/cypress/integration/EventWorkingLists/EventWorkingListsUser/index.js index f81bbf98d2..74a5a27a11 100644 --- a/cypress/integration/EventWorkingLists/EventWorkingListsUser/index.js +++ b/cypress/integration/EventWorkingLists/EventWorkingListsUser/index.js @@ -164,7 +164,7 @@ Then('the list should display active events that are assigned to anyone', () => When('you set the age filter to 10-20', () => { cy.get('[data-test="event-working-lists"]') - .contains('Age (years)') + .contains('Age in years') .click(); cy.get('[data-test="list-view-filter-contents"]') @@ -178,7 +178,7 @@ When('you set the age filter to 10-20', () => { Then('the age filter button should show that the filter is in effect', () => { cy.get('[data-test="event-working-lists"]') - .contains('Age (years): 10 to 20') + .contains('Age in years: 10 to 20') .should('exist'); }); diff --git a/cypress/integration/NewPage/index.js b/cypress/integration/NewPage/index.js index 242e1eee66..444f3a8da2 100644 --- a/cypress/integration/NewPage/index.js +++ b/cypress/integration/NewPage/index.js @@ -116,7 +116,7 @@ And('you see the registration form for the Malaria case registration', () => { .contains('Coordinate') .should('exist'); cy.get('[data-test="dhis2-capture-registration-page-content"]') - .contains('Age (years)') + .contains('Age in years') .should('exist'); cy.get('[data-test="dhis2-capture-registration-page-content"]') .contains('Household location')