-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade cypress setup (#1421)
* chore: upgrade cypress setup in the user-app project Changes: - upgrade cypress to version 13.0 - upgrade @dhis2/cypress-commands to 10.0.6 - upgrade @dhis2/cypress-plugins to 10.0.6 - replace cypress.json with new config file cypress.config.js - replace cypress-cucumber-preprocessor package with @badeball/cypress-cucumber-preprocessor - rename cypress/integration folder to cypress/e2e - rename cypress/support/index.js to cypress/support/e2e.js * chore: update cypress github action * chore: update node version in gh workflow to 18 * chore: fix linting issues * chore: update fixtures * chore: update api version in github workflow
- Loading branch information
Showing
58 changed files
with
3,758 additions
and
1,433 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
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, | ||
cucumberPreprocessor, | ||
networkShim, | ||
} = require('@dhis2/cypress-plugins') | ||
const { defineConfig } = require('cypress') | ||
|
||
async function setupNodeEvents(on, config) { | ||
await cucumberPreprocessor(on, config) | ||
networkShim(on) | ||
chromeAllowXSiteCookies(on) | ||
return config | ||
} | ||
|
||
module.exports = defineConfig({ | ||
video: false, | ||
projectId: '48zztu', | ||
experimentalInteractiveRunEvents: true, | ||
env: { | ||
dhis2BaseUrl: 'http://localhost:8080', | ||
dhis2Username: 'admin', | ||
dhis2Password: 'district', | ||
dhis2DataTestPrefix: '', | ||
networkMode: 'live', | ||
dhis2ApiVersion: '42', | ||
}, | ||
defaultCommandTimeout: 10000, | ||
requestTimeout: 10000, | ||
e2e: { | ||
setupNodeEvents, | ||
baseUrl: 'http://localhost:3000', | ||
specPattern: 'cypress/e2e/**/*.feature', | ||
excludeSpecPattern: ['**/*-wip/*.feature'], | ||
}, | ||
}) |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ation/homepage/show-action-tiles/index.js → ...s/e2e/homepage/show-action-tiles/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: 1 addition & 1 deletion
2
...ation/navigation/main-navigation/index.js → ...s/e2e/navigation/main-navigation/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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
cypress/integration/user-group/common.js → cypress/e2e/user-group/common.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: 1 addition & 1 deletion
2
...tegration/user-group/list-groups/index.js → cypress/e2e/user-group/list-groups/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: 1 addition & 1 deletion
2
...gration/user-group/search-groups/index.js → ...ess/e2e/user-group/search-groups/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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
cypress/integration/user-role/common.js → cypress/e2e/user-role/common.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: 1 addition & 1 deletion
2
...integration/user-role/list-roles/index.js → cypress/e2e/user-role/list-roles/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: 1 addition & 1 deletion
2
...tegration/user-role/search-roles/index.js → cypress/e2e/user-role/search-roles/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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
cypress/integration/user/common.js → cypress/e2e/user/common.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: 1 addition & 1 deletion
2
cypress/integration/user/list-users/index.js → cypress/e2e/user/list-users/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: 1 addition & 1 deletion
2
...ss/integration/user/search-users/index.js → cypress/e2e/user/search-users/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
Oops, something went wrong.