From 69af9ceb6a643638f4b0ecc99697e25c3c29fc2c Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 30 Jan 2024 12:53:06 +0100 Subject: [PATCH] test(cypress): Fix unified search selectors for latest Nextcloud 29 Signed-off-by: Jonas --- cypress/e2e/pages.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/pages.spec.js b/cypress/e2e/pages.spec.js index 9fd36e628..690cf0cc2 100644 --- a/cypress/e2e/pages.spec.js +++ b/cypress/e2e/pages.spec.js @@ -232,7 +232,7 @@ describe('Page', function() { .should('not.exist') // Restore image - cy.get('.attachment-list-deleted >>>>>>> button.action-item__menutoggle') + cy.get('.attachment-list-deleted button.action-item__menutoggle') .click() cy.get('button') .contains('Restore') @@ -311,7 +311,7 @@ describe('Page', function() { describe('Using the search providers to search for a page', function() { it('Search for page title', function() { - cy.get('.unified-search a, .unified-search button, button.unified-search__button').click() + cy.get('.unified-search a, button.unified-search__button, .unified-search-menu button').click() cy.get('.unified-search__form input, .unified-search-modal input') .type('Day') cy.get('.unified-search__results-collectives-pages, .unified-search-modal__results') @@ -319,7 +319,7 @@ describe('Page', function() { }) it('Search for page content', function() { - cy.get('.unified-search a, .unified-search button, button.unified-search__button').click() + cy.get('.unified-search a, button.unified-search__button, .unified-search-menu button').click() cy.get('.unified-search__form input, .unified-search-modal input') .type('share your thoughts') cy.get('.unified-search__results-collectives-page-content, .unified-search-modal__results')