Skip to content

Commit

Permalink
chore: bump cypress to v 11 (apache#30262)
Browse files Browse the repository at this point in the history
  • Loading branch information
eschutho authored Sep 19, 2024
1 parent 78099b0 commit a90aa05
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 50 deletions.
10 changes: 7 additions & 3 deletions superset-frontend/cypress-base/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@
import { defineConfig } from 'cypress';
import eyesPlugin from '@applitools/eyes-cypress';

const { verifyDownloadTasks } = require('cy-verify-downloads');

export default eyesPlugin(
defineConfig({
chromeWebSecurity: false,
defaultCommandTimeout: 8000,
numTestsKeptInMemory: 0,
experimentalFetchPolyfill: true,
experimentalMemoryManagement: true,
requestTimeout: 10000,
video: false,
videoUploadOnPasses: false,
viewportWidth: 1280,
viewportHeight: 1024,
projectId: 'ud5x2f',
Expand Down Expand Up @@ -60,9 +62,11 @@ export default eyesPlugin(
}
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
return require('./cypress/plugins/index.js')(on, config);
return config;
},
baseUrl: 'http://localhost:8088',
excludeSpecPattern: [],
Expand Down
31 changes: 0 additions & 31 deletions superset-frontend/cypress-base/cypress/plugins/index.js

This file was deleted.

28 changes: 14 additions & 14 deletions superset-frontend/cypress-base/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions superset-frontend/cypress-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@cypress/code-coverage": "^3.10.4",
"@superset-ui/core": "^2.1.0",
"brace": "^0.11.1",
"cy-verify-downloads": "^0.1.6",
"cy-verify-downloads": "^0.2.5",
"cypress-fail-on-console-error": "^4.0.3",
"querystringify": "^2.2.0",
"react-dom": "^16.13.0",
Expand All @@ -29,7 +29,7 @@
},
"devDependencies": {
"@types/querystringify": "^2.0.0",
"cypress": "^10.11.0",
"cypress": "^11.2.0",
"eslint-plugin-cypress": "^3.5.0"
}
}

0 comments on commit a90aa05

Please sign in to comment.