Skip to content

Commit

Permalink
Merge pull request #1523 from dhis2/working-lists-test-fix
Browse files Browse the repository at this point in the history
fix: broken cypress tests
  • Loading branch information
JoakimSM authored Feb 24, 2021
2 parents ba744b1 + 6b97844 commit 931bd31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]')
Expand All @@ -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');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]')
Expand All @@ -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');
});

Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/NewPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 931bd31

Please sign in to comment.