Skip to content

Commit

Permalink
chore: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhaugstulen committed Nov 30, 2023
1 parent 6a895f6 commit 853dcc1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion cypress/e2e/SearchPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ When('you can close the modal', () => {
.contains('Back to search')
.click();
cy.get('[data-test="dhis2-uicore-modal"]')
.contains('No results found')
.should('not.exist');
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Feature: The user interacts with the widgets Schedule tab

# Blocked by DHIS2-16229
@skip
Scenario: User cancel after choose a schedule date in schedule tab
Given you land on the enrollment add event page by having typed #/enrollmentEventNew?programId=IpHINAT79UW&orgUnitId=DiszpKrYNg8&teiId=EaOyKGOIGRp&enrollmentId=wBU0RAsYjKE&stageId=A03MvHHogjR&tab=SCHEDULE
Then you should see Schedule tab
Then you choose a schedule date
When you click cancel in Schedule tab
Then you should see confirm dialog
Then you should see confirm dialog
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ When('you click cancel in Schedule tab', () => {
});

Then('you should see confirm dialog', () => {
cy.get('[role="dialog"]')
cy.get('aside[role="dialog"]')
.find('[data-test="dhis2-uicore-modaltitle"]')
.contains('Discard unsaved changes?')
.should('exist');
Expand Down

0 comments on commit 853dcc1

Please sign in to comment.