-
Notifications
You must be signed in to change notification settings - Fork 1.1k
update env / task examples #6331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cypress-documentation
|
||||||||||||||||||||||||||||||||||||||||
| Project |
cypress-documentation
|
| Branch Review |
update-env-task-examples
|
| Run status |
|
| Run duration | 04m 08s |
| Commit |
|
| Committer | Jennifer Shehane |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
311
|
| View all changes introduced in this branch ↗︎ | |
UI Coverage
10.71%
|
|
|---|---|
|
|
2536
|
|
|
3
|
Accessibility
97.19%
|
|
|---|---|
|
|
0 critical
3 serious
4 moderate
0 minor
|
|
|
26
|
| client_secret, | ||
| }, | ||
| }).then(({ body }) => { | ||
| const claims = jwt.decode(body.id_token) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tabs appear off in this section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was probably fixed in a lint check I've run since then.
| refresh_token: refreshToken, | ||
| }, | ||
| }).then(({ body }) => { | ||
| const { access_token, id_token } = body |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tabs appear off in this section.
| function getConfigurationByFile(file, projectRoot) { | ||
| const pathToConfigFile = path.join( | ||
| projectRoot, | ||
| 'cypress', | ||
| 'config', | ||
| `${file}.json` | ||
| ) | ||
|
|
||
| return fs.readJson(pathToConfigFile) | ||
| } | ||
|
|
||
| // plugins file | ||
| module.exports = (on, config) => { | ||
| // accept a configFile value or use development by default | ||
| const file = config.env.configFile || 'development' | ||
| // cypress.config.js or cypress.config.ts | ||
| module.exports = { | ||
| e2e: { | ||
| setupNodeEvents(on, config) { | ||
| // accept a environment value or use development by default | ||
| const file = config.env.environment || 'development' | ||
|
|
||
| return getConfigurationByFile(file) | ||
| return getConfigurationByFile(file, config.projectRoot) | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure this example was just not working since v10 changes
No description provided.