-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [TECH-1654] upgrade cypress to v12 (#3429)
- Loading branch information
1 parent
b35f017
commit b1c1f1a
Showing
98 changed files
with
1,427 additions
and
1,472 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"nonGlobalStepDefinitions": true | ||
} | ||
} |
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,5 @@ | ||
REACT_APP_CACHE_VERSION=$npm_package_cacheVersion | ||
REACT_APP_SERVER_VERSION=$npm_package_serverVersion | ||
REACT_APP_VERSION=$npm_package_version | ||
# TODO: Remove this when upgrading to react-scripts 5 (and webpack 5) | ||
NODE_OPTIONS=--openssl-legacy-provider |
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
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
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
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
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,35 @@ | ||
const { chromeAllowXSiteCookies } = require('@dhis2/cypress-plugins'); | ||
const { defineConfig } = require('cypress'); | ||
const getCypressEnvVariables = require('./cypress/support/getCypressEnvVariables'); | ||
const cucumberPreprocessor = require('./cypress/support/cucumberPreprocessor'); | ||
|
||
async function setupNodeEvents(on, config) { | ||
await chromeAllowXSiteCookies(on); | ||
await cucumberPreprocessor(on, config); | ||
|
||
config.env = getCypressEnvVariables(config); | ||
return config; | ||
} | ||
|
||
module.exports = defineConfig({ | ||
video: true, | ||
dhis2_datatest_prefix: 'dhis2-capture', | ||
chromeWebSecurityComment: | ||
'chromeWebSecurity should removed once https://github.com/cypress-io/cypress/issues/4220 is fixed', | ||
chromeWebSecurity: false, | ||
defaultCommandTimeout: 25000, | ||
projectId: '322xnh', | ||
experimentalFetchPolyfill: true, | ||
retries: { | ||
runMode: 3, | ||
}, | ||
env: { | ||
dhis2DataTestPrefix: 'capture-app', | ||
networkMode: 'live', | ||
}, | ||
e2e: { | ||
setupNodeEvents, | ||
baseUrl: 'http://localhost:3000', | ||
specPattern: 'cypress/e2e/**/*.feature', | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
...gration/AllAccessibleRecordsPage/index.js → ...ess/e2e/AllAccessibleRecordsPage/index.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
File renamed without changes.
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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...EnrollmentAddEventPageNavigation/index.js → ...EnrollmentAddEventPageNavigation/index.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
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
...ddEventPage/ProgramStageSelector/index.js → ...ddEventPage/ProgramStageSelector/index.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
2 changes: 2 additions & 0 deletions
2
...ion/EnrollmentAddEventPage/sharedSteps.js → ...e2e/EnrollmentAddEventPage/sharedSteps.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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...Page/EnrollmentEditEventPageForm/index.js → ...Page/EnrollmentEditEventPageForm/index.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
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
...nrollmentEditEventPageNavigation/index.js → ...nrollmentEditEventPageNavigation/index.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
2 changes: 2 additions & 0 deletions
2
...n/EnrollmentPage/BreakingTheGlass.feature → ...e/EnrollmentPage/BreakingTheGlass.feature
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
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
File renamed without changes.
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
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
...lmentPage/EnrollmentQuickActions/index.js → ...lmentPage/EnrollmentQuickActions/index.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
File renamed without changes.
Oops, something went wrong.