From 621ff6fed1093b58a08cfbfc0c03a4b00f07125d Mon Sep 17 00:00:00 2001 From: henrikmv Date: Sat, 14 Dec 2024 13:03:03 +0100 Subject: [PATCH] fix: add deleted cy test --- cypress/e2e/ScopeSelector/ScopeSelector.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cypress/e2e/ScopeSelector/ScopeSelector.js b/cypress/e2e/ScopeSelector/ScopeSelector.js index 9307b06055..79b9e21065 100644 --- a/cypress/e2e/ScopeSelector/ScopeSelector.js +++ b/cypress/e2e/ScopeSelector/ScopeSelector.js @@ -194,6 +194,11 @@ When('you remove the program selection', () => { .click(); }); +When('you remove the org unit selection', () => { + cy.get('[data-test="org-unit-selector-container-clear-icon"]') + .click(); +}); + Then('you should be taken to the main page with only org unit selected', () => { cy.url().should('eq', `${Cypress.config().baseUrl}/#/?orgUnitId=DiszpKrYNg8`); });