Skip to content
Merged

Develop #1923

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 10 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"@cypress/questions-remain": "1.0.1",
"@keyv/redis": "github:bahmutov/keyv-redis#b64f44cd1d1e87893d989b1469068af8292299d5",
"@types/fluent-ffmpeg": "2.1.10",
"@types/jest": "24.0.15",
"@types/jest": "24.0.16",
"beeper": "2.0.0",
"bin-up": "1.2.0",
"chai": "4.2.0",
Expand All @@ -92,7 +92,7 @@
"colors": "1.3.3",
"common-tags": "1.8.0",
"concurrent-transform": "1.0.0",
"cypress": "3.4.0",
"cypress": "3.4.1",
"dependency-check": "3.4.1",
"deps-ok": "1.4.1",
"eslint": "6.1.0",
Expand Down
17 changes: 17 additions & 0 deletions source/faq/questions/using-cypress-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,23 @@ describe('The Document Metadata', () => {
})
```

## {% fa fa-angle-right %} Can I check that a form's HTML form validation is shown when an input is invalid?

You certainly can.

```javascript
it('check validation message on invalid input', () => {
cy.get('input:invalid').should('have.length', 0)
cy.get('[type="email"]').type('not_an_email')
cy.get('[type="submit"]').click()
cy.get('input:invalid').should('have.length', 1)
cy.get('[type="email"]').then(($input) => {
expect($input[0].validationMessage).to.eq('I expect an email!')
})
})
```


## {% fa fa-angle-right %} Can I throttle network speeds using Cypress?

You can throttle your network connection by accessing your Developer Tools Network panel. Additionally, you can add your own custom presets by selecting **Custom > Add** from the Network Conditions drawer.
Expand Down
2 changes: 1 addition & 1 deletion source/guides/guides/continuous-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ See our {% url 'examples' docker %} for additional information on our maintained
If you are not using one of the above CI providers then make sure your system has these dependencies installed.

```shell
apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
apt-get install xvfb libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
```

## Caching
Expand Down
32 changes: 17 additions & 15 deletions source/ja/_changelogs/3.4.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,41 @@

**Bugfixes:**

- We upgraded the `lodash` dependency to fix the security vulnerability warning. Fixes {% issue 4699 %}, {% issue 4730 %}, {% issue 4743 %}.
- Videos that were stopping recording prematurely before the test results were fully displayed should now record until all test results are displayed. Fixes {% issue 2370 %}.
- We fixed a bug where pages using non-UTF-8 character encoding would become corrupted when opened in Cypress. Fixes {% issue 3479 %}, {% issue 1543 %}, and {% issue 3650 %}.
- Fixed a regression introduced in {% url "3.4.0" changelog#3-4-0 %} that caused an error to be thrown when using the `and` chainable getter. Fixes {% issue 4833 %}.
- Fixed a bug where the content of pages using non-UTF-8 character encoding would become corrupted when opened in Cypress. Fixes {% issue 3479 %}, {% issue 1543 %}, and {% issue 3650 %}.
- Fixed a regression introduced in {% url "3.4.0" changelog#3-4-0 %} that caused an error to be thrown when chaining together multiple assertions using the `and` chainable getter. Fixes {% issue 4833 %}.
- The `include` and `includes` assertion chainers now correctly work the same as `contain` and `contains` assertion chainers. Fixes {% issue 4833 %}.
- Cypress now correctly runs when there is no internet connection on Windows when testing a localhost URL. Fixes {% issue 4763 %}.
- We now check for the `readonly` attribute when seeing if an attribute is typeable during {% url "`cy.type()`" type %}. Fixes {% issue 1246 %}.
- Variables beginning with `top` and `location` in the application under test are no longer modified when `modifyObstructiveCode` is `true`. Fixes {% issue 4794 %}.
- We removed erroneous socket connections when there is no browser running. Fixes {% issue 4776 %}.
- We upgraded the `mocha-teamcity-reporter` dependency so that it no longer errors in certain situations when trying to access duration. Fixes {% issue 4654 %}.
- Cypress now correctly works offline on Windows when visiting a localhost URL. Fixes {% issue 4763 %}.
- {% url "`cy.type()`" type %} now factors in the `readonly` property of `<input />` elements, and will wait for this property to be `false` before attempting to type. Fixes {% issue 1246 %}.
- Variables beginning with `top` and `location` in your application code are no longer modified when `modifyObstructiveCode` is `true`. Fixes {% issue 4794 %}.
- We removed erroneous socket connections when the browser is initially launching. Fixes {% issue 4776 %}.
- Fixed a bug when dismissing pinned snapshots that would cause the page to be wiped with nothing rendered. Fixes {% issue 4864 %}.
- We upgraded the `mocha-teamcity-reporter` dependency so that it no longer errors in certain situations when trying to access duration on tests. Fixes {% issue 4654 %}.
- We upgraded the `lodash` dependency to fix a security vulnerability warning. Fixes {% issue 4699 %}, {% issue 4730 %}, {% issue 4743 %}.

**Misc:**

- Cypress now looks for any npm proxy configurations when no other system proxy configuration is found. Addresses {% issue 4719 %}.
- We updated the messaging when there is a failure when downloading Cypress to recommend checking your proxy settings. Addresses {% issue 1662 %}.
- A warning message now displays if you attempt to run the Cypress binary directly (not as an `npm` package). Addresses {% issue 1573 %}.
- There are newly added examples in the types for {% url "custom commands" custom-commands %}, {% url "`cy.location`" location %} and {% url "`.should()`" should %}. Addresses {% issue 3684 %} and {% issue 4715 %}.
- We now ensure we are shipping with production versions of dependencies such as `react`, `mobx`, etc. This should help to prevent conflicts with Developer Tools extensions and increase performance by reducing memory, heap allocation, and overall JS bundle size. Addresses {% issue 4844 %}.
- Video recordings now wait after all tests finish to ensure that the video captures the final rendered frames of the browser. This prevents the last few paints from being cut off. Fixes {% issue 2370 %}.
- Cypress now looks for any npm proxy configuration values as a fallback when no other system proxy configuration is found. This brings this feature into parity with how npm reads off proxy configuration values during an `npm install`. Addresses {% issue 4719 %}.
- We updated the messaging when there is a failure downloading Cypress to recommend checking your proxy settings. Addresses {% issue 1662 %}.
- A warning message now displays if you attempt to run the Cypress binary directly instead of going through the cypress `npm` package. Addresses {% issue 1573 %}.
- There are newly added examples in the TypeScript definitions for {% url "custom commands" custom-commands %}, {% url "`cy.location()`" location %} and {% url "`.should()`" should %}. Addresses {% issue 3684 %} and {% issue 4715 %}.
- The types for the {% url "`cy.contains(content, options)`" contains %} syntax have been added. Addresses {% issue 4727 %}.
- Types for `cy.once()` have been added. Addressed in {% PR 4788 %}.
- There is now a `{ parseSpecialCharSequences: false }` option to {% url "`cy.type()`" type %} that disables parsing the special character sequences found between the `{}` characters. This will now type what you've provided literally without any special parsing. Fixes {% issue 4287 %}.
- You can now zoom in the main Test Runner window and also the Electron browser. Corresponding keyboard shortcuts for Zoom in, Zoom out and Actual Size are also available. Addresses {% issue 1231 %}.
- When viewing the Test Runner's main window at its smallest size, the header text no longer incorrectly wraps. Addresses {% issue 86 %}.
- We're continuing to make process in converting our codebase from CoffeeScript to JavaScript. Addresses {% issue 2690 %} in {% PR 4781 %} and {% PR 4817 %}.
- We increased the cypress binary verification phase from 10 seconds to 30 seconds to accomodate underpowered or overwhelmed machines typically found in CI environments. Addresses {% issue 4624 %}.

**Documentation Changes:**

- We have new instructions on how to set up {% url "GitHub Integration" github-integration %} with the Cypress Dashboard.
- Updated instructions for adding types for custom commands in the {% url "TypeScript Support" typescript-support#Types-for-custom-commands %} doc. Addressed in {% url "#1901" https://github.com/cypress-io/cypress-documentation/pull/1901 %}
- Added a section about video encoding and how to speed up the encoding time to {% url "Screenshots and Videos" screenshots-and-videos#Video-encoding %} doc. Addressed in {% url "#1880" https://github.com/cypress-io/cypress-documentation/pull/1880 %}


**Dependency Updates**

- We now ensure we are shipping with production versions of dependencies. This should prevent conflicts with development versions in the application under test and increase performance by avoiding potential memory issues. Addresses {% issue 4844 %}.
- Upgraded `@ffmpeg-installer/ffmpeg` from `1.0.17` to `1.0.19`. Addressed in {% PR 4792 %}.
- Upgraded `browserify` from `13.3.0` to `16.3.0`. Addressed in {% PR 4751 %}, {% PR 4825 %} and {% PR 4826 %}.
- Upgraded `data-uri-to-buffer` from `1.2.0` to `2.0.1`. Addressed in {% PR 4622 %}.
Expand Down
17 changes: 17 additions & 0 deletions source/ja/faq/questions/using-cypress-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,23 @@ describe('The Document Metadata', () => {
})
```

## {% fa fa-angle-right %} Can I check that a form's HTML form validation is shown when an input is invalid?

You certainly can.

```javascript
it('check validation message on invalid input', () => {
cy.get('input:invalid').should('have.length', 0)
cy.get('[type="email"]').type('not_an_email')
cy.get('[type="submit"]').click()
cy.get('input:invalid').should('have.length', 1)
cy.get('[type="email"]').then(($input) => {
expect($input[0].validationMessage).to.eq('I expect an email!')
})
})
```


## {% fa fa-angle-right %} Can I throttle network speeds using Cypress?

You can throttle your network connection by accessing your Developer Tools Network panel. Additionally, you can add your own custom presets by selecting **Custom > Add** from the Network Conditions drawer.
Expand Down
2 changes: 1 addition & 1 deletion source/ja/guides/guides/continuous-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ See our {% url 'examples' docker %} for additional information on our maintained
If you are not using one of the above CI providers then make sure your system has these dependencies installed.

```shell
apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
apt-get install xvfb libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
```

## Caching
Expand Down
31 changes: 17 additions & 14 deletions source/zh-cn/_changelogs/3.4.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,32 @@

**Bugfixes:**

- We upgraded the `lodash` dependency to fix the security vulnerability warning. Fixes {% issue 4699 %}, {% issue 4730 %}, {% issue 4743 %}.
- Videos that were stopping recording prematurely before the test results were fully displayed should now record until all test results are displayed. Fixes {% issue 2370 %}.
- We fixed a bug where pages using non-UTF-8 character encoding would become corrupted when opened in Cypress. Fixes {% issue 3479 %}, {% issue 1543 %}, and {% issue 3650 %}.
- Fixed a regression introduced in {% url "3.4.0" changelog#3-4-0 %} that caused an error to be thrown when using the `and` chainable getter. Fixes {% issue 4833 %}.
- Fixed a bug where the content of pages using non-UTF-8 character encoding would become corrupted when opened in Cypress. Fixes {% issue 3479 %}, {% issue 1543 %}, and {% issue 3650 %}.
- Fixed a regression introduced in {% url "3.4.0" changelog#3-4-0 %} that caused an error to be thrown when chaining together multiple assertions using the `and` chainable getter. Fixes {% issue 4833 %}.
- The `include` and `includes` assertion chainers now correctly work the same as `contain` and `contains` assertion chainers. Fixes {% issue 4833 %}.
- Cypress now correctly runs when there is no internet connection on Windows when testing a localhost URL. Fixes {% issue 4763 %}.
- We now check for the `readonly` attribute when seeing if an attribute is typeable during {% url "`cy.type()`" type %}. Fixes {% issue 1246 %}.
- Variables beginning with `top` and `location` in the application under test are no longer modified when `modifyObstructiveCode` is `true`. Fixes {% issue 4794 %}.
- We removed erroneous socket connections when there is no browser running. Fixes {% issue 4776 %}.
- We upgraded the `mocha-teamcity-reporter` dependency so that it no longer errors in certain situations when trying to access duration. Fixes {% issue 4654 %}.
- Cypress now correctly works offline on Windows when visiting a localhost URL. Fixes {% issue 4763 %}.
- {% url "`cy.type()`" type %} now factors in the `readonly` property of `<input />` elements, and will wait for this property to be `false` before attempting to type. Fixes {% issue 1246 %}.
- Variables beginning with `top` and `location` in your application code are no longer modified when `modifyObstructiveCode` is `true`. Fixes {% issue 4794 %}.
- We removed erroneous socket connections when the browser is initially launching. Fixes {% issue 4776 %}.
- Fixed a bug when dismissing pinned snapshots that would cause the page to be wiped with nothing rendered. Fixes {% issue 4864 %}.
- We upgraded the `mocha-teamcity-reporter` dependency so that it no longer errors in certain situations when trying to access duration on tests. Fixes {% issue 4654 %}.
- We upgraded the `lodash` dependency to fix a security vulnerability warning. Fixes {% issue 4699 %}, {% issue 4730 %}, {% issue 4743 %}.

**Misc:**

- Cypress now looks for any npm proxy configurations when no other system proxy configuration is found. Addresses {% issue 4719 %}.
- We updated the messaging when there is a failure when downloading Cypress to recommend checking your proxy settings. Addresses {% issue 1662 %}.
- A warning message now displays if you attempt to run the Cypress binary directly (not as an `npm` package). Addresses {% issue 1573 %}.
- There are newly added examples in the types for {% url "custom commands" custom-commands %}, {% url "`cy.location`" location %} and {% url "`.should()`" should %}. Addresses {% issue 3684 %} and {% issue 4715 %}.
- We now ensure we are shipping with production versions of dependencies such as `react`, `mobx`, etc. This should help to prevent conflicts with Developer Tools extensions and increase performance by reducing memory, heap allocation, and overall JS bundle size. Addresses {% issue 4844 %}.
- Video recordings now wait after all tests finish to ensure that the video captures the final rendered frames of the browser. This prevents the last few paints from being cut off. Fixes {% issue 2370 %}.
- Cypress now looks for any npm proxy configuration values as a fallback when no other system proxy configuration is found. This brings this feature into parity with how npm reads off proxy configuration values during an `npm install`. Addresses {% issue 4719 %}.
- We updated the messaging when there is a failure downloading Cypress to recommend checking your proxy settings. Addresses {% issue 1662 %}.
- A warning message now displays if you attempt to run the Cypress binary directly instead of going through the cypress `npm` package. Addresses {% issue 1573 %}.
- There are newly added examples in the TypeScript definitions for {% url "custom commands" custom-commands %}, {% url "`cy.location()`" location %} and {% url "`.should()`" should %}. Addresses {% issue 3684 %} and {% issue 4715 %}.
- The types for the {% url "`cy.contains(content, options)`" contains %} syntax have been added. Addresses {% issue 4727 %}.
- Types for `cy.once()` have been added. Addressed in {% PR 4788 %}.
- There is now a `{ parseSpecialCharSequences: false }` option to {% url "`cy.type()`" type %} that disables parsing the special character sequences found between the `{}` characters. This will now type what you've provided literally without any special parsing. Fixes {% issue 4287 %}.
- You can now zoom in the main Test Runner window and also the Electron browser. Corresponding keyboard shortcuts for Zoom in, Zoom out and Actual Size are also available. Addresses {% issue 1231 %}.
- When viewing the Test Runner's main window at its smallest size, the header text no longer incorrectly wraps. Addresses {% issue 86 %}.
- We're continuing to make process in converting our codebase from CoffeeScript to JavaScript. Addresses {% issue 2690 %} in {% PR 4781 %} and {% PR 4817 %}.
- We increased the cypress binary verification phase from 10 seconds to 30 seconds to accomodate underpowered or overwhelmed machines typically found in CI environments. Addresses {% issue 4624 %}.

**Documentation Changes:**

Expand All @@ -39,7 +43,6 @@

**Dependency Updates**

- We now ensure we are shipping with production versions of dependencies. This should prevent conflicts with development versions in the application under test and increase performance by avoiding potential memory issues. Addresses {% issue 4844 %}.
- Upgraded `@ffmpeg-installer/ffmpeg` from `1.0.17` to `1.0.19`. Addressed in {% PR 4792 %}.
- Upgraded `browserify` from `13.3.0` to `16.3.0`. Addressed in {% PR 4751 %}, {% PR 4825 %} and {% PR 4826 %}.
- Upgraded `data-uri-to-buffer` from `1.2.0` to `2.0.1`. Addressed in {% PR 4622 %}.
Expand Down
Loading