bahmutov / cypress-svelte-unit-test

Unit testing Svelte components in Cypress E2E test runner
162 stars 21 forks source link

Update dependency cypress to v4.6.0 #98

Closed renovate[bot] closed 4 years ago

renovate[bot] commented 4 years ago

This PR contains the following updates:

Package Type Update Change
cypress devDependencies minor 4.5.0 -> 4.6.0

Release Notes

cypress-io/cypress ### [`v4.6.0`](https://togithub.com/cypress-io/cypress/releases/v4.6.0) [Compare Source](https://togithub.com/cypress-io/cypress/compare/v4.5.0...v4.6.0) _Released 5/20/2020_ **Features:** - [Errors](https://on.cypress.io/debugging#Errors) in the Test Runner now display a code frame to preview where the failure occurred with the relevant file, line number, and column number highlighted. Clicking on the file link will open the file in your [preferred file opener](https://on.cypress.io/IDE-integration#File-Opener-Preference) and highlight the line and column in editors that support it. Addresses [#​3762](https://togithub.com/cypress-io/cypress/issues/3762). - Cypress now utilizes [source maps](https://on.cypress.io/debugging#Source-maps) to enhance the error experience. Stack traces are translated so that your source files are shown instead of the generated file that is loaded by the browser. Cypress will include an inline source map in your spec file. If you [modify the preprocessor](https://on.cypress.io/preprocessors-api), ensure that inline source maps are enabled to get the same experience. Users of `@cypress/webpack-preprocessor` should upgrade to v5.4.1 or later of the package which will correctly inline source maps. Addresses [#​881](https://togithub.com/cypress-io/cypress/issues/881), [#​1761](https://togithub.com/cypress-io/cypress/issues/1761) and [#​3966](https://togithub.com/cypress-io/cypress/issues/3966). - Cypress now enables AST-based JS/HTML rewriting when setting the [`experimentalSourceRewriting`](https://on.cypress.io/experiments) configuration option to `true`. Addresses [#​5273](https://togithub.com/cypress-io/cypress/issues/5273). - Number arguments passed to `have.text`, `have.id`, `have.data`, `have.value`, and `have.attr` [assertions chainers](https://on.cypress.io/assertions#Chai-jQuery) are now automatically cast to strings for comparison. Addresses [#​7314](https://togithub.com/cypress-io/cypress/issues/7314). **Bugfixes:** - Default [TypeScript](https://on.cypress.io/typescript-support) options are now set to `module: commonJS` which Node.js and the browser expect. This fixes a situation where setting a different module in a `tsconfig.json` would cause errors to throw if you had `export`, `import` or `async` keywords in your code. Fixes [#​7005](https://togithub.com/cypress-io/cypress/issues/7005), [#​7011](https://togithub.com/cypress-io/cypress/issues/7011), [#​7043](https://togithub.com/cypress-io/cypress/issues/7043), and [#​7151](https://togithub.com/cypress-io/cypress/issues/7151). - When [`experimentalSourceRewriting`](https://on.cypress.io/experiments) is enabled, setting `location` or `location.href` to a relative href, or using `location.replace` or `location.assign` with a relative href will no longer navigate the AUT to the wrong URL. Fixes [#​3975](https://togithub.com/cypress-io/cypress/issues/3975) and [#​3994](https://togithub.com/cypress-io/cypress/issues/3994). - When [`experimentalSourceRewriting`](https://on.cypress.io/experiments) is enabled, the use of `window.top` and `window.parent` will no longer cause the AUT to break out of the Cypress iframe. Fixes [#​5271](https://togithub.com/cypress-io/cypress/issues/5271) and [#​1467](https://togithub.com/cypress-io/cypress/issues/1467). - When [`experimentalSourceRewriting`](https://on.cypress.io/experiments) is enabled, calls to `window.frames`, `window.parent.frames`, and other `frames` will no longer point to the wrong reference after being proxied through Cypress. Fixes [#​2664](https://togithub.com/cypress-io/cypress/issues/2664). - When [`experimentalSourceRewriting`](https://on.cypress.io/experiments) is enabled, scripts using the `integrity` attribute for sub-resource integrity (SRI) will now load after being proxied through Cypress. Fixes [#​2393](https://togithub.com/cypress-io/cypress/issues/2393). - When [`experimentalSourceRewriting`](https://on.cypress.io/experiments) is enabled, the use of `document.location` to set the URL will no longer navigate the AUT to the wrong URL. Fixes [#​7402](https://togithub.com/cypress-io/cypress/issues/7402). - Type definitions will no longer conflict when running Cypress in a project with Jest. Fixes [#​3536](https://togithub.com/cypress-io/cypress/issues/3536). - We increased the timeout for launching Firefox from 2.5 seconds to 50 seconds. Previously, users hitting this limit would encounter a "cannot open socket" error; now, the error will be wrapped. Fixes [#​7159](https://togithub.com/cypress-io/cypress/issues/7159). - [`.click`](https://on.cypress.io/click) will now click in the correct coordinates when either x or y coordinate options are zero. Fixes [#​7319](https://togithub.com/cypress-io/cypress/issues/7319). - Cypress no longer displays `onError is not a function` when a browser can't connect. Fixes [#​7217](https://togithub.com/cypress-io/cypress/issues/7217). - You can now pass the `force: true` option to [`.select()`](https://on.cypress.io/select) to select options within a disabled `