Skip to content

Commit ba674d9

Browse files
authored
Merge pull request #4078 from cypress-io/8.4.0-release
2 parents 6901009 + 502706e commit ba674d9

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

content/_changelogs/8.4.0.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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).

content/api/commands/url.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Pass in an options object to change the default behavior of `cy.url()`.
3535

3636
| Option | Default | Description |
3737
| --------- | -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
38+
| `decode` | `false` | Decode URL |
3839
| `log` | `true` | Displays the command in the [Command log](/guides/core-concepts/test-runner#Command-Log) |
3940
| `timeout` | [`defaultCommandTimeout`](/guides/references/configuration#Timeouts) | Time to wait for `cy.url()` to resolve before [timing out](#Timeouts) |
4041

@@ -55,6 +56,15 @@ cy.url().should('include', '/users/1/edit') // => true
5556
cy.url().should('eq', 'http://localhost:8000/users/1/edit') // => true
5657
```
5758

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+
5868
## Notes
5969

6070
### Href Shorthand
@@ -142,6 +152,7 @@ When clicking on URL within the Command Log, the console outputs the following:
142152

143153
| Version | Changes |
144154
| --------------------------------------------- | ------------------------ |
155+
| [8.4.0](/guides/references/changelog#8-4-0) | `decode` option added |
145156
| [< 0.3.3](/guides/references/changelog#0-3-3) | `cy.url()` command added |
146157

147158
## See also

0 commit comments

Comments
 (0)