Skip to content

Commit

Permalink
test(cypress): Fix unified search selectors for latest Nextcloud 29
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Jan 30, 2024
1 parent 16f25f4 commit 69af9ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/pages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -311,15 +311,15 @@ 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')
.should('contain', 'Day 1')
})

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')
Expand Down

0 comments on commit 69af9ce

Please sign in to comment.