-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.x] Bump Cypress to version 12 (#234)
* [Backport 2.x] Bump Cypress to version 12 Signed-off-by: Ryan Liang <[email protected]> * Add cypress cmd Signed-off-by: Ryan Liang <[email protected]> --------- Signed-off-by: Ryan Liang <[email protected]>
- Loading branch information
Showing
4 changed files
with
195 additions
and
515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.