-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated cypress config for the upgrade (#13239)
Signed-off-by: Yi Cai <[email protected]>
- Loading branch information
Showing
4 changed files
with
55 additions
and
33 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
51 changes: 51 additions & 0 deletions
51
frontend/packages/gitops-plugin/integration-tests/cypress.config.js
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,51 @@ | ||
const { defineConfig } = require("cypress"); | ||
|
||
module.exports = defineConfig({ | ||
projectId: "j4jxoy", | ||
viewportWidth: 1920, | ||
viewportHeight: 1080, | ||
defaultCommandTimeout: 40000, | ||
execTimeout: 90000, | ||
pageLoadTimeout: 90000, | ||
requestTimeout: 15000, | ||
responseTimeout: 15000, | ||
animationDistanceThreshold: 20, | ||
screenshotsFolder: "../../../gui_test_screenshots/cypress/screenshots", | ||
videosFolder: "../../../gui_test_screenshots/cypress/videos", | ||
video: true, | ||
reporter: "../../node_modules/cypress-multi-reporters", | ||
|
||
reporterOptions: { | ||
configFile: "reporter-config.json", | ||
}, | ||
|
||
fixturesFolder: "testData", | ||
defaultCommandTimeout: 40000, | ||
|
||
retries: { | ||
runMode: 1, | ||
openMode: 0, | ||
}, | ||
|
||
env: { | ||
TAGS: "@gitOps and @smoke and not (@manual or @to-do or @un-verified)", | ||
NAMESPACE: "aut-gitops", | ||
}, | ||
|
||
e2e: { | ||
// TODO: see https://issues.redhat.com/browse/CONSOLE-3781 | ||
// We've imported your old cypress plugins here. | ||
// You may want to clean this up later by importing these. | ||
setupNodeEvents(on, config) { | ||
// eslint-disable-next-line global-require | ||
return require("../../dev-console/integration-tests/plugins/index.js")( | ||
on, | ||
config | ||
); | ||
}, | ||
specPattern: "**/*.{feature,features}", | ||
supportFile: "support/commands/index.ts", | ||
baseUrl: "http://localhost:9000", | ||
testIsolation: false, | ||
}, | ||
}); |
29 changes: 0 additions & 29 deletions
29
frontend/packages/gitops-plugin/integration-tests/cypress.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
frontend/packages/gitops-plugin/integration-tests/features/BestPractices.md
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Gherkin Scenarios designing Best Practices | ||
|
||
Follow the rules present in [BestPractices.md](frontend/packages/dev-console/integration-tests/features/BestPractices.md) | ||
Follow the rules present in [BestPractices.md](../../../dev-console/integration-tests/features/BestPractices.md) |