From 98439d852b61ae98a63a78bcca21f634f5388850 Mon Sep 17 00:00:00 2001 From: Leonardo de Souza Date: Tue, 3 Jan 2023 16:32:36 +0100 Subject: [PATCH] test: fix slider and rich text failing e2e test --- automation/run-e2e/lib/docker-utils.mjs | 2 +- automation/run-e2e/mendix-versions.json | 2 +- automation/run-e2e/package.json | 2 +- .../cypress/integration/RichText.spec.js | 2 +- .../cypress/integration/Slider.spec.js | 2 +- pnpm-lock.yaml | 28 +++++++++---------- 6 files changed, 18 insertions(+), 20 deletions(-) diff --git a/automation/run-e2e/lib/docker-utils.mjs b/automation/run-e2e/lib/docker-utils.mjs index c185218d64..e6326af816 100644 --- a/automation/run-e2e/lib/docker-utils.mjs +++ b/automation/run-e2e/lib/docker-utils.mjs @@ -158,7 +158,7 @@ export function startCypress(ip, freePort) { // container name `--name cypress`, // image to run, the entrypoint set to `cypress run` by default - `cypress/included:12.1.0`, + `cypress/included:12.2.0`, // cypress options `--browser ${browserCypress} ${headedMode}`.trim(), `--e2e`, diff --git a/automation/run-e2e/mendix-versions.json b/automation/run-e2e/mendix-versions.json index c4755fe091..5b0a0c0370 100644 --- a/automation/run-e2e/mendix-versions.json +++ b/automation/run-e2e/mendix-versions.json @@ -1,4 +1,4 @@ { - "latest": "9.20.0.58427", + "latest": "9.21.0.59661", "8": "8.18.19.47894" } diff --git a/automation/run-e2e/package.json b/automation/run-e2e/package.json index 460cb1f1ed..a856fd5113 100644 --- a/automation/run-e2e/package.json +++ b/automation/run-e2e/package.json @@ -22,7 +22,7 @@ "dependencies": { "ansi-colors": "^4.1.3", "cross-zip": "^4.0.0", - "cypress": "^12.1.0", + "cypress": "^12.2.0", "cypress-image-diff-js": "^1.22.0", "cypress-terminal-report": "^5.0.0", "enquirer": "^2.3.6", diff --git a/packages/pluggableWidgets/rich-text-web/cypress/integration/RichText.spec.js b/packages/pluggableWidgets/rich-text-web/cypress/integration/RichText.spec.js index 174b34b544..0e4ab7ca26 100644 --- a/packages/pluggableWidgets/rich-text-web/cypress/integration/RichText.spec.js +++ b/packages/pluggableWidgets/rich-text-web/cypress/integration/RichText.spec.js @@ -22,7 +22,7 @@ describe("RichText", () => { }); before(() => { - cy.visit("/"); + cy.visit("index.html"); cy.contains("Generate Data").click(); }); diff --git a/packages/pluggableWidgets/slider-web/cypress/integration/Slider.spec.js b/packages/pluggableWidgets/slider-web/cypress/integration/Slider.spec.js index 67e53326e7..013ff381ce 100644 --- a/packages/pluggableWidgets/slider-web/cypress/integration/Slider.spec.js +++ b/packages/pluggableWidgets/slider-web/cypress/integration/Slider.spec.js @@ -9,7 +9,7 @@ describe("Slider widget", () => { describe("Slider", () => { it("renders with context", () => { - cy.visit("/"); + cy.visit("index.html"); cy.get(".mx-name-textBoxMinimumValue") .find("input") .then($minimumValue => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 580c984afb..3fc4f8a6d8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -78,7 +78,7 @@ importers: specifiers: ansi-colors: ^4.1.3 cross-zip: ^4.0.0 - cypress: ^12.1.0 + cypress: ^12.2.0 cypress-image-diff-js: ^1.22.0 cypress-terminal-report: ^5.0.0 enquirer: ^2.3.6 @@ -93,9 +93,9 @@ importers: dependencies: ansi-colors: 4.1.3 cross-zip: 4.0.0 - cypress: 12.1.0 - cypress-image-diff-js: 1.22.0_cypress@12.1.0 - cypress-terminal-report: 5.0.0_cypress@12.1.0 + cypress: 12.2.0 + cypress-image-diff-js: 1.22.0_cypress@12.2.0 + cypress-terminal-report: 5.0.0_cypress@12.2.0 enquirer: 2.3.6 eslint: 7.32.0 eslint-plugin-cypress: 2.12.1_eslint@7.32.0 @@ -4440,7 +4440,7 @@ packages: jest-react-hooks-shallow: 1.5.1 jest-svg-transformer: 1.0.0_jest@26.6.3+react@17.0.2 mendix: 9.19.55544 - metro-react-native-babel-preset: 0.63.0_@babel+core@7.20.7 + metro-react-native-babel-preset: 0.63.0 node-fetch: 2.6.7 postcss: 8.4.17 postcss-import: 14.1.0_postcss@8.4.17 @@ -4533,7 +4533,7 @@ packages: jest-react-hooks-shallow: 1.5.1 jest-svg-transformer: 1.0.0_jest@26.6.3+react@17.0.2 mendix: 9.19.55544 - metro-react-native-babel-preset: 0.63.0_@babel+core@7.20.7 + metro-react-native-babel-preset: 0.63.0 node-fetch: 2.6.7 postcss: 8.4.17 postcss-import: 14.1.0_postcss@8.4.17 @@ -7396,7 +7396,7 @@ packages: resolution: {integrity: sha512-d4ZVpCW31eWwCMe1YT3ur7mUDnTXbgwyzaL320DrcRT45rfjYxkt5QWLrmOJ+/UEAI2+fQgKe/fCjR8l4TpRgw==} dev: true - /cypress-image-diff-js/1.22.0_cypress@12.1.0: + /cypress-image-diff-js/1.22.0_cypress@12.2.0: resolution: {integrity: sha512-ugCXZF6mVcp+TQQBrb2xARgFsnS5Mt3MCVpAr/fiF/GG7usuuiJWbHqQ+98H0kIoPIvFJzC5Nzf6VZ1+zycHLw==} hasBin: true peerDependencies: @@ -7405,7 +7405,7 @@ packages: '@babel/runtime': 7.19.4 arg: 4.1.3 colors: 1.4.0 - cypress: 12.1.0 + cypress: 12.2.0 cypress-recurse: 1.24.0 fs-extra: 9.1.0 handlebars: 4.7.7 @@ -7419,20 +7419,20 @@ packages: humanize-duration: 3.27.3 dev: false - /cypress-terminal-report/5.0.0_cypress@12.1.0: + /cypress-terminal-report/5.0.0_cypress@12.2.0: resolution: {integrity: sha512-X5JVRB2fs/KbZJU19qLjzcLidA2TO4g5dm4ya4XDXLoGvtEDI9XWSX+E8CFC25wzbvczIboWGBxLKSsDRZrTBw==} peerDependencies: cypress: '>=4.10.0' dependencies: chalk: 4.1.2 - cypress: 12.1.0 + cypress: 12.2.0 fs-extra: 10.1.0 semver: 7.3.8 tv4: 1.3.0 dev: false - /cypress/12.1.0: - resolution: {integrity: sha512-7fz8N84uhN1+ePNDsfQvoWEl4P3/VGKKmAg+bJQFY4onhA37Ys+6oBkGbNdwGeC7n2QqibNVPhk8x3YuQLwzfw==} + /cypress/12.2.0: + resolution: {integrity: sha512-kvl95ri95KK8mAy++tEU/wUgzAOMiIciZSL97LQvnOinb532m7dGvwN0mDSIGbOd71RREtmT9o4h088RjK5pKw==} engines: {node: ^14.0.0 || ^16.0.0 || >=18.0.0} hasBin: true requiresBuild: true @@ -11413,10 +11413,8 @@ packages: engines: {node: '>= 8'} dev: true - /metro-react-native-babel-preset/0.63.0_@babel+core@7.20.7: + /metro-react-native-babel-preset/0.63.0: resolution: {integrity: sha512-iTM6V/hzqTd2dg0LHtD4f/TU+d4A7MFiMPUmIYDb0OZmCq6avfcxHQTXk/ZNbAr+eRoN/owx9OIkjt/CvG4vUA==} - peerDependencies: - '@babel/core': '*' dependencies: '@babel/core': 7.20.7 '@babel/plugin-proposal-class-properties': 7.18.6_@babel+core@7.20.7