Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Veyssier <eneiluj@posteo.net>2022-04-25 17:41:26 +0300
committerGitHub <noreply@github.com>2022-04-25 17:41:26 +0300
commit8069a4071f05a52df7c54eee058c3f73158b74d5 (patch)
tree3bf3f4292f3128facb20bd34796425222f1048f8
parent5a321eb0c47959413dca15cc91f2a4e3570df562 (diff)
parent269c0648994a751ba7957719dff965e2a5a7a9e3 (diff)
Merge pull request #2336 from nextcloud/revert/stable24/2333
Fix cypress tests on stable24
-rw-r--r--.github/workflows/cypress.yml2
-rw-r--r--cypress/integration/workspace.spec.js4
-rw-r--r--cypress/support/commands.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml
index 4004a485e..c69f33dc7 100644
--- a/.github/workflows/cypress.yml
+++ b/.github/workflows/cypress.yml
@@ -23,7 +23,7 @@ jobs:
# containers: [1, 2, 3]
php-versions: [ '7.4' ]
databases: [ 'sqlite' ]
- server-versions: [ 'master' ]
+ server-versions: [ 'stable24' ]
steps:
- name: Use Node.js ${{ matrix.node-version }}
diff --git a/cypress/integration/workspace.spec.js b/cypress/integration/workspace.spec.js
index f7edfd907..ba41e828b 100644
--- a/cypress/integration/workspace.spec.js
+++ b/cypress/integration/workspace.spec.js
@@ -59,11 +59,11 @@ describe('Workspace', function() {
['strike', 's'],
].forEach(([button, tag]) => {
menuButton(button)
- .click()
+ .click({ force: true })
.should('have.class', 'is-active')
cy.get(`.ProseMirror ${tag}`).should('contain', 'Format me')
menuButton(button)
- .click()
+ .click({ force: true })
.should('not.have.class', 'is-active')
})
})
diff --git a/cypress/support/commands.js b/cypress/support/commands.js
index ef0a5fa35..80382bbe4 100644
--- a/cypress/support/commands.js
+++ b/cypress/support/commands.js
@@ -33,7 +33,7 @@ Cypress.Commands.add('login', (user, password, { route, onBeforeLoad } = {}) =>
cy.visit(route)
cy.get('input[name=user]').type(user)
cy.get('input[name=password]').type(password)
- cy.get('.submit-wrapper input[type=submit]').click()
+ cy.get('#submit-wrapper input[type=submit]').click()
cy.url().should('include', route)
})
// in case the session already existed but we are on a different route...