Skip to content

Commit

Permalink
Bump Cypress version from 5.0.0 to 12.8.1 (#296)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 authored Dec 13, 2023
1 parent 51e3191 commit 1e13d24
Show file tree
Hide file tree
Showing 4 changed files with 298 additions and 483 deletions.
36 changes: 36 additions & 0 deletions gantt-chart/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',
},
});
20 changes: 0 additions & 20 deletions gantt-chart/cypress.json

This file was deleted.

4 changes: 2 additions & 2 deletions gantt-chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/react-plotly.js": "^2.2.4",
"@types/showdown": "^1.9.3",
"cypress": "^5.0.0",
"cypress": "^12.8.1",
"eslint": "^6.8.0",
"jest-dom": "^4.0.0"
},
Expand All @@ -33,4 +33,4 @@
"semver": "^7.5.2",
"@cypress/request": "^3.0.0"
}
}
}
Loading

0 comments on commit 1e13d24

Please sign in to comment.