Skip to content

Commit

Permalink
chore: adapt order scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
simonadomnisoru committed Sep 15, 2023
1 parent 5a3908a commit 622c7cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ And you apply the current filter
When you click the last name column header
Then the sort arrow should indicate ascending order
And the list should display data ordered ascendingly by last name
When you click the WHOMCH Smoking column header
When you click the WHOMCH Hemoglobin value column header
Then the sort arrow should indicate descending order
And the list should display data ordered ascendingly by WHOMCH Smoking
And the list should display data ordered descending by WHOMCH Hemoglobin

@v>=39
Scenario: The user can remove the program stage filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ When('you click the last name column header', () => {
.click();
});

When('you click the WHOMCH Smoking column header', () => {
When('you click the WHOMCH Hemoglobin value column header', () => {
cy.get('[data-test="dhis2-uicore-tableheadercellaction"]')
.eq(6)
.eq(9)
.click()
.click();
});
Expand Down Expand Up @@ -400,10 +400,10 @@ Then('the list should display data ordered ascendingly by last name', () => {
});
});

Then('the list should display data ordered ascendingly by WHOMCH Smoking', () => {
Then('the list should display data ordered descending by WHOMCH Hemoglobin', () => {
const names = [
'Siren',
'Hertz',
'Siren',
];

cy.get('[data-test="tei-working-lists"]')
Expand Down

0 comments on commit 622c7cf

Please sign in to comment.