From 622c7cfd453795fad9a49c90b1b67f5c9ad64978 Mon Sep 17 00:00:00 2001 From: Simona Domnisoru Date: Fri, 15 Sep 2023 14:17:08 +0200 Subject: [PATCH] chore: adapt order scenario --- .../TeiWorkingLists/TeiWorkingListsUser.feature | 4 ++-- .../TeiWorkingLists/TeiWorkingListsUser/index.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cypress/integration/WorkingLists/TeiWorkingLists/TeiWorkingListsUser.feature b/cypress/integration/WorkingLists/TeiWorkingLists/TeiWorkingListsUser.feature index 8059bed14d..fe69bbc858 100644 --- a/cypress/integration/WorkingLists/TeiWorkingLists/TeiWorkingListsUser.feature +++ b/cypress/integration/WorkingLists/TeiWorkingLists/TeiWorkingListsUser.feature @@ -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 diff --git a/cypress/integration/WorkingLists/TeiWorkingLists/TeiWorkingListsUser/index.js b/cypress/integration/WorkingLists/TeiWorkingLists/TeiWorkingListsUser/index.js index 6426baf38c..c2e2b3fde7 100644 --- a/cypress/integration/WorkingLists/TeiWorkingLists/TeiWorkingListsUser/index.js +++ b/cypress/integration/WorkingLists/TeiWorkingLists/TeiWorkingListsUser/index.js @@ -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(); }); @@ -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"]')