chore: bump cypress to v 11 (#30262)
This commit is contained in:
parent
78099b0d1f
commit
a90aa055f5
|
|
@ -20,15 +20,17 @@
|
||||||
import { defineConfig } from 'cypress';
|
import { defineConfig } from 'cypress';
|
||||||
import eyesPlugin from '@applitools/eyes-cypress';
|
import eyesPlugin from '@applitools/eyes-cypress';
|
||||||
|
|
||||||
|
const { verifyDownloadTasks } = require('cy-verify-downloads');
|
||||||
|
|
||||||
export default eyesPlugin(
|
export default eyesPlugin(
|
||||||
defineConfig({
|
defineConfig({
|
||||||
chromeWebSecurity: false,
|
chromeWebSecurity: false,
|
||||||
defaultCommandTimeout: 8000,
|
defaultCommandTimeout: 8000,
|
||||||
numTestsKeptInMemory: 0,
|
numTestsKeptInMemory: 0,
|
||||||
experimentalFetchPolyfill: true,
|
experimentalFetchPolyfill: true,
|
||||||
|
experimentalMemoryManagement: true,
|
||||||
requestTimeout: 10000,
|
requestTimeout: 10000,
|
||||||
video: false,
|
video: false,
|
||||||
videoUploadOnPasses: false,
|
|
||||||
viewportWidth: 1280,
|
viewportWidth: 1280,
|
||||||
viewportHeight: 1024,
|
viewportHeight: 1024,
|
||||||
projectId: 'ud5x2f',
|
projectId: 'ud5x2f',
|
||||||
|
|
@ -60,9 +62,11 @@ export default eyesPlugin(
|
||||||
}
|
}
|
||||||
return launchOptions;
|
return launchOptions;
|
||||||
});
|
});
|
||||||
|
// eslint-disable-next-line global-require
|
||||||
|
require('@cypress/code-coverage/task')(on, config);
|
||||||
|
on('task', verifyDownloadTasks);
|
||||||
// eslint-disable-next-line global-require,import/extensions
|
// eslint-disable-next-line global-require,import/extensions
|
||||||
return require('./cypress/plugins/index.js')(on, config);
|
return config;
|
||||||
},
|
},
|
||||||
baseUrl: 'http://localhost:8088',
|
baseUrl: 'http://localhost:8088',
|
||||||
excludeSpecPattern: [],
|
excludeSpecPattern: [],
|
||||||
|
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
/**
|
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
||||||
* or more contributor license agreements. See the NOTICE file
|
|
||||||
* distributed with this work for additional information
|
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
|
||||||
* to you under the Apache License, Version 2.0 (the
|
|
||||||
* "License"); you may not use this file except in compliance
|
|
||||||
* with the License. You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
// This function is called when a project is opened or re-opened (e.g. due to
|
|
||||||
// the project's config changing)
|
|
||||||
|
|
||||||
const { isFileExist, findFiles } = require('cy-verify-downloads');
|
|
||||||
|
|
||||||
module.exports = (on, config) => {
|
|
||||||
// eslint-disable-next-line global-require
|
|
||||||
require('@cypress/code-coverage/task')(on, config);
|
|
||||||
on('task', { isFileExist, findFiles });
|
|
||||||
return config;
|
|
||||||
};
|
|
||||||
|
|
||||||
require('@applitools/eyes-cypress')(module);
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
"@cypress/code-coverage": "^3.10.4",
|
"@cypress/code-coverage": "^3.10.4",
|
||||||
"@superset-ui/core": "^2.1.0",
|
"@superset-ui/core": "^2.1.0",
|
||||||
"brace": "^0.11.1",
|
"brace": "^0.11.1",
|
||||||
"cy-verify-downloads": "^0.1.6",
|
"cy-verify-downloads": "^0.2.5",
|
||||||
"cypress-fail-on-console-error": "^4.0.3",
|
"cypress-fail-on-console-error": "^4.0.3",
|
||||||
"nanoid": "^5.0.7",
|
"nanoid": "^5.0.7",
|
||||||
"querystringify": "^2.2.0",
|
"querystringify": "^2.2.0",
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/querystringify": "^2.0.0",
|
"@types/querystringify": "^2.0.0",
|
||||||
"cypress": "^10.11.0",
|
"cypress": "^11.2.0",
|
||||||
"eslint-plugin-cypress": "^3.5.0"
|
"eslint-plugin-cypress": "^3.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -4810,14 +4810,14 @@
|
||||||
"integrity": "sha512-u1wmTI1jJGzCJzWndZo8mk4wnPTZd1eOIYTYvuEyOQGfmDl3TrabCCfKnOC86FZwW/9djqTl933UF/cS425i9A=="
|
"integrity": "sha512-u1wmTI1jJGzCJzWndZo8mk4wnPTZd1eOIYTYvuEyOQGfmDl3TrabCCfKnOC86FZwW/9djqTl933UF/cS425i9A=="
|
||||||
},
|
},
|
||||||
"node_modules/cy-verify-downloads": {
|
"node_modules/cy-verify-downloads": {
|
||||||
"version": "0.1.6",
|
"version": "0.2.5",
|
||||||
"resolved": "https://registry.npmjs.org/cy-verify-downloads/-/cy-verify-downloads-0.1.6.tgz",
|
"resolved": "https://registry.npmjs.org/cy-verify-downloads/-/cy-verify-downloads-0.2.5.tgz",
|
||||||
"integrity": "sha512-oYeAgL/ncAAfeh3bjCQlrD125cHzwlTQ+20hgMeQw64oBQp95DOcji7epPOADtzuRXu72P8j3DkZYlaY8gINtA=="
|
"integrity": "sha512-HiFsVlHOm0EStSZKaeKUgWbIzEahm9vNV0ggavr++q5fdqhJnc/8NXsTl0VzIHLgIXnBN6b9Y7Hfy1BAmuwlZQ=="
|
||||||
},
|
},
|
||||||
"node_modules/cypress": {
|
"node_modules/cypress": {
|
||||||
"version": "10.11.0",
|
"version": "11.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/cypress/-/cypress-10.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/cypress/-/cypress-11.2.0.tgz",
|
||||||
"integrity": "sha512-lsaE7dprw5DoXM00skni6W5ElVVLGAdRUUdZjX2dYsGjbY/QnpzWZ95Zom1mkGg0hAaO/QVTZoFVS7Jgr/GUPA==",
|
"integrity": "sha512-u61UGwtu7lpsNWLUma/FKNOsrjcI6wleNmda/TyKHe0dOBcVjbCPlp1N6uwFZ0doXev7f/91YDpU9bqDCFeBLA==",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cypress/request": "^2.88.10",
|
"@cypress/request": "^2.88.10",
|
||||||
|
|
@ -14168,14 +14168,14 @@
|
||||||
"integrity": "sha512-u1wmTI1jJGzCJzWndZo8mk4wnPTZd1eOIYTYvuEyOQGfmDl3TrabCCfKnOC86FZwW/9djqTl933UF/cS425i9A=="
|
"integrity": "sha512-u1wmTI1jJGzCJzWndZo8mk4wnPTZd1eOIYTYvuEyOQGfmDl3TrabCCfKnOC86FZwW/9djqTl933UF/cS425i9A=="
|
||||||
},
|
},
|
||||||
"cy-verify-downloads": {
|
"cy-verify-downloads": {
|
||||||
"version": "0.1.6",
|
"version": "0.2.5",
|
||||||
"resolved": "https://registry.npmjs.org/cy-verify-downloads/-/cy-verify-downloads-0.1.6.tgz",
|
"resolved": "https://registry.npmjs.org/cy-verify-downloads/-/cy-verify-downloads-0.2.5.tgz",
|
||||||
"integrity": "sha512-oYeAgL/ncAAfeh3bjCQlrD125cHzwlTQ+20hgMeQw64oBQp95DOcji7epPOADtzuRXu72P8j3DkZYlaY8gINtA=="
|
"integrity": "sha512-HiFsVlHOm0EStSZKaeKUgWbIzEahm9vNV0ggavr++q5fdqhJnc/8NXsTl0VzIHLgIXnBN6b9Y7Hfy1BAmuwlZQ=="
|
||||||
},
|
},
|
||||||
"cypress": {
|
"cypress": {
|
||||||
"version": "10.11.0",
|
"version": "11.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/cypress/-/cypress-10.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/cypress/-/cypress-11.2.0.tgz",
|
||||||
"integrity": "sha512-lsaE7dprw5DoXM00skni6W5ElVVLGAdRUUdZjX2dYsGjbY/QnpzWZ95Zom1mkGg0hAaO/QVTZoFVS7Jgr/GUPA==",
|
"integrity": "sha512-u61UGwtu7lpsNWLUma/FKNOsrjcI6wleNmda/TyKHe0dOBcVjbCPlp1N6uwFZ0doXev7f/91YDpU9bqDCFeBLA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@cypress/request": "^2.88.10",
|
"@cypress/request": "^2.88.10",
|
||||||
"@cypress/xvfb": "^1.2.4",
|
"@cypress/xvfb": "^1.2.4",
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
"@cypress/code-coverage": "^3.10.4",
|
"@cypress/code-coverage": "^3.10.4",
|
||||||
"@superset-ui/core": "^2.1.0",
|
"@superset-ui/core": "^2.1.0",
|
||||||
"brace": "^0.11.1",
|
"brace": "^0.11.1",
|
||||||
"cy-verify-downloads": "^0.1.6",
|
"cy-verify-downloads": "^0.2.5",
|
||||||
"cypress-fail-on-console-error": "^4.0.3",
|
"cypress-fail-on-console-error": "^4.0.3",
|
||||||
"querystringify": "^2.2.0",
|
"querystringify": "^2.2.0",
|
||||||
"react-dom": "^16.13.0",
|
"react-dom": "^16.13.0",
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/querystringify": "^2.0.0",
|
"@types/querystringify": "^2.0.0",
|
||||||
"cypress": "^10.11.0",
|
"cypress": "^11.2.0",
|
||||||
"eslint-plugin-cypress": "^3.5.0"
|
"eslint-plugin-cypress": "^3.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue