Skip to content

Commit

Permalink
fix: failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alaa-yahia committed Nov 29, 2024
1 parent e2eef67 commit 3f644f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ After({ tags: '@with-restore-deleted-event' }, () => {
.find('[data-test="create-new-button"]')
.click();

cy.get('[data-test="capture-ui-input"]')
cy.get('input[type="text"]')
.first()
.type('2023-01-26')
.blur();
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/NewPage/NewPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,15 +469,15 @@ And('you fill the WHO RMNCH program registration form with its required unique v
});

And('you fill the WHO RMNCH program registration form with its required values', () => {
cy.get('[data-test="capture-ui-input"]')
cy.get('input[type="text"]')
.eq(3)
.type('Didriksson');

cy.get('[data-test="capture-ui-input"]')
cy.get('input[type="text"]')
.eq(2)
.type('Ava');

cy.get('[data-test="capture-ui-input"]')
cy.get('input[type="text"]')
.eq(9)
.type('1985-10-01')
.blur();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Then(/^the user successfully transfers the enrollment/, () => {

Then(/^the user types in (.*)/, (orgunit) => {
cy.get('[data-test="widget-enrollment-transfer-modal"]').within(() => {
cy.get('[data-test="capture-ui-input"]').type(orgunit);
cy.get('input[type="text"]').type(orgunit);
});
});

Expand Down

0 comments on commit 3f644f0

Please sign in to comment.