Skip to content

Commit

Permalink
Merge pull request #805 from nextcloud/fix/cypress_reference_picker
Browse files Browse the repository at this point in the history
  • Loading branch information
juliushaertl authored Jul 25, 2023
2 parents 5a69647 + 438bf5f commit f6b41aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ jobs:
- name: Run Cypress
uses: cypress-io/github-action@v5
with:
browser: chrome
record: true
parallel: true
wait-on: '${{ env.CYPRESS_baseUrl }}'
Expand Down
10 changes: 8 additions & 2 deletions cypress/e2e/pages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ describe('Page', function() {
cy.get('#titleform input.title')
.should('not.have.attr', 'disabled')
cy.get('#titleform input.title')
.type('{selectAll}New page from Template{enter}')
.clear()
cy.intercept('PUT', '**/_api/*/_pages/parent/*/page/*').as('renamePage')
cy.get('#titleform input.title')
.type('New page from Template')
cy.get('#titleform input.title')
.blur()
cy.wait('@renamePage')
// Flaky on stable25
if (Cypress.env('ncVersion') !== 'stable25') {
cy.getEditor(Cypress.config('defaultCommandTimeout') * 2)
Expand Down Expand Up @@ -227,7 +233,7 @@ describe('Page', function() {
cy.get('.tippy-content .link-picker__item')
.contains('Collective pages')
.click()
cy.get('.reference-picker input[type="text"]')
cy.get('.reference-picker input[type="search"]')
.type('Day 2')
cy.get('.search-result')
.contains('Day 2')
Expand Down

0 comments on commit f6b41aa

Please sign in to comment.