From ad4aa914ba8bbe8a502e747c6c2db4bea92c89fb Mon Sep 17 00:00:00 2001 From: SanttuA Date: Tue, 19 Mar 2024 11:33:57 +0200 Subject: [PATCH] Updated cypress test to handle universal field being required --- cypress/e2e/my-premises-page.cy.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/e2e/my-premises-page.cy.js b/cypress/e2e/my-premises-page.cy.js index fcd63565a..959813a52 100644 --- a/cypress/e2e/my-premises-page.cy.js +++ b/cypress/e2e/my-premises-page.cy.js @@ -47,6 +47,8 @@ describe('my premises page', () => { // fill reservation form cy.get('#reserverName').scrollIntoView().should('be.visible'); cy.get('#reserverName').should('be.visible').type('Test Tester'); + cy.get('#universalData').scrollIntoView().should('be.visible').select(1); + cy.get('#universalData').should('have.value', '1'); cy.get('button').contains('Tallenna').click(); // check success message