-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c62054f
commit 73d805d
Showing
8 changed files
with
32 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
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
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 |
---|---|---|
|
@@ -6,15 +6,15 @@ title: Migration Guide | |
|
||
## pluginsFile renamed to backgroundFile | ||
|
||
The `pluginsFile` configuration property has been renamed to `backgroundFile`. | ||
The `pluginsFile` configuration property has been renamed to {% url "`backgroundFile`" configuration#Folders-Files %}. In your `cypress.json` file... | ||
|
||
```json | ||
{ | ||
"pluginsFile": "path/to/file.js" | ||
} | ||
``` | ||
|
||
should become: | ||
...should be changed to: | ||
|
||
```json | ||
{ | ||
|
@@ -24,7 +24,7 @@ should become: | |
|
||
## Default background file path changed | ||
|
||
The default path of the {% url 'background file' background-process %} (previously known as the plugins file) has been changed from `cypress/plugins/index.js` to `cypress/background/index.js`. If you don't explicitly set the `backgroundFile` to a custom path, you'll need to move your background file to the new default path. | ||
The default path of the {% url 'background file' background-process %} (previously known as the plugins file) has been changed from `cypress/plugins/index.js` to `cypress/background/index.js`. If you don't explicitly set the `backgroundFile` to a custom path, you'll need to move your background file to the new default path. In your `cypress` folder... | ||
|
||
```text | ||
/cypress | ||
|
@@ -35,7 +35,7 @@ The default path of the {% url 'background file' background-process %} (previous | |
- index.js | ||
``` | ||
|
||
should become: | ||
...should be changed to: | ||
|
||
```text | ||
/cypress | ||
|
@@ -48,12 +48,14 @@ should become: | |
|
||
## Events renamed | ||
|
||
Various events have been renamed to a more consistent format. If you listen for any of the following events in your test code, you'll need to rename them. | ||
Various events have been renamed to maintain a more consistent format. If you listen for any of the following events in your test code, you'll need to rename them. | ||
|
||
- `test:before:run` renamed to `before:test:run` | ||
- `test:after:run` renamed to `after:test:run` | ||
- `window:before:load` renamed to `before:window:load` | ||
- `window:before:unload` renamed to `before:window:unload` | ||
- Rename `test:before:run` to `before:test:run` | ||
- Rename `test:after:run` to `after:test:run` | ||
- Rename `window:before:load` to `before:window:load` | ||
- Rename `window:before:unload` to `before:window:unload` | ||
|
||
In your test code... | ||
|
||
```javascript | ||
Cypress.on('test:before:run', () => { | ||
|
@@ -65,7 +67,7 @@ cy.on('window:before:load', () => { | |
}) | ||
``` | ||
|
||
should become: | ||
...should become: | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jennifer-shehane
Author
Member
|
||
|
||
```javascript | ||
Cypress.on('before:test:run', () => { | ||
|
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
"We've have" 🤔