Skip to content

Commit

Permalink
Fixed failing cypress test
Browse files Browse the repository at this point in the history
Reservation type input filled so much space that reserver name input was no longer visible which caused the test to fail. Fixed by first scrolling name into view and then resuming with testing.
  • Loading branch information
SanttuA committed Nov 15, 2023
1 parent f45b6ea commit 5bbae48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cypress/e2e/my-premises-page.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ describe('my premises page', () => {
cy.intercept('POST', '**/reservation/', { body: updatedReservation }).as('postReservation');

// fill reservation form
cy.get('#reserverName').scrollIntoView().should('be.visible');
cy.get('#reserverName').should('be.visible').type('Test Tester');
cy.get('button').contains('Tallenna').click();

Expand Down

0 comments on commit 5bbae48

Please sign in to comment.