Skip to content

Commit 3917540

Browse files
authored
Bunp Cypress Version to 12 (opensearch-project#232)
Signed-off-by: Ryan Liang <[email protected]>
1 parent 86c26dd commit 3917540

File tree

4 files changed

+180
-506
lines changed

4 files changed

+180
-506
lines changed

cypress.config.js

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
const { defineConfig } = require('cypress');
2+
3+
module.exports = defineConfig({
4+
video: true,
5+
chromeWebSecurity: true,
6+
fixturesFolder: '.cypress/fixtures',
7+
screenshotsFolder: '.cypress/screenshots',
8+
videosFolder: '.cypress/videos',
9+
downloadsFolder: '.cypress/downloads',
10+
viewportWidth: 2000,
11+
viewportHeight: 1320,
12+
requestTimeout: 60000,
13+
responseTimeout: 60000,
14+
defaultCommandTimeout: 60000,
15+
//experimentalNetworkStubbing: true,
16+
//experimentalMemoryManagement: true,
17+
numTestsKeptInMemory: 10, //Default value 50, chrome crashes without lowering
18+
env: {
19+
opensearch: 'localhost:9200',
20+
opensearchDashboards: 'localhost:5601',
21+
security_enabled: true,
22+
},
23+
'cypress-watch-and-reload': {
24+
watch: ['common/**', 'public/**', 'server/**'],
25+
},
26+
e2e: {
27+
// We've imported your old cypress plugins here.
28+
// You may want to clean this up later by importing these.
29+
setupNodeEvents(on, config) {
30+
return require('./.cypress/plugins/index.js')(on, config);
31+
},
32+
baseUrl: 'http://localhost:5601',
33+
specPattern: '.cypress/integration/**/*.spec.{js,jsx,ts,tsx}',
34+
supportFile: '.cypress/support/index.js',
35+
},
36+
});

cypress.json

-18
This file was deleted.

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
"test:jest": "../../node_modules/.bin/jest --config test/jest.config.js",
2020
"test": "yarn test:jest",
2121
"build": "yarn plugin-helpers build",
22-
"plugin-helpers": "node ../../scripts/plugin_helpers"
22+
"plugin-helpers": "node ../../scripts/plugin_helpers",
23+
"cypress:run": "TZ=America/Los_Angeles cypress run",
24+
"cypress:open": "TZ=America/Los_Angeles cypress open"
2325
},
2426
"dependencies": {
2527
"brace": "0.11.1",
@@ -29,13 +31,13 @@
2931
"@testing-library/user-event": "^13.1.9",
3032
"@types/enzyme-adapter-react-16": "^1.0.6",
3133
"@types/react-test-renderer": "^16.9.1",
32-
"cypress": "^5.0.0",
34+
"cypress": "12.8.1",
3335
"eslint": "^6.8.0",
3436
"husky": "^4.2.5",
37+
"jest-dom": "^4.0.0",
3538
"jest-raw-loader": "^1.0.1",
3639
"lint-staged": "^10.2.0",
3740
"mutationobserver-shim": "^0.3.3",
38-
"jest-dom": "^4.0.0",
3941
"ts-jest": "^29.1.0"
4042
},
4143
"resolutions": {

0 commit comments

Comments
 (0)