Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI/CD] Bump Cypress Version to 12 #232

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const { defineConfig } = require('cypress');

module.exports = defineConfig({
video: true,
chromeWebSecurity: true,
fixturesFolder: '.cypress/fixtures',
screenshotsFolder: '.cypress/screenshots',
videosFolder: '.cypress/videos',
downloadsFolder: '.cypress/downloads',
viewportWidth: 2000,
viewportHeight: 1320,
requestTimeout: 60000,
responseTimeout: 60000,
defaultCommandTimeout: 60000,
//experimentalNetworkStubbing: true,
//experimentalMemoryManagement: true,
numTestsKeptInMemory: 10, //Default value 50, chrome crashes without lowering
env: {
opensearch: 'localhost:9200',
opensearchDashboards: 'localhost:5601',
security_enabled: true,
},
'cypress-watch-and-reload': {
watch: ['common/**', 'public/**', 'server/**'],
},
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./.cypress/plugins/index.js')(on, config);
},
baseUrl: 'http://localhost:5601',
specPattern: '.cypress/integration/**/*.spec.{js,jsx,ts,tsx}',
supportFile: '.cypress/support/index.js',
},
});
18 changes: 0 additions & 18 deletions cypress.json

This file was deleted.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"test:jest": "../../node_modules/.bin/jest --config test/jest.config.js",
"test": "yarn test:jest",
"build": "yarn plugin-helpers build",
"plugin-helpers": "node ../../scripts/plugin_helpers"
"plugin-helpers": "node ../../scripts/plugin_helpers",
"cypress:run": "TZ=America/Los_Angeles cypress run",
"cypress:open": "TZ=America/Los_Angeles cypress open"
},
"dependencies": {
"brace": "0.11.1",
Expand All @@ -29,13 +31,13 @@
"@testing-library/user-event": "^13.1.9",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/react-test-renderer": "^16.9.1",
"cypress": "^5.0.0",
"cypress": "12.8.1",
"eslint": "^6.8.0",
"husky": "^4.2.5",
"jest-dom": "^4.0.0",
"jest-raw-loader": "^1.0.1",
"lint-staged": "^10.2.0",
"mutationobserver-shim": "^0.3.3",
"jest-dom": "^4.0.0",
"ts-jest": "^29.1.0"
},
"resolutions": {
Expand Down
Loading
Loading