diff --git a/cypress/styleguide/global.requires.js b/cypress/styleguide/global.requires.js index dc1235eab9..66e2cdb5c8 100644 --- a/cypress/styleguide/global.requires.js +++ b/cypress/styleguide/global.requires.js @@ -7,6 +7,9 @@ import 'core-js/stable' import axios from '@nextcloud/axios' +// Match Nextcloud's root install path so router helpers do not infer Cypress' /__cypress iframe path. +window._oc_webroot = '' + const USER_GROUPS = [ { id: 'admin', displayname: 'The administrators' }, { id: 'accounting', displayname: 'Accounting team' }, diff --git a/package-lock.json b/package-lock.json index 56a305f6ac..98cd5f9a16 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,7 @@ "@nextcloud/vite-config": "^2.5.4", "@playwright/test": "^1.62.1", "@vue/tsconfig": "^0.5.1", - "cypress": "^15.18.1", + "cypress": "^15.19.0", "cypress-downloadfile": "^1.2.4", "cypress-vite": "^1.10.2", "eslint": "^10.8.1", @@ -7913,9 +7913,9 @@ "license": "MIT" }, "node_modules/cypress": { - "version": "15.18.1", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-15.18.1.tgz", - "integrity": "sha512-JtkTVtUE2lvLYgZCaug+Uai0H9IqsJirlBO49c87QwG0bJUGvAUVBz1EJve0b0oaYP244Ew9M0BkrHpcqkYxmw==", + "version": "15.19.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-15.19.0.tgz", + "integrity": "sha512-kjy1u3SWlMRWS5qffH3U+bXx1PqPP7qwhIzEY3UtERcW2r/8zy5uk6uSwa75pYXJyYFVP1SO8mAn/avZUvUbfg==", "dev": true, "hasInstallScript": true, "license": "MIT", diff --git a/package.json b/package.json index 23797ea7e1..d546da5975 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "@nextcloud/vite-config": "^2.5.4", "@playwright/test": "^1.62.1", "@vue/tsconfig": "^0.5.1", - "cypress": "^15.18.1", + "cypress": "^15.19.0", "cypress-downloadfile": "^1.2.4", "cypress-vite": "^1.10.2", "eslint": "^10.8.1",