diff --git a/cypress/e2e/nodes/CodeBlock.spec.js b/cypress/e2e/nodes/CodeBlock.spec.js index dabbf097d3c..ca7e2de66bc 100644 --- a/cypress/e2e/nodes/CodeBlock.spec.js +++ b/cypress/e2e/nodes/CodeBlock.spec.js @@ -72,7 +72,7 @@ describe('Front matter support', function() { .click() // FIXME: Label behaviour changed, should be back once https://github.com/nextcloud-libraries/nextcloud-vue/pull/4484 is merged // cy.get('.action-input__text-label').contains('Code block language') - cy.get('.input-field__input:visible').clear() + cy.get('.action-input .input-field__input').clear() cy.getContent().find('code').eq(1).click() @@ -89,7 +89,7 @@ describe('Front matter support', function() { .find('[data-cy="code-action-group"]') .find('div:first-child') .click() - cy.get('.input-field__input:visible').type('javascript') + cy.get('.action-input .input-field__input').type('javascript') cy.getContent() .find('code') diff --git a/cypress/e2e/nodes/HardBreak.spec.js b/cypress/e2e/nodes/HardBreak.spec.js index bea49ac85a2..dd8a9d4825f 100644 --- a/cypress/e2e/nodes/HardBreak.spec.js +++ b/cypress/e2e/nodes/HardBreak.spec.js @@ -39,7 +39,7 @@ describe('Hard break support', function() { expect($p[0]).to.contain('Hello') expect($p[1]).to.contain('world') }) - cy.getContent().type('{home}{backspace}') + cy.getContent().type('{home}{backspace}', { delay: 10 }) cy.getContent().find('p br').should('exist') }) diff --git a/package-lock.json b/package-lock.json index 3d151711829..de64c0f1e7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -105,7 +105,7 @@ "@vue/test-utils": "^2.5.1", "@vue/tsconfig": "^0.9.1", "@vueuse/core": "^15.0.0", - "cypress": "^15.21.1", + "cypress": "^16.1.0", "cypress-split": "^1.25.0", "cypress-vite": "^1.10.2", "eslint": "^10.11.0", @@ -9230,9 +9230,9 @@ "license": "MIT" }, "node_modules/cypress": { - "version": "15.21.1", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-15.21.1.tgz", - "integrity": "sha512-ogHpHMj0XNlZA5MGzjg8SWHf0eMw9lTwVQRKjpcT1GzNTxNUjwnHA8YCG6nOJ8ThU+XZaUxJgpMYZnJ//8aDaw==", + "version": "16.1.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-16.1.0.tgz", + "integrity": "sha512-t8suSUVzQyHI7v6KhhA07M9ChftdfqVZNLCekhguIb+2f0fCmI8WAih5L0oGH7K6slapNduGy5zpJ+17LmSXkQ==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -9253,7 +9253,7 @@ "cli-table3": "0.6.1", "commander": "^6.2.1", "common-tags": "^1.8.0", - "dayjs": "^1.10.4", + "dayjs": "^1.11.23", "debug": "^4.3.4", "eventemitter2": "6.4.7", "execa": "4.1.0", @@ -9281,7 +9281,7 @@ "cypress": "bin/cypress" }, "engines": { - "node": "^20.1.0 || ^22.0.0 || >=24.0.0" + "node": "^22.0.0 || ^24.0.0 || >=26.0.0" } }, "node_modules/cypress-split": { @@ -9879,9 +9879,9 @@ } }, "node_modules/dayjs": { - "version": "1.11.21", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.21.tgz", - "integrity": "sha512-98IT+HOahAisibz/yjKbzuOBwYcjJ7BCLPzARyHiyEBmRz4fatF+KPJszEHXsGYjUG234aH/cOjW1wwTbKUZlA==", + "version": "1.11.23", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.23.tgz", + "integrity": "sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==", "license": "MIT" }, "node_modules/de-indent": { diff --git a/package.json b/package.json index ae75c972185..fae02f62cb1 100644 --- a/package.json +++ b/package.json @@ -123,7 +123,7 @@ "@vue/test-utils": "^2.5.1", "@vue/tsconfig": "^0.9.1", "@vueuse/core": "^15.0.0", - "cypress": "^15.21.1", + "cypress": "^16.1.0", "cypress-split": "^1.25.0", "cypress-vite": "^1.10.2", "eslint": "^10.11.0",