Skip to content

Commit 25eda91

Browse files
authored
chore: update cypress to v15 and related pacakges (#12394)
- `cy.stub` usage with 3 arguments is deprecated and removed. With that its usage is replaced by `callsFake`
1 parent 9a04ca4 commit 25eda91

File tree

9 files changed

+139
-186
lines changed

9 files changed

+139
-186
lines changed

packages/ai/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
},
5454
"devDependencies": {
5555
"@custom-elements-manifest/analyzer": "patch:@custom-elements-manifest/analyzer@npm%3A0.10.6#~/.yarn/patches/@custom-elements-manifest-analyzer-npm-0.10.6-9b5ff0c50b.patch",
56-
"@ui5/cypress-internal": "0.0.0",
56+
"@ui5/cypress-internal": "0.1.0",
5757
"@ui5/webcomponents-tools": "2.15.0-rc.2",
5858
"chokidar-cli": "^3.0.0",
59-
"cypress": "^13.0.0",
59+
"cypress": "^15.3.0",
6060
"eslint": "^7.22.0",
6161
"rimraf": "^6.0.1",
6262
"vite": "5.4.8"

packages/base/cypress/specs/ConfigurationURL.cy.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe("Some settings can be set via SAP UI URL params", () => {
1212
before(() => {
1313
const searchParams = "sap-ui-rtl=true&sap-ui-language=ja&sap-ui-calendarType=Japanese&sap-ui-theme=sap_horizon_hcb&sap-ui-animationMode=basic";
1414

15-
cy.stub(internals, "search", () => {
15+
cy.stub(internals, "search").callsFake(() => {
1616
return searchParams;
1717
});
1818

@@ -66,7 +66,7 @@ describe("Different themeRoot configurations", () => {
6666
$el.document.head.append(metaTag);
6767
})
6868

69-
cy.stub(internals, "search", () => {
69+
cy.stub(internals, "search").callsFake(() => {
7070
return searchParams;
7171
});
7272

@@ -95,7 +95,7 @@ describe("Different themeRoot configurations", () => {
9595
it("Unallowed theme root", () => {
9696
const searchParams = "sap-ui-theme=sap_horizon_hcb@https://another-example.com";
9797

98-
cy.stub(internals, "search", () => {
98+
cy.stub(internals, "search").callsFake(() => {
9999
return searchParams;
100100
});
101101

@@ -116,7 +116,7 @@ describe("Different themeRoot configurations", () => {
116116
it("Relative theme root", () => {
117117
const searchParams = "sap-ui-theme=sap_horizon_hcb@./test";
118118

119-
cy.stub(internals, "search", () => {
119+
cy.stub(internals, "search").callsFake(() => {
120120
return searchParams;
121121
});
122122

@@ -142,7 +142,7 @@ describe("Some settings can be set via SAP URL params", () => {
142142
before(() => {
143143
const searchParams = "sap-language=bg&sap-theme=sap_fiori_3_dark";
144144

145-
cy.stub(internals, "search", () => {
145+
cy.stub(internals, "search").callsFake(() => {
146146
return searchParams;
147147
});
148148

@@ -173,7 +173,7 @@ describe("Some settings can be set via SAP UI URL params", () => {
173173
before(() => {
174174
const searchParams = "sap-language=bg&sap-ui-language=de&sap-theme=sap_fiori_3_dark&sap-theme=sap_fiori_3_hcb";
175175

176-
cy.stub(internals, "search", () => {
176+
cy.stub(internals, "search").callsFake(() => {
177177
return searchParams;
178178
});
179179

packages/base/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@
6464
"@custom-elements-manifest/analyzer": "patch:@custom-elements-manifest/analyzer@npm%3A0.10.6#~/.yarn/patches/@custom-elements-manifest-analyzer-npm-0.10.6-9b5ff0c50b.patch",
6565
"@openui5/sap.ui.core": "1.120.17",
6666
"@sap-theming/theming-base-content": "11.29.3",
67-
"@ui5/cypress-internal": "0.0.0",
67+
"@ui5/cypress-internal": "0.1.0",
6868
"@ui5/webcomponents-tools": "2.15.0-rc.2",
6969
"clean-css": "^5.2.2",
7070
"concurrently": "^9.2.1",
7171
"copy-and-watch": "^0.1.5",
7272
"cross-env": "^7.0.3",
73-
"cypress": "^13.0.0",
73+
"cypress": "^15.3.0",
7474
"eslint": "^7.22.0",
7575
"mkdirp": "^1.0.4",
7676
"mocha": "^11.7.2",

packages/compat/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
},
5454
"devDependencies": {
5555
"@custom-elements-manifest/analyzer": "patch:@custom-elements-manifest/analyzer@npm%3A0.10.6#~/.yarn/patches/@custom-elements-manifest-analyzer-npm-0.10.6-9b5ff0c50b.patch",
56-
"@ui5/cypress-internal": "0.0.0",
56+
"@ui5/cypress-internal": "0.1.0",
5757
"@ui5/webcomponents-tools": "2.15.0-rc.2",
5858
"chokidar-cli": "^3.0.0",
59-
"cypress": "^13.0.0",
59+
"cypress": "^15.3.0",
6060
"eslint": "^7.22.0",
6161
"rimraf": "^6.0.1",
6262
"vite": "5.4.8"

packages/cypress-ct-ui5-webc/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ui5/cypress-ct-ui5-webc",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "Custom framework definition adapter for Cypress Component Testing of UI5 Web Components",
55
"license": "MIT",
66
"types": "./dist/index.d.ts",
@@ -21,11 +21,11 @@
2121
"typescript": "^5.6.2"
2222
},
2323
"dependencies": {
24-
"@cypress/mount-utils": "^4.0.0",
25-
"cypress": "^13.11.0",
24+
"@cypress/mount-utils": "^4.1.2",
25+
"cypress": "^15.3.0",
2626
"preact": "^10.25.4"
2727
},
2828
"peerDependencies": {
29-
"@ui5/webcomponents-base": "^2.6.0"
29+
"@ui5/webcomponents-base": "^2.14.0"
3030
}
3131
}

packages/cypress-internal/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ui5/cypress-internal",
3-
"version": "0.0.0",
3+
"version": "0.1.0",
44
"description": "Common testing configuration used internally inside the monorepo",
55
"private": true,
66
"scripts": {
@@ -14,12 +14,12 @@
1414
},
1515
"type": "module",
1616
"dependencies": {
17-
"@cypress/code-coverage": "^3.13.11",
17+
"@cypress/code-coverage": "^3.14.6",
1818
"@ui5/cypress-ct-ui5-webc": "0.0.4",
1919
"axe-core": "^4.10.2",
20-
"cypress": "^13.11.0",
21-
"cypress-axe": "^1.6.0",
22-
"cypress-real-events": "^1.12.0",
20+
"cypress": "^15.3.0",
21+
"cypress-axe": "^1.7.0",
22+
"cypress-real-events": "^1.15.0",
2323
"eslint-plugin-cypress": "^3.4.0",
2424
"rimraf": "^3.0.2",
2525
"typescript": "^5.6.2"

packages/fiori/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
"devDependencies": {
6262
"@custom-elements-manifest/analyzer": "patch:@custom-elements-manifest/analyzer@npm%3A0.10.6#~/.yarn/patches/@custom-elements-manifest-analyzer-npm-0.10.6-9b5ff0c50b.patch",
6363
"@types/add": "^2",
64-
"@ui5/cypress-internal": "0.0.0",
64+
"@ui5/cypress-internal": "0.1.0",
6565
"@ui5/webcomponents-tools": "2.15.0-rc.2",
6666
"add": "^2.0.6",
6767
"chokidar-cli": "^3.0.0",
68-
"cypress": "^13.0.0",
68+
"cypress": "^15.3.0",
6969
"eslint": "^7.22.0",
7070
"lit": "^2.0.0",
7171
"rimraf": "^6.0.1",

packages/main/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161
},
6262
"devDependencies": {
6363
"@custom-elements-manifest/analyzer": "patch:@custom-elements-manifest/analyzer@npm%3A0.10.6#~/.yarn/patches/@custom-elements-manifest-analyzer-npm-0.10.6-9b5ff0c50b.patch",
64-
"@ui5/cypress-internal": "0.0.0",
64+
"@ui5/cypress-internal": "0.1.0",
6565
"@ui5/webcomponents-tools": "2.15.0-rc.2",
6666
"chokidar-cli": "^3.0.0",
67-
"cypress": "^13.0.0",
67+
"cypress": "^15.3.0",
6868
"eslint": "^7.22.0",
6969
"jsdom": "^26.0.0",
7070
"lit": "^2.0.0",

0 commit comments

Comments
 (0)