File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## 8.4.0
2
+
3
+ _ Released 09/13/2021_
4
+
5
+ ** Features:**
6
+
7
+ - When the URL contains non-ASCII characters, you can use the new ` decode `
8
+ option of ` cy.url() ` to decode it. Addresses
9
+ [ #17399 ] ( https://github.com/cypress-io/cypress/issues/17399 ) .
10
+
11
+ ** Bugfixes:**
12
+
13
+ - Cypress now better handles situations where the extension was installed in a
14
+ read-only location. Fixes
15
+ [ #3852 ] ( https://github.com/cypress-io/cypress/issues/3852 ) .
16
+ - A clearer error message is now thrown for ` .check() ` or ` .uncheck() ` when
17
+ there are no matching value attributes found.
18
+ Fixes[ #7379 ] ( https://github.com/cypress-io/cypress/issues/7379 ) .
19
+ - Hooks will no longer rerun on unrelated tests in some situations after a
20
+ domain navigation. Fixes
21
+ [ #17705 ] ( https://github.com/cypress-io/cypress/issues/17705 ) .
22
+ - ` clientCertificate ` types have been added for the Cypress configuration. Fixes
23
+ [ #17799 ] ( https://github.com/cypress-io/cypress/issues/17799 ) .
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ Pass in an options object to change the default behavior of `cy.url()`.
35
35
36
36
| Option | Default | Description |
37
37
| --------- | -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
38
+ | ` decode ` | ` false ` | Decode URL |
38
39
| ` log ` | ` true ` | Displays the command in the [ Command log] ( /guides/core-concepts/test-runner#Command-Log ) |
39
40
| ` timeout ` | [ ` defaultCommandTimeout ` ] ( /guides/references/configuration#Timeouts ) | Time to wait for ` cy.url() ` to resolve before [ timing out] ( #Timeouts ) |
40
41
@@ -55,6 +56,15 @@ cy.url().should('include', '/users/1/edit') // => true
55
56
cy .url ().should (' eq' , ' http://localhost:8000/users/1/edit' ) // => true
56
57
```
57
58
59
+ ### ` decode ` option
60
+
61
+ When the URL contains non-ASCII characters, use the ` decode ` option.
62
+
63
+ ``` javascript
64
+ // For the curious, '사랑' means 'love' in Korean.
65
+ cy .url ({ decode: true }).should (' contain' , ' 사랑' )
66
+ ```
67
+
58
68
## Notes
59
69
60
70
### Href Shorthand
@@ -142,6 +152,7 @@ When clicking on URL within the Command Log, the console outputs the following:
142
152
143
153
| Version | Changes |
144
154
| --------------------------------------------- | ------------------------ |
155
+ | [ 8.4.0] ( /guides/references/changelog#8-4-0 ) | ` decode ` option added |
145
156
| [ < 0.3.3] ( /guides/references/changelog#0-3-3 ) | ` cy.url() ` command added |
146
157
147
158
## See also
You can’t perform that action at this time.
0 commit comments