Skip to content

Commit

Permalink
test(ci): Adjust URL glob for text sessions to also match 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 3090cd3 commit d73bf6d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion cypress/e2e/collective-share.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ describe('Collective Share', function() {
cy.visit(shareUrl)
// Do some handstands to ensure that new page with editor is loaded before we edit the title
cy.intercept('POST', '**/_api/p/*/_pages/*').as('createPage')
cy.intercept('PUT', '**/apps/text/public/session/create').as('textCreateSession')
if (['stable25', 'stable26', 'stable27'].includes(Cypress.env('ncVersion'))) {
cy.intercept('PUT', '**/apps/text/public/session/create').as('textCreateSession')
} else {
cy.intercept('PUT', '**/apps/text/public/session/*/create').as('textCreateSession')
}
cy.contains('.app-content-list-item', 'Share me')
.find('button.action-button-add')
.click()
Expand Down
6 changes: 5 additions & 1 deletion cypress/e2e/page-details.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ describe('Page details', function() {

describe('Displaying backlinks', function() {
it('Lists backlinks for a page', function() {
cy.intercept('PUT', '**/apps/text/session/create').as('textCreateSession')
if (['stable25', 'stable26', 'stable27'].includes(Cypress.env('ncVersion'))) {
cy.intercept('PUT', '**/apps/text/session/create').as('textCreateSession')
} else {
cy.intercept('PUT', '**/apps/text/session/*/create').as('textCreateSession')
}
cy.openPage('Day 1')
cy.wait('@textCreateSession')
cy.get('button.action-item .icon-menu-sidebar').click()
Expand Down
12 changes: 10 additions & 2 deletions cypress/e2e/pages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ describe('Page', function() {
it('New page has template content', function() {
// Do some handstands to ensure that new page with editor is loaded before we edit the title
cy.intercept('POST', '**/_api/*/_pages/*').as('createPage')
cy.intercept('PUT', '**/apps/text/session/create').as('textCreateSession')
if (['stable25', 'stable26', 'stable27'].includes(Cypress.env('ncVersion'))) {
cy.intercept('PUT', '**/apps/text/session/create').as('textCreateSession')
} else {
cy.intercept('PUT', '**/apps/text/session/*/create').as('textCreateSession')
}
cy.contains('.app-content-list-item', 'Our Garden')
.find('button.action-button-add')
.click()
Expand All @@ -137,7 +141,11 @@ describe('Page', function() {
it('Shows the title in the enabled titleform and full path in browser title', function() {
// Do some handstands to ensure that new page with editor is loaded before we edit the title
cy.intercept('POST', '**/_api/*/_pages/*').as('createPage')
cy.intercept('PUT', '**/apps/text/session/create').as('textCreateSession')
if (['stable25', 'stable26', 'stable27'].includes(Cypress.env('ncVersion'))) {
cy.intercept('PUT', '**/apps/text/session/create').as('textCreateSession')
} else {
cy.intercept('PUT', '**/apps/text/session/*/create').as('textCreateSession')
}
cy.contains('.app-content-list-item', '#% special chars')
.find('button.action-button-add')
.click({ force: true })
Expand Down

0 comments on commit d73bf6d

Please sign in to comment.