Skip to content

Commit

Permalink
fix: stabilize flacky cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simonadomnisoru committed Dec 4, 2024
1 parent a19ed6e commit d7ee45c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cypress/e2e/NewPage/NewPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,9 @@ And('you see the enrollment minimap', () => {
});

And('you delete the recently added tracked entity', () => {
cy.get('[data-test="profile-widget"]')
.contains('Person profile')
.should('exist');
cy.get('[data-test="widget-profile-overflow-menu"]')
.click();
cy.contains('Delete Person')
Expand All @@ -646,6 +649,9 @@ And('you delete the recently added tracked entity', () => {
});

And('you delete the recently added malaria entity', () => {
cy.get('[data-test="profile-widget"]')
.contains('Malaria Entity profile')
.should('exist');
cy.get('[data-test="widget-profile-overflow-menu"]')
.click();
cy.contains('Delete Malaria Entity')
Expand Down

0 comments on commit d7ee45c

Please sign in to comment.