diff --git a/test/cypress/integration/parking/parkingList.spec.js b/test/cypress/integration/parking/parkingList.spec.js index b78a660d1..f1efaa375 100644 --- a/test/cypress/integration/parking/parkingList.spec.js +++ b/test/cypress/integration/parking/parkingList.spec.js @@ -1,5 +1,6 @@ /// describe('ParkingList', () => { + const searchbar = '#searchbar input'; const firstCard = '.q-card:nth-child(1)'; const firstChipId = ':nth-child(1) > :nth-child(1) > .justify-between > .flex > .q-chip > .q-chip__content'; @@ -14,6 +15,7 @@ describe('ParkingList', () => { }); it('should redirect on clicking a parking', () => { + cy.get(searchbar).type('{enter}'); cy.get(firstChipId) .invoke('text') .then((content) => { @@ -24,6 +26,7 @@ describe('ParkingList', () => { }); it('should open the details', () => { + cy.get(searchbar).type('{enter}'); cy.get(firstDetailBtn).click(); cy.get(summaryHeader).contains('Basic data'); });