From ee3600f5424fa5b9d111cbd830a278efda44fc84 Mon Sep 17 00:00:00 2001 From: Oleksandr Dzhychko Date: Mon, 6 Jul 2026 09:03:28 +0000 Subject: [PATCH] test(settings): fix E2E selector for out of office replacement element Signed-off-by: Oleksandr Dzhychko --- cypress/e2e/dav/availability.cy.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/dav/availability.cy.ts b/cypress/e2e/dav/availability.cy.ts index e1cc91d37d5c3..5abb3cdb456c8 100644 --- a/cypress/e2e/dav/availability.cy.ts +++ b/cypress/e2e/dav/availability.cy.ts @@ -94,7 +94,7 @@ describe('Calendar: Availability', { testIsolation: true }, () => { .type('Happy holidays!') cy.intercept('GET', '**/ocs/v2.php/apps/files_sharing/api/v1/sharees?*search=replacement*').as('userSearch') - cy.findByRole('searchbox') + cy.findByLabelText(/Out of office replacement/) .should('be.visible') .as('userSearchBox') .click() @@ -122,7 +122,8 @@ describe('Calendar: Availability', { testIsolation: true }, () => { .should('have.value', 'Vacation') cy.findByRole('textbox', { name: /Long absence/ }) .should('have.value', 'Happy holidays!') - cy.findByRole('combobox') + cy.findByLabelText(/Out of office replacement/) + .closest('.v-select') .should('contain.text', 'replacement-user') }) })