Skip to content

Commit

Permalink
test(cypress): Adjust unified search selectors for Nextcloud 28
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Dec 5, 2023
1 parent 1b44b3c commit 204994f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cypress/e2e/pages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,18 +335,18 @@ 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').click()
cy.get('.unified-search__form input')
cy.get('.unified-search a, .unified-search button, button.global-search__button').click()
cy.get('.unified-search__form input, .global-search-modal input')
.type('Day')
cy.get('.unified-search__results-collectives-pages')
cy.get('.unified-search__results-collectives-pages, .global-search-modal__results')
.should('contain', 'Day 1')
})

it('Search for page content', function() {
cy.get('.unified-search a, .unified-search button').click()
cy.get('.unified-search__form input')
cy.get('.unified-search a, .unified-search button, button.global-search__button').click()
cy.get('.unified-search__form input, .global-search-modal input')
.type('share your thoughts')
cy.get('.unified-search__results-collectives-page-content')
cy.get('.unified-search__results-collectives-page-content, .global-search-modal__results')
.should('contain', 'your thoughts that really matter')
})
})
Expand Down

0 comments on commit 204994f

Please sign in to comment.