Skip to content

Commit

Permalink
fix: cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simonadomnisoru committed Nov 4, 2024
1 parent 612523b commit ba1eab7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Then('the enrollment widget should be loaded', () => {
});

When('you click edit mode', () => {
cy.contains('[data-test="dhis2-uicore-button"]', 'Edit event')
cy
.get('[data-test="widget-enrollment-event"]')
.find('[data-test="widget-enrollment-event-edit-button"]')
.click();
cy.contains('Enrollment: Edit Event').should('exist');
});
Expand Down

0 comments on commit ba1eab7

Please sign in to comment.