From 842be2e200184aff497ab51a3eb7e4743e5b0cc1 Mon Sep 17 00:00:00 2001 From: Emily Rohrbough Date: Mon, 26 Sep 2022 11:52:37 -0500 Subject: [PATCH 01/34] fix: correctly fail session when setup func has failing command or assertion --- .../app/cypress/e2e/runner/sessions.ui.cy.ts | 32 +++++++ .../e2e/commands/sessions/sessions.cy.js | 85 +++++++++++++++---- .../driver/src/cy/commands/sessions/index.ts | 14 ++- .../src/cy/commands/sessions/manager.ts | 1 + packages/driver/src/cypress/command_queue.ts | 8 +- .../cypress/e2e/session/errors.cy.js | 8 ++ 6 files changed, 129 insertions(+), 19 deletions(-) create mode 100644 system-tests/projects/session-and-origin-e2e-specs/cypress/e2e/session/errors.cy.js diff --git a/packages/app/cypress/e2e/runner/sessions.ui.cy.ts b/packages/app/cypress/e2e/runner/sessions.ui.cy.ts index cce6f9b8f437..6d1d0e428456 100644 --- a/packages/app/cypress/e2e/runner/sessions.ui.cy.ts +++ b/packages/app/cypress/e2e/runner/sessions.ui.cy.ts @@ -330,6 +330,38 @@ describe('runner/cypress sessions.ui.spec', { validateSessionsInstrumentPanel(['spec_session_1', 'spec_session_2', 'global_session_1']) // cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435 }) + + describe('errors', () => { + it('test error when setup has failing Cypress command', () => { + loadSpec({ + projectName: 'session-and-origin-e2e-specs', + filePath: 'session/errors.cy.js', + failCount: 1, + }) + + cy.contains('.test', 'setup has failing command').as('setup_failed') + // test marked as failed and is expanded + cy.get('@setup_failed').should('have.attr', 'data-model-state', 'failed') + .children('.collapsible').should('have.class', 'is-open') + .within(() => { + // session is marked as 'failed' and is expanded + // setup group is expanded + cy.get('.command-name-session').eq(0).should('contain', 'session_1').as('session_command') + .children('.command-wrapper').find('.reporter-tag').should('contain', 'failed') + + cy.get('@session_command') + .children('.command-child-container').should('exist') + .within(() => { + cy.get('.command-name-session') + .should('contain', 'Create new session') + .get('.command-child-container').should('exist') + }) + }) + + // has error + cy.get('@setup_failed').contains('This error occurred while creating session. Because the session setup failed, we failed the test.') + }) + }) }) describe('runner/cypress sessions.open_mode.spec', () => { diff --git a/packages/driver/cypress/e2e/commands/sessions/sessions.cy.js b/packages/driver/cypress/e2e/commands/sessions/sessions.cy.js index 8e8b0cfaa60e..c64965f21e2d 100644 --- a/packages/driver/cypress/e2e/commands/sessions/sessions.cy.js +++ b/packages/driver/cypress/e2e/commands/sessions/sessions.cy.js @@ -14,6 +14,16 @@ const expectCurrentSessionData = async (obj) => { }) } +const clearAllSavedSessions = () => { + // clear all sessions only sets hydrated: false and re-using a session id + // with new setup / validation fn isn't updated/applied + Cypress.state('activeSessions', {}) + cy.log('Cypress.session.clearAllSavedSessions()') + cy.then(async () => { + return Cypress.session.clearAllSavedSessions() + }) +} + describe('cy.session', { retries: 0 }, () => { describe('args', () => { it('accepts string as id', () => { @@ -136,13 +146,7 @@ describe('cy.session', { retries: 0 }, () => { const setupTestContext = () => { resetMocks() - - // clear all sessions only sets hydrated: false and re-using a session id - // with new setup / validation fn isn't updated/applied - Cypress.state('activeSessions', {}) - cy.log('Cypress.session.clearAllSavedSessions()') - Cypress.session.clearAllSavedSessions() - + clearAllSavedSessions() cy.on('log:added', (attrs, log) => { if (attrs.name === 'session' || attrs.name === 'sessions_manager' || attrs.name === 'page load' || attrs.alias?.includes('setupSession') || attrs.alias?.includes('validateSession')) { logs.push(log) @@ -775,14 +779,19 @@ describe('cy.session', { retries: 0 }, () => { describe('errors', () => { let lastLog = null - let logs = [] + let lastSessionLog = null + const handleAddLog = (attrs, log) => { + lastLog = log + if (attrs.name === 'session') { + lastSessionLog = log + } + } beforeEach(() => { - cy.on('log:added', (attrs, log) => { - if (attrs.name === 'session') { - lastLog = log - logs.push(log) - } + clearAllSavedSessions() + cy.on('log:added', handleAddLog) + cy.on('fail', (err) => { + cy.off('log:added', handleAddLog) }) return null @@ -790,8 +799,9 @@ describe('cy.session', { retries: 0 }, () => { it('throws error when experimentalSessionAndOrigin not enabled', { experimentalSessionAndOrigin: false, experimentalSessionSupport: false }, (done) => { cy.once('fail', (err) => { - expect(lastLog.get('error')).to.eq(err) - expect(lastLog.get('state')).to.eq('failed') + expect(lastSessionLog).to.eq(lastLog) + expect(lastSessionLog.get('error')).to.eq(err) + expect(lastSessionLog.get('state')).to.eq('failed') expect(err.message).to.eq('`cy.session()` requires enabling the `experimentalSessionAndOrigin` flag.') expect(err.docsUrl).to.eq('https://on.cypress.io/session') @@ -803,8 +813,9 @@ describe('cy.session', { retries: 0 }, () => { it('throws error when experimentalSessionSupport is enabled through test config', { experimentalSessionAndOrigin: false, experimentalSessionSupport: true }, (done) => { cy.once('fail', (err) => { - expect(lastLog.get('error')).to.eq(err) - expect(lastLog.get('state')).to.eq('failed') + expect(lastSessionLog).to.eq(lastLog) + expect(lastSessionLog.get('error')).to.eq(err) + expect(lastSessionLog.get('state')).to.eq('failed') expect(err.message).to.eq('\`cy.session()\` requires enabling the \`experimentalSessionAndOrigin\` flag. The \`experimentalSessionSupport\` flag was enabled but was removed in Cypress version 9.6.0.') expect(err.docsUrl).to.eq('https://on.cypress.io/session') @@ -819,6 +830,7 @@ describe('cy.session', { retries: 0 }, () => { cy.once('fail', (err) => { Cypress.config('experimentalSessionSupport', false) + expect(lastSessionLog).to.eq(lastLog) expect(lastLog.get('error')).to.eq(err) expect(lastLog.get('state')).to.eq('failed') expect(err.message).to.eq('\`cy.session()\` requires enabling the \`experimentalSessionAndOrigin\` flag. The \`experimentalSessionSupport\` flag was enabled but was removed in Cypress version 9.6.0.') @@ -831,6 +843,7 @@ describe('cy.session', { retries: 0 }, () => { it('throws when sessionId argument was not provided', function (done) { cy.once('fail', (err) => { + expect(lastSessionLog).to.eq(lastLog) expect(lastLog.get('error')).to.eq(err) expect(lastLog.get('state')).to.eq('failed') expect(err.message).to.eq('`cy.session()` was passed an invalid argument. The first argument `id` must be an string or serializable object.') @@ -844,6 +857,7 @@ describe('cy.session', { retries: 0 }, () => { it('throws when sessionId argument is not an object', function (done) { cy.once('fail', (err) => { + expect(lastSessionLog).to.eq(lastLog) expect(lastLog.get('error')).to.eq(err) expect(lastLog.get('state')).to.eq('failed') expect(err.message).to.eq('`cy.session()` was passed an invalid argument. The first argument `id` must be an string or serializable object.') @@ -870,6 +884,7 @@ describe('cy.session', { retries: 0 }, () => { it('throws when options argument has an invalid option', function (done) { cy.once('fail', (err) => { + expect(lastSessionLog).to.eq(lastLog) expect(lastLog.get('error')).to.eq(err) expect(lastLog.get('state')).to.eq('failed') expect(err.message).to.eq('`cy.session()` was passed an invalid option: **invalid_key**\nAvailable options are: `validate`') @@ -883,6 +898,7 @@ describe('cy.session', { retries: 0 }, () => { it('throws when options argument has an option with an invalid type', function (done) { cy.once('fail', (err) => { + expect(lastSessionLog).to.eq(lastLog) expect(lastLog.get('error')).to.eq(err) expect(lastLog.get('state')).to.eq('failed') expect(err.message).to.eq('`cy.session()` was passed an invalid option value. **validate** must be of type **function** but was **number**.') @@ -909,6 +925,7 @@ describe('cy.session', { retries: 0 }, () => { it('throws when setup function is not provided and global session is registered', function (done) { cy.once('fail', (err) => { + expect(lastSessionLog).to.eq(lastLog) expect(lastLog.get('error')).to.eq(err) expect(lastLog.get('state')).to.eq('failed') expect(err.message).to.eq('In order to restore a global `cy.session()`, provide a `setup` as the second argument:\n\n`cy.session(id, setup, { cacheAcrossSpecs: true })`') @@ -931,6 +948,7 @@ describe('cy.session', { retries: 0 }, () => { it('throws when multiple session calls with same sessionId but different setup', function (done) { cy.once('fail', async (err) => { + expect(lastSessionLog).to.eq(lastLog) expect(lastLog.get('error')).to.eq(err) expect(lastLog.get('state')).to.eq('failed') expect(err.message).to.eq('This session already exists. You may not create a new session with a previously used identifier. If you want to create a new session with a different setup function, please call `cy.session()` with a unique identifier other than **duplicate-session**.') @@ -960,6 +978,7 @@ describe('cy.session', { retries: 0 }, () => { it('throws when multiple session calls with same sessionId but different validate opt', function (done) { cy.once('fail', async (err) => { + expect(lastSessionLog).to.eq(lastLog) expect(lastLog.get('error')).to.eq(err) expect(lastLog.get('state')).to.eq('failed') expect(err.message).to.eq('This session already exists. You may not create a new session with a previously used identifier. If you want to create a new session with a different validate function, please call `cy.session()` with a unique identifier other than **duplicate-sess**.') @@ -975,6 +994,7 @@ describe('cy.session', { retries: 0 }, () => { it('throws when multiple session calls with same sessionId but different cacheAcrossSpec opt', function (done) { cy.once('fail', async (err) => { + expect(lastSessionLog).to.eq(lastLog) expect(lastLog.get('error')).to.eq(err) expect(lastLog.get('state')).to.eq('failed') expect(err.message).to.eq('This session already exists. You may not create a new session with a previously used identifier. If you want to create a new session with a different persistence, please call `cy.session()` with a unique identifier other than **duplicate-sess**.') @@ -988,6 +1008,37 @@ describe('cy.session', { retries: 0 }, () => { cy.session('duplicate-sess', () => {}, { validate: () => {}, cacheAcrossSpecs: true }) }) + describe('setup function failures', () => { + it('throws when setup function has a failing Cypress command', function (done) { + cy.once('fail', (err) => { + expect(lastLog.get('error')).to.eq(err) + expect(lastLog.get('state')).to.eq('failed') + expect(err.message).to.contain('This error occurred while creating session. Because the session setup failed, we failed the test.') + expect(lastSessionLog.get('state')).to.eq('failed') + done() + }) + + cy.session(`session-${Cypress.state('test').id}`, () => { + cy.get('#does_not_exist', { timeout: 500 }) + }) + }) + + it('throws when setup function has a failing assertion', function (done) { + cy.once('fail', (err) => { + expect(lastLog.get('error')).to.eq(err) + expect(lastLog.get('state')).to.eq('failed') + expect(err.message).to.contain('This error occurred while creating session. Because the session setup failed, we failed the test.') + expect(lastSessionLog.get('state')).to.eq('failed') + + done() + }) + + cy.session(`session-${Cypress.state('test').id}`, () => { + expect(true).to.be.false + }) + }) + }) + describe('options.validate failures', () => { const errorHookMessage = 'This error occurred in a session validate hook after initializing the session. Because validation failed immediately after session setup we failed the test.' diff --git a/packages/driver/src/cy/commands/sessions/index.ts b/packages/driver/src/cy/commands/sessions/index.ts index f0d67585ac7f..58c547768ae9 100644 --- a/packages/driver/src/cy/commands/sessions/index.ts +++ b/packages/driver/src/cy/commands/sessions/index.ts @@ -170,11 +170,23 @@ export default function (Commands, Cypress, cy) { displayName: recreateSession ? 'Recreate session' : 'Create new session', message: '', type: 'system', - }, () => { + }, (setupLogGroup) => { return cy.then(async () => { + // Catch when a cypress command fails in the setup function to correctly update log status + // before failing command and ending command queue. + cy.state('onCommandFailed', (err) => { + setupLogGroup.set({ state: 'failed' }) + setSessionLogStatus('failed') + + $errUtils.modifyErrMsg(err, `\n\nThis error occurred while creating session. Because the session setup failed, we failed the test.`, _.add) + + return false + }) + return existingSession.setup() }) .then(async () => { + cy.state('onCommandFailed', null) await navigateAboutBlank() const data = await sessions.getCurrentSessionData() diff --git a/packages/driver/src/cy/commands/sessions/manager.ts b/packages/driver/src/cy/commands/sessions/manager.ts index 60d8ef87a5bd..7da6f6694247 100644 --- a/packages/driver/src/cy/commands/sessions/manager.ts +++ b/packages/driver/src/cy/commands/sessions/manager.ts @@ -134,6 +134,7 @@ export default class SessionsManager { clearAllSavedSessions: async () => { this.clearActiveSessions() + this.registeredSessions.clear() const clearAllSessions = true return this.Cypress.backend('clear:sessions', clearAllSessions) diff --git a/packages/driver/src/cypress/command_queue.ts b/packages/driver/src/cypress/command_queue.ts index cc23dccbb590..2a81971ce505 100644 --- a/packages/driver/src/cypress/command_queue.ts +++ b/packages/driver/src/cypress/command_queue.ts @@ -375,7 +375,13 @@ export class CommandQueue extends Queue<$Command> { } if (this.state('onCommandFailed')) { - return this.state('onCommandFailed')(err, this, next) + const handledError = this.state('onCommandFailed')(err, this, next) + + cy.state('onCommandFailed', null) + + if (handledError) { + return + } } debugErrors('caught error in promise chain: %o', err) diff --git a/system-tests/projects/session-and-origin-e2e-specs/cypress/e2e/session/errors.cy.js b/system-tests/projects/session-and-origin-e2e-specs/cypress/e2e/session/errors.cy.js new file mode 100644 index 000000000000..9d53ea4c18d8 --- /dev/null +++ b/system-tests/projects/session-and-origin-e2e-specs/cypress/e2e/session/errors.cy.js @@ -0,0 +1,8 @@ +/** + * Used in cy-in-cy tests in @packages/app. + */ +it('setup has failing command', () => { + cy.session('session_1', () => { + cy.get('does_not_exist', { timeout: 500 }) + }) +}) From 3b7a3975282509104be1dfe3119dbbedee7aeda8 Mon Sep 17 00:00:00 2001 From: Emily Rohrbough Date: Mon, 26 Sep 2022 12:35:49 -0500 Subject: [PATCH 02/34] Update system-tests/projects/session-and-origin-e2e-specs/cypress/e2e/session/errors.cy.js Co-authored-by: Chris Breiding --- .../cypress/e2e/session/errors.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-tests/projects/session-and-origin-e2e-specs/cypress/e2e/session/errors.cy.js b/system-tests/projects/session-and-origin-e2e-specs/cypress/e2e/session/errors.cy.js index 9d53ea4c18d8..0abbd3cf35e2 100644 --- a/system-tests/projects/session-and-origin-e2e-specs/cypress/e2e/session/errors.cy.js +++ b/system-tests/projects/session-and-origin-e2e-specs/cypress/e2e/session/errors.cy.js @@ -3,6 +3,6 @@ */ it('setup has failing command', () => { cy.session('session_1', () => { - cy.get('does_not_exist', { timeout: 500 }) + cy.get('does_not_exist', { timeout: 1 }) }) }) From cc76ad5bb98ce0960d61267a419605bb3711a3d3 Mon Sep 17 00:00:00 2001 From: Jordan Date: Fri, 30 Sep 2022 09:59:18 -0400 Subject: [PATCH 03/34] docs: update license year (#24024) I was reviewing this for another project and noticed this was out of date and figured I'd open a quick PR. --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 4ce6792e2a7a..22d286996ac5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Cypress.io +Copyright (c) 2022 Cypress.io Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 6fcb7a31b42a9e5e9f25da9ef5a6646433bc933c Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 10:30:21 -0400 Subject: [PATCH 04/34] chore: release @cypress/schematic-v2.1.0 [skip ci] --- npm/cypress-schematic/CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/npm/cypress-schematic/CHANGELOG.md b/npm/cypress-schematic/CHANGELOG.md index 667de6bfb321..d9a9ebf9337c 100644 --- a/npm/cypress-schematic/CHANGELOG.md +++ b/npm/cypress-schematic/CHANGELOG.md @@ -1,3 +1,17 @@ +# [@cypress/schematic-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/schematic-v2.0.3...@cypress/schematic-v2.1.0) (2022-09-30) + + +### Bug Fixes + +* angular 14.2 mount compilation error ([#23593](https://github.com/cypress-io/cypress/issues/23593)) ([2f337db](https://github.com/cypress-io/cypress/commit/2f337dbfa2bb212754c8fa82e3f4548a2f3a07a4)) +* Detect user-configured browsers ([#23446](https://github.com/cypress-io/cypress/issues/23446)) ([a75d3ec](https://github.com/cypress-io/cypress/commit/a75d3ec81f3405db6721a89875d89cdca0109013)) + + +### Features + +* _addQuery() ([#23665](https://github.com/cypress-io/cypress/issues/23665)) ([41fc535](https://github.com/cypress-io/cypress/commit/41fc535dca51cda4e40b5d9fc827d8bff534f3d1)) +* **cypress/schematic:** add support for component testing ([#23385](https://github.com/cypress-io/cypress/issues/23385)) ([99562af](https://github.com/cypress-io/cypress/commit/99562af65a10abb0fab211fd97b13f98e2b0f959)) + # [@cypress/schematic-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/schematic-v2.0.3...@cypress/schematic-v2.1.0) (2022-09-29) From 1246d6479f12753da01dd74ace63e593a00ed713 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 10:30:33 -0400 Subject: [PATCH 05/34] chore: release @cypress/mount-utils-v2.1.0 [skip ci] --- npm/mount-utils/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npm/mount-utils/CHANGELOG.md b/npm/mount-utils/CHANGELOG.md index 272d87a99149..174f4e1b5f51 100644 --- a/npm/mount-utils/CHANGELOG.md +++ b/npm/mount-utils/CHANGELOG.md @@ -1,3 +1,10 @@ +# [@cypress/mount-utils-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/mount-utils-v2.0.1...@cypress/mount-utils-v2.1.0) (2022-09-30) + + +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + # [@cypress/mount-utils-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/mount-utils-v2.0.1...@cypress/mount-utils-v2.1.0) (2022-09-29) From 4dc067b5b1a975d29cdec488ac179d6e6db8abab Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 10:30:45 -0400 Subject: [PATCH 06/34] chore: release @cypress/react-v6.2.0 [skip ci] --- npm/react/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npm/react/CHANGELOG.md b/npm/react/CHANGELOG.md index bf184763c9b4..162c42b6f90a 100644 --- a/npm/react/CHANGELOG.md +++ b/npm/react/CHANGELOG.md @@ -1,3 +1,10 @@ +# [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-09-30) + + +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-09-29) From cc06f881686eb5f47a6533491224afeeac62d2ed Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 10:30:56 -0400 Subject: [PATCH 07/34] chore: release @cypress/react18-v1.1.0 [skip ci] --- npm/react18/CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/npm/react18/CHANGELOG.md b/npm/react18/CHANGELOG.md index 5d99b6229415..61477ac9e993 100644 --- a/npm/react18/CHANGELOG.md +++ b/npm/react18/CHANGELOG.md @@ -1,3 +1,15 @@ +# [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-09-30) + + +### Bug Fixes + +* cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f)) + + +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-09-29) From fe95e9506712a7ceaa3b565e715d16e82d44ce26 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 10:31:09 -0400 Subject: [PATCH 08/34] chore: release @cypress/vue-v4.2.0 [skip ci] --- npm/vue/CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/npm/vue/CHANGELOG.md b/npm/vue/CHANGELOG.md index 7bf746682aa3..93e62e25b303 100644 --- a/npm/vue/CHANGELOG.md +++ b/npm/vue/CHANGELOG.md @@ -1,3 +1,16 @@ +# [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-09-30) + + +### Bug Fixes + +* fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5)) +* **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4)) + + +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-09-29) From 80b62d9c45fe88ea6a66b3c4e2247ab5b24106d1 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 10:31:21 -0400 Subject: [PATCH 09/34] chore: release @cypress/vue2-v1.1.0 [skip ci] --- npm/vue2/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npm/vue2/CHANGELOG.md b/npm/vue2/CHANGELOG.md index c2b79ece013f..15916b14302e 100644 --- a/npm/vue2/CHANGELOG.md +++ b/npm/vue2/CHANGELOG.md @@ -1,3 +1,10 @@ +# [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-09-30) + + +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-09-29) From 94eb70e2c095a24c2466c081f6c5bf0479f810c4 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 10:31:33 -0400 Subject: [PATCH 10/34] chore: release @cypress/webpack-dev-server-v2.3.0 [skip ci] --- npm/webpack-dev-server/CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/npm/webpack-dev-server/CHANGELOG.md b/npm/webpack-dev-server/CHANGELOG.md index 410c96c6cf27..f9349db93056 100644 --- a/npm/webpack-dev-server/CHANGELOG.md +++ b/npm/webpack-dev-server/CHANGELOG.md @@ -1,3 +1,20 @@ +# [@cypress/webpack-dev-server-v2.3.0](https://github.com/cypress-io/cypress/compare/@cypress/webpack-dev-server-v2.2.0...@cypress/webpack-dev-server-v2.3.0) (2022-09-30) + + +### Bug Fixes + +* allow asynchronous vue cli init phase ([#23936](https://github.com/cypress-io/cypress/issues/23936)) ([6a40936](https://github.com/cypress-io/cypress/commit/6a40936604ae24b0b40996692c4a03e5a3c1c9a2)) +* force Webpack to emit assets on error ([#23844](https://github.com/cypress-io/cypress/issues/23844)) ([466be9f](https://github.com/cypress-io/cypress/commit/466be9f1f0cbb843684361a9900832814353e3c0)) +* support type: module in Node.js 16.17.0+ and 18.6.0+ ([#23637](https://github.com/cypress-io/cypress/issues/23637)) ([b6dad0a](https://github.com/cypress-io/cypress/commit/b6dad0a674279936a9816939963bbf129647cee7)) +* **webpack-dev-server:** add custom project config to handler ([a07a2a1](https://github.com/cypress-io/cypress/commit/a07a2a118d7b62b90e790ef475c86959ae894b3b)) + + +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) +* allow vite/webpack config to be an async function ([#23605](https://github.com/cypress-io/cypress/issues/23605)) ([4c647f6](https://github.com/cypress-io/cypress/commit/4c647f6d5b0f58a797b50436e63c645418bc07ac)) +* CT stack traces ([#23916](https://github.com/cypress-io/cypress/issues/23916)) ([bf590eb](https://github.com/cypress-io/cypress/commit/bf590eba3f1cf46b04f6a1252e51da5c5a3dc7c2)) + # [@cypress/webpack-dev-server-v2.3.0](https://github.com/cypress-io/cypress/compare/@cypress/webpack-dev-server-v2.2.0...@cypress/webpack-dev-server-v2.3.0) (2022-09-29) From f9ef9600fb49885c8825213ac863a813f5c7142f Mon Sep 17 00:00:00 2001 From: Matt Schile Date: Fri, 30 Sep 2022 08:35:24 -0600 Subject: [PATCH 11/34] chore(deps): upgrade electron to v21.0.0 (#23881) --- .circleci/config.yml | 13 ++++++---- .node-version | 2 +- package.json | 4 ++-- .../test/integration/http_requests_spec.js | 9 +++---- scripts/run-docker-local.sh | 2 +- .../test-binary/node_versions_spec.ts | 2 +- yarn.lock | 24 ++++++------------- 7 files changed, 25 insertions(+), 31 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6f76667e5722..7e4f7cca19e2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,6 +28,7 @@ mainBuildFilters: &mainBuildFilters only: - develop - fix-ci-deps + - issue-23843_electron_21_upgrade # usually we don't build Mac app - it takes a long time # but sometimes we want to really confirm we are doing the right thing @@ -37,6 +38,7 @@ macWorkflowFilters: &darwin-workflow-filters or: - equal: [ develop, << pipeline.git.branch >> ] - equal: [ 'correct-dashboard-results', << pipeline.git.branch >> ] + - equal: [ 'issue-23843_electron_21_upgrade', << pipeline.git.branch >> ] - matches: pattern: "-release$" value: << pipeline.git.branch >> @@ -45,6 +47,7 @@ linuxArm64WorkflowFilters: &linux-arm64-workflow-filters when: or: - equal: [ develop, << pipeline.git.branch >> ] + - equal: [ 'issue-23843_electron_21_upgrade', << pipeline.git.branch >> ] - matches: pattern: "-release$" value: << pipeline.git.branch >> @@ -63,7 +66,7 @@ windowsWorkflowFilters: &windows-workflow-filters or: - equal: [ develop, << pipeline.git.branch >> ] - equal: [ linux-arm64, << pipeline.git.branch >> ] - - equal: [ 'mikep/21720-ct-stack-traces', << pipeline.git.branch >> ] + - equal: [ 'issue-23843_electron_21_upgrade', << pipeline.git.branch >> ] - matches: pattern: "-release$" value: << pipeline.git.branch >> @@ -72,7 +75,7 @@ executors: # the Docker image with Cypress dependencies and Chrome browser cy-doc: docker: - - image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge + - image: cypress/browsers:node16.16.0-chrome106-ff99-edge # by default, we use "medium" to balance performance + CI costs. bump or reduce on a per-job basis if needed. resource_class: medium environment: @@ -82,7 +85,7 @@ executors: # Docker image with non-root "node" user non-root-docker-user: docker: - - image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge + - image: cypress/browsers:node16.16.0-chrome106-ff99-edge user: node environment: PLATFORM: linux @@ -93,7 +96,7 @@ executors: mac: macos: # Executor should have Node >= required version - xcode: "13.0.0" + xcode: "14.0.0" resource_class: macos.x86.medium.gen2 environment: PLATFORM: darwin @@ -128,7 +131,7 @@ commands: - run: name: Check current branch to persist artifacts command: | - if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "webkit-experimental" ]]; then + if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "issue-23843_electron_21_upgrade" ]]; then echo "Not uploading artifacts or posting install comment for this branch." circleci-agent step halt fi diff --git a/.node-version b/.node-version index a1fe1878845b..431076a9486e 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -16.14.2 \ No newline at end of file +16.16.0 diff --git a/package.json b/package.json index e8eea38475e8..f9fb6517494f 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,7 @@ "dedent": "^0.7.0", "del": "3.0.0", "detect-port": "^1.3.0", - "electron": "19.0.8", + "electron": "21.0.0", "electron-builder": "^22.13.1", "electron-notarize": "^1.1.1", "enzyme-adapter-react-16": "1.12.1", @@ -217,7 +217,7 @@ "yarn-deduplicate": "3.1.0" }, "engines": { - "node": ">=16.14.2", + "node": ">=16.16.0", "yarn": ">=1.17.3" }, "productName": "Cypress", diff --git a/packages/server/test/integration/http_requests_spec.js b/packages/server/test/integration/http_requests_spec.js index dfcb18b9bb87..bfb0c0baaf3d 100644 --- a/packages/server/test/integration/http_requests_spec.js +++ b/packages/server/test/integration/http_requests_spec.js @@ -1661,7 +1661,7 @@ describe('Routes', () => { }) }) - it('passes invalid cookies', function () { + it('passes invalid cookies', function (done) { nock(this.server.remoteStates.current().origin) .get('/invalid') .reply(200, 'OK', { @@ -1672,15 +1672,16 @@ describe('Routes', () => { ], }) - return this.rp('http://localhost:8080/invalid') - .then((res) => { + http.get('http://localhost:8080/invalid', (res) => { expect(res.statusCode).to.eq(200) expect(res.headers['set-cookie']).to.deep.eq([ 'foo=bar; Path=/', '___utmvmXluIZsM=fidJKOsDSdm; path=/; Max-Age=900', - '___utmvbXluIZsM=bZM XtQOGalF: VtR; path=/; Max-Age=900', + '___utmvbXluIZsM=bZM\n XtQOGalF: VtR; path=/; Max-Age=900', ]) + + done() }) }) diff --git a/scripts/run-docker-local.sh b/scripts/run-docker-local.sh index 89f54c62efe6..f5a068f6799a 100755 --- a/scripts/run-docker-local.sh +++ b/scripts/run-docker-local.sh @@ -3,7 +3,7 @@ set e+x echo "This script should be run from cypress's root" -name=cypress/browsers:node16.14.2-slim-chrome100-ff99-edge +name=cypress/browsers:node16.16.0-chrome106-ff99-edge echo "Pulling CI container $name" docker pull $name diff --git a/system-tests/test-binary/node_versions_spec.ts b/system-tests/test-binary/node_versions_spec.ts index d62dd43db645..f2d6294ea692 100644 --- a/system-tests/test-binary/node_versions_spec.ts +++ b/system-tests/test-binary/node_versions_spec.ts @@ -28,7 +28,7 @@ describe('binary node versions', () => { [ 'cypress/base:12', 'cypress/base:14', - 'cypress/base:16.14.2', + 'cypress/base:16.16.0', 'cypress/base:17.3.0', ].forEach(smokeTestDockerImage) }) diff --git a/yarn.lock b/yarn.lock index 19a32ab1dc9e..045bcefe1ba9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12584,7 +12584,7 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= -concat-stream@1.6.2, concat-stream@^1.4.4, concat-stream@^1.5.0, concat-stream@^1.5.2, concat-stream@^1.6.0, concat-stream@^1.6.2: +concat-stream@1.6.2, concat-stream@^1.4.4, concat-stream@^1.5.0, concat-stream@^1.5.2, concat-stream@^1.6.0: version "1.6.2" resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw== @@ -14841,14 +14841,14 @@ electron-to-chromium@^1.3.247, electron-to-chromium@^1.4.84: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.111.tgz#897613f6504f3f17c9381c7499a635b413e4df4e" integrity sha512-/s3+fwhKf1YK4k7btOImOzCQLpUjS6MaPf0ODTNuT4eTM1Bg4itBpLkydhOzJmpmH6Z9eXFyuuK5czsmzRzwtw== -electron@19.0.8: - version "19.0.8" - resolved "https://registry.yarnpkg.com/electron/-/electron-19.0.8.tgz#c4d4ba915de554f2926261eb37d3527d2b092d4c" - integrity sha512-OWK3P/NbDFfBUv+wbYv1/OV4jehY5DQPT7n1maQJfN9hsnrWTMktXS/bmS05eSUAjNAzHmKPKfiKH2c1Yr7nGw== +electron@21.0.0: + version "21.0.0" + resolved "https://registry.yarnpkg.com/electron/-/electron-21.0.0.tgz#d4f23c9cf457e6b64d4158f2c21f75c98b241c81" + integrity sha512-7HGxgaH0goYsq5m23rbLuKNwxOP4wS/JTNVTYt4n+a4sPkxI97Fcngh55pHaIvvMO3jKZ9yzll7L/D1dHwMdLA== dependencies: "@electron/get" "^1.14.1" "@types/node" "^16.11.26" - extract-zip "^1.0.3" + extract-zip "^2.0.1" elegant-spinner@^1.0.1: version "1.0.1" @@ -16392,16 +16392,6 @@ extract-zip@2.0.1, extract-zip@^2.0.0, extract-zip@^2.0.1: optionalDependencies: "@types/yauzl" "^2.9.1" -extract-zip@^1.0.3: - version "1.7.0" - resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.7.0.tgz#556cc3ae9df7f452c493a0cfb51cc30277940927" - integrity sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA== - dependencies: - concat-stream "^1.6.2" - debug "^2.6.9" - mkdirp "^0.5.4" - yauzl "^2.10.0" - extsprintf@1.3.0, extsprintf@^1.2.0: version "1.3.0" resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" @@ -23804,7 +23794,7 @@ mkdirp@0.5.3: dependencies: minimist "^1.2.5" -mkdirp@0.5.5, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@^0.5.3, mkdirp@^0.5.4, mkdirp@^0.5.5, mkdirp@~0.5.1: +mkdirp@0.5.5, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@^0.5.3, mkdirp@^0.5.5, mkdirp@~0.5.1: version "0.5.5" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== From 2fc6f7d2ce94675e266a2cf7bee62c1dc2821f6f Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 12:36:16 -0400 Subject: [PATCH 12/34] chore: release @cypress/schematic-v2.1.0 [skip ci] --- npm/cypress-schematic/CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/npm/cypress-schematic/CHANGELOG.md b/npm/cypress-schematic/CHANGELOG.md index d9a9ebf9337c..09be642e9464 100644 --- a/npm/cypress-schematic/CHANGELOG.md +++ b/npm/cypress-schematic/CHANGELOG.md @@ -7,6 +7,20 @@ * Detect user-configured browsers ([#23446](https://github.com/cypress-io/cypress/issues/23446)) ([a75d3ec](https://github.com/cypress-io/cypress/commit/a75d3ec81f3405db6721a89875d89cdca0109013)) +### Features + +* _addQuery() ([#23665](https://github.com/cypress-io/cypress/issues/23665)) ([41fc535](https://github.com/cypress-io/cypress/commit/41fc535dca51cda4e40b5d9fc827d8bff534f3d1)) +* **cypress/schematic:** add support for component testing ([#23385](https://github.com/cypress-io/cypress/issues/23385)) ([99562af](https://github.com/cypress-io/cypress/commit/99562af65a10abb0fab211fd97b13f98e2b0f959)) + +# [@cypress/schematic-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/schematic-v2.0.3...@cypress/schematic-v2.1.0) (2022-09-30) + + +### Bug Fixes + +* angular 14.2 mount compilation error ([#23593](https://github.com/cypress-io/cypress/issues/23593)) ([2f337db](https://github.com/cypress-io/cypress/commit/2f337dbfa2bb212754c8fa82e3f4548a2f3a07a4)) +* Detect user-configured browsers ([#23446](https://github.com/cypress-io/cypress/issues/23446)) ([a75d3ec](https://github.com/cypress-io/cypress/commit/a75d3ec81f3405db6721a89875d89cdca0109013)) + + ### Features * _addQuery() ([#23665](https://github.com/cypress-io/cypress/issues/23665)) ([41fc535](https://github.com/cypress-io/cypress/commit/41fc535dca51cda4e40b5d9fc827d8bff534f3d1)) From 9d9580e454ddf98694b74ce7696cd5375ec94f3c Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 12:36:26 -0400 Subject: [PATCH 13/34] chore: release @cypress/mount-utils-v2.1.0 [skip ci] --- npm/mount-utils/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npm/mount-utils/CHANGELOG.md b/npm/mount-utils/CHANGELOG.md index 174f4e1b5f51..ce7ea37a1cbe 100644 --- a/npm/mount-utils/CHANGELOG.md +++ b/npm/mount-utils/CHANGELOG.md @@ -1,6 +1,13 @@ # [@cypress/mount-utils-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/mount-utils-v2.0.1...@cypress/mount-utils-v2.1.0) (2022-09-30) +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + +# [@cypress/mount-utils-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/mount-utils-v2.0.1...@cypress/mount-utils-v2.1.0) (2022-09-30) + + ### Features * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) From 57d1e60102fef3581f4214c36eb4efe02972bfb3 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 12:36:37 -0400 Subject: [PATCH 14/34] chore: release @cypress/react-v6.2.0 [skip ci] --- npm/react/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npm/react/CHANGELOG.md b/npm/react/CHANGELOG.md index 162c42b6f90a..f24cb31dbc08 100644 --- a/npm/react/CHANGELOG.md +++ b/npm/react/CHANGELOG.md @@ -1,6 +1,13 @@ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-09-30) +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + +# [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-09-30) + + ### Features * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) From 34de2b7d529cfd8544745705ea8a94a0bc8ebeff Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 12:36:47 -0400 Subject: [PATCH 15/34] chore: release @cypress/react18-v1.1.0 [skip ci] --- npm/react18/CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/npm/react18/CHANGELOG.md b/npm/react18/CHANGELOG.md index 61477ac9e993..a76563fcb661 100644 --- a/npm/react18/CHANGELOG.md +++ b/npm/react18/CHANGELOG.md @@ -6,6 +6,18 @@ * cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f)) +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + +# [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-09-30) + + +### Bug Fixes + +* cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f)) + + ### Features * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) From 9449bacdffa5b1c6ea5fb516c9dcdfdbacb905f3 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 12:36:59 -0400 Subject: [PATCH 16/34] chore: release @cypress/vue-v4.2.0 [skip ci] --- npm/vue/CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/npm/vue/CHANGELOG.md b/npm/vue/CHANGELOG.md index 93e62e25b303..58c668f37b94 100644 --- a/npm/vue/CHANGELOG.md +++ b/npm/vue/CHANGELOG.md @@ -7,6 +7,19 @@ * **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4)) +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + +# [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-09-30) + + +### Bug Fixes + +* fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5)) +* **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4)) + + ### Features * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) From 3feb462e539c1b36eec1b3ba59c5b49b3fc5e59d Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 12:37:09 -0400 Subject: [PATCH 17/34] chore: release @cypress/vue2-v1.1.0 [skip ci] --- npm/vue2/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npm/vue2/CHANGELOG.md b/npm/vue2/CHANGELOG.md index 15916b14302e..b3845307cad6 100644 --- a/npm/vue2/CHANGELOG.md +++ b/npm/vue2/CHANGELOG.md @@ -1,6 +1,13 @@ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-09-30) +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + +# [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-09-30) + + ### Features * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) From ec5bf9b6a7fa7c3b5893e158a6dd32ef44adc5d9 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 12:37:20 -0400 Subject: [PATCH 18/34] chore: release @cypress/webpack-dev-server-v2.3.0 [skip ci] --- npm/webpack-dev-server/CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/npm/webpack-dev-server/CHANGELOG.md b/npm/webpack-dev-server/CHANGELOG.md index f9349db93056..04010a939b1a 100644 --- a/npm/webpack-dev-server/CHANGELOG.md +++ b/npm/webpack-dev-server/CHANGELOG.md @@ -9,6 +9,23 @@ * **webpack-dev-server:** add custom project config to handler ([a07a2a1](https://github.com/cypress-io/cypress/commit/a07a2a118d7b62b90e790ef475c86959ae894b3b)) +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) +* allow vite/webpack config to be an async function ([#23605](https://github.com/cypress-io/cypress/issues/23605)) ([4c647f6](https://github.com/cypress-io/cypress/commit/4c647f6d5b0f58a797b50436e63c645418bc07ac)) +* CT stack traces ([#23916](https://github.com/cypress-io/cypress/issues/23916)) ([bf590eb](https://github.com/cypress-io/cypress/commit/bf590eba3f1cf46b04f6a1252e51da5c5a3dc7c2)) + +# [@cypress/webpack-dev-server-v2.3.0](https://github.com/cypress-io/cypress/compare/@cypress/webpack-dev-server-v2.2.0...@cypress/webpack-dev-server-v2.3.0) (2022-09-30) + + +### Bug Fixes + +* allow asynchronous vue cli init phase ([#23936](https://github.com/cypress-io/cypress/issues/23936)) ([6a40936](https://github.com/cypress-io/cypress/commit/6a40936604ae24b0b40996692c4a03e5a3c1c9a2)) +* force Webpack to emit assets on error ([#23844](https://github.com/cypress-io/cypress/issues/23844)) ([466be9f](https://github.com/cypress-io/cypress/commit/466be9f1f0cbb843684361a9900832814353e3c0)) +* support type: module in Node.js 16.17.0+ and 18.6.0+ ([#23637](https://github.com/cypress-io/cypress/issues/23637)) ([b6dad0a](https://github.com/cypress-io/cypress/commit/b6dad0a674279936a9816939963bbf129647cee7)) +* **webpack-dev-server:** add custom project config to handler ([a07a2a1](https://github.com/cypress-io/cypress/commit/a07a2a118d7b62b90e790ef475c86959ae894b3b)) + + ### Features * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) From 3e9aa5cbed8be937f7ed4981d251fc54c6425602 Mon Sep 17 00:00:00 2001 From: Sam Goodger Date: Sat, 1 Oct 2022 02:40:14 +1000 Subject: [PATCH 19/34] chore: update mocha-junit-reporter to 2.1.0 (#24056) --- package.json | 2 +- yarn.lock | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f9fb6517494f..62338949369c 100644 --- a/package.json +++ b/package.json @@ -186,7 +186,7 @@ "minimist": "1.2.6", "mocha": "3.5.3", "mocha-banner": "1.1.2", - "mocha-junit-reporter": "2.0.0", + "mocha-junit-reporter": "2.1.0", "mocha-multi-reporters": "1.1.7", "mock-fs": "5.1.1", "p-defer": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index 045bcefe1ba9..09fadd2f26b4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23874,6 +23874,17 @@ mocha-junit-reporter@2.0.0: strip-ansi "^4.0.0" xml "^1.0.0" +mocha-junit-reporter@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mocha-junit-reporter/-/mocha-junit-reporter-2.1.0.tgz#7997348c2e757686c54e42b3756930b55a4518a4" + integrity sha512-Zhz1J+XqJUaAOuSFtHgi2+b+W3rP1SZtaU3HHNNp1iEKMSeoC1/EQUVkGknkLNOBxJhXJ4xLgOr8TbYAZOkUIw== + dependencies: + debug "^2.2.0" + md5 "^2.1.0" + mkdirp "~0.5.1" + strip-ansi "^6.0.1" + xml "^1.0.0" + mocha-multi-reporters@1.1.7: version "1.1.7" resolved "https://registry.yarnpkg.com/mocha-multi-reporters/-/mocha-multi-reporters-1.1.7.tgz#cc7f3f4d32f478520941d852abb64d9988587d82" From cbda042781293d3f15837a6386e1ae2021c0503f Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 13:16:32 -0400 Subject: [PATCH 20/34] chore: release @cypress/schematic-v2.1.0 [skip ci] --- npm/cypress-schematic/CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/npm/cypress-schematic/CHANGELOG.md b/npm/cypress-schematic/CHANGELOG.md index 09be642e9464..628f213f9243 100644 --- a/npm/cypress-schematic/CHANGELOG.md +++ b/npm/cypress-schematic/CHANGELOG.md @@ -21,6 +21,20 @@ * Detect user-configured browsers ([#23446](https://github.com/cypress-io/cypress/issues/23446)) ([a75d3ec](https://github.com/cypress-io/cypress/commit/a75d3ec81f3405db6721a89875d89cdca0109013)) +### Features + +* _addQuery() ([#23665](https://github.com/cypress-io/cypress/issues/23665)) ([41fc535](https://github.com/cypress-io/cypress/commit/41fc535dca51cda4e40b5d9fc827d8bff534f3d1)) +* **cypress/schematic:** add support for component testing ([#23385](https://github.com/cypress-io/cypress/issues/23385)) ([99562af](https://github.com/cypress-io/cypress/commit/99562af65a10abb0fab211fd97b13f98e2b0f959)) + +# [@cypress/schematic-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/schematic-v2.0.3...@cypress/schematic-v2.1.0) (2022-09-30) + + +### Bug Fixes + +* angular 14.2 mount compilation error ([#23593](https://github.com/cypress-io/cypress/issues/23593)) ([2f337db](https://github.com/cypress-io/cypress/commit/2f337dbfa2bb212754c8fa82e3f4548a2f3a07a4)) +* Detect user-configured browsers ([#23446](https://github.com/cypress-io/cypress/issues/23446)) ([a75d3ec](https://github.com/cypress-io/cypress/commit/a75d3ec81f3405db6721a89875d89cdca0109013)) + + ### Features * _addQuery() ([#23665](https://github.com/cypress-io/cypress/issues/23665)) ([41fc535](https://github.com/cypress-io/cypress/commit/41fc535dca51cda4e40b5d9fc827d8bff534f3d1)) From b1c789785dcedec75223a4731ae70862114b1447 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 13:16:43 -0400 Subject: [PATCH 21/34] chore: release @cypress/mount-utils-v2.1.0 [skip ci] --- npm/mount-utils/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npm/mount-utils/CHANGELOG.md b/npm/mount-utils/CHANGELOG.md index ce7ea37a1cbe..e39569819a35 100644 --- a/npm/mount-utils/CHANGELOG.md +++ b/npm/mount-utils/CHANGELOG.md @@ -8,6 +8,13 @@ # [@cypress/mount-utils-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/mount-utils-v2.0.1...@cypress/mount-utils-v2.1.0) (2022-09-30) +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + +# [@cypress/mount-utils-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/mount-utils-v2.0.1...@cypress/mount-utils-v2.1.0) (2022-09-30) + + ### Features * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) From 4434096a85a4608fbd1edafe1dcc80e44c37f506 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 13:16:54 -0400 Subject: [PATCH 22/34] chore: release @cypress/react-v6.2.0 [skip ci] --- npm/react/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npm/react/CHANGELOG.md b/npm/react/CHANGELOG.md index f24cb31dbc08..1467163e7a05 100644 --- a/npm/react/CHANGELOG.md +++ b/npm/react/CHANGELOG.md @@ -8,6 +8,13 @@ # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-09-30) +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + +# [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-09-30) + + ### Features * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) From ddbdcc9754f73c3ddd53f7a6867debf1f2ee3eac Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 13:17:05 -0400 Subject: [PATCH 23/34] chore: release @cypress/react18-v1.1.0 [skip ci] --- npm/react18/CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/npm/react18/CHANGELOG.md b/npm/react18/CHANGELOG.md index a76563fcb661..b39514116d37 100644 --- a/npm/react18/CHANGELOG.md +++ b/npm/react18/CHANGELOG.md @@ -18,6 +18,18 @@ * cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f)) +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + +# [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-09-30) + + +### Bug Fixes + +* cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f)) + + ### Features * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) From bb28aa8d9512418a290766f4ef7e8251b693c572 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 13:17:16 -0400 Subject: [PATCH 24/34] chore: release @cypress/vue-v4.2.0 [skip ci] --- npm/vue/CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/npm/vue/CHANGELOG.md b/npm/vue/CHANGELOG.md index 58c668f37b94..2d8e43a72bf2 100644 --- a/npm/vue/CHANGELOG.md +++ b/npm/vue/CHANGELOG.md @@ -20,6 +20,19 @@ * **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4)) +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + +# [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-09-30) + + +### Bug Fixes + +* fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5)) +* **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4)) + + ### Features * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) From 7c03dddd497e59b2493864781d3a37d02c38bd46 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 13:17:27 -0400 Subject: [PATCH 25/34] chore: release @cypress/vue2-v1.1.0 [skip ci] --- npm/vue2/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npm/vue2/CHANGELOG.md b/npm/vue2/CHANGELOG.md index b3845307cad6..cbc4003e7cdd 100644 --- a/npm/vue2/CHANGELOG.md +++ b/npm/vue2/CHANGELOG.md @@ -8,6 +8,13 @@ # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-09-30) +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + +# [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-09-30) + + ### Features * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) From 7ff592b12debfbff24c5c48f736ac3a648a43da1 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 30 Sep 2022 13:17:38 -0400 Subject: [PATCH 26/34] chore: release @cypress/webpack-dev-server-v2.3.0 [skip ci] --- npm/webpack-dev-server/CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/npm/webpack-dev-server/CHANGELOG.md b/npm/webpack-dev-server/CHANGELOG.md index 04010a939b1a..324be9dc9586 100644 --- a/npm/webpack-dev-server/CHANGELOG.md +++ b/npm/webpack-dev-server/CHANGELOG.md @@ -26,6 +26,23 @@ * **webpack-dev-server:** add custom project config to handler ([a07a2a1](https://github.com/cypress-io/cypress/commit/a07a2a118d7b62b90e790ef475c86959ae894b3b)) +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) +* allow vite/webpack config to be an async function ([#23605](https://github.com/cypress-io/cypress/issues/23605)) ([4c647f6](https://github.com/cypress-io/cypress/commit/4c647f6d5b0f58a797b50436e63c645418bc07ac)) +* CT stack traces ([#23916](https://github.com/cypress-io/cypress/issues/23916)) ([bf590eb](https://github.com/cypress-io/cypress/commit/bf590eba3f1cf46b04f6a1252e51da5c5a3dc7c2)) + +# [@cypress/webpack-dev-server-v2.3.0](https://github.com/cypress-io/cypress/compare/@cypress/webpack-dev-server-v2.2.0...@cypress/webpack-dev-server-v2.3.0) (2022-09-30) + + +### Bug Fixes + +* allow asynchronous vue cli init phase ([#23936](https://github.com/cypress-io/cypress/issues/23936)) ([6a40936](https://github.com/cypress-io/cypress/commit/6a40936604ae24b0b40996692c4a03e5a3c1c9a2)) +* force Webpack to emit assets on error ([#23844](https://github.com/cypress-io/cypress/issues/23844)) ([466be9f](https://github.com/cypress-io/cypress/commit/466be9f1f0cbb843684361a9900832814353e3c0)) +* support type: module in Node.js 16.17.0+ and 18.6.0+ ([#23637](https://github.com/cypress-io/cypress/issues/23637)) ([b6dad0a](https://github.com/cypress-io/cypress/commit/b6dad0a674279936a9816939963bbf129647cee7)) +* **webpack-dev-server:** add custom project config to handler ([a07a2a1](https://github.com/cypress-io/cypress/commit/a07a2a118d7b62b90e790ef475c86959ae894b3b)) + + ### Features * adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) From 06663ac2448395b7b1214223ba222172b9660579 Mon Sep 17 00:00:00 2001 From: Emily Rohrbough Date: Fri, 30 Sep 2022 15:15:45 -0500 Subject: [PATCH 27/34] fix scenario when command fails in validates callback --- packages/driver/src/cy/commands/sessions/index.ts | 4 ++-- packages/driver/src/cypress/command_queue.ts | 4 ++-- packages/driver/src/cypress/state.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/driver/src/cy/commands/sessions/index.ts b/packages/driver/src/cy/commands/sessions/index.ts index 58c547768ae9..2296ea77e077 100644 --- a/packages/driver/src/cy/commands/sessions/index.ts +++ b/packages/driver/src/cy/commands/sessions/index.ts @@ -290,7 +290,7 @@ export default function (Commands, Cypress, cy) { } // catch when a cypress command fails in the validate callback to move the queue index - cy.state('onCommandFailed', (err, queue, next) => { + cy.state('onCommandFailed', (err, queue) => { const index = _.findIndex(queue.get(), (command: any) => { return ( _commandToRunAfterValidation @@ -317,7 +317,7 @@ export default function (Commands, Cypress, cy) { cy.state('onCommandFailed', null) - return next() + return true }) const _commandToRunAfterValidation = cy.then(async () => { diff --git a/packages/driver/src/cypress/command_queue.ts b/packages/driver/src/cypress/command_queue.ts index 2a81971ce505..26a23d8ee02f 100644 --- a/packages/driver/src/cypress/command_queue.ts +++ b/packages/driver/src/cypress/command_queue.ts @@ -375,12 +375,12 @@ export class CommandQueue extends Queue<$Command> { } if (this.state('onCommandFailed')) { - const handledError = this.state('onCommandFailed')(err, this, next) + const handledError = this.state('onCommandFailed')(err, this) cy.state('onCommandFailed', null) if (handledError) { - return + return next() } } diff --git a/packages/driver/src/cypress/state.ts b/packages/driver/src/cypress/state.ts index 27144a00fd66..cd2492578238 100644 --- a/packages/driver/src/cypress/state.ts +++ b/packages/driver/src/cypress/state.ts @@ -53,7 +53,7 @@ export interface StateFunc { (k: 'commandIntermediateValue', v?: any): any (k: 'subject', v?: any): any (k: 'onPaused', v?: (fn: any) => void): (fn: any) => void - (k: 'onCommandFailed', v?: (err: any, queue: any, next: any) => boolean): (err: any, queue: any, next: any) => boolean + (k: 'onCommandFailed', v?: (err: any, queue: any) => boolean): (err: any, queue: any) => boolean (k: 'promise', v?: Bluebird): Bluebird (k: 'reject', v?: (err: any) => any): (err: any) => any (k: 'cancel', v?: () => void): () => void From bc0c39d0be5e19cafacce018ff75a88819091ccb Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sat, 1 Oct 2022 11:49:29 -0400 Subject: [PATCH 28/34] chore: release @cypress/schematic-v2.1.0 [skip ci] --- npm/cypress-schematic/CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/npm/cypress-schematic/CHANGELOG.md b/npm/cypress-schematic/CHANGELOG.md index 628f213f9243..49b52018d398 100644 --- a/npm/cypress-schematic/CHANGELOG.md +++ b/npm/cypress-schematic/CHANGELOG.md @@ -1,3 +1,17 @@ +# [@cypress/schematic-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/schematic-v2.0.3...@cypress/schematic-v2.1.0) (2022-10-01) + + +### Bug Fixes + +* angular 14.2 mount compilation error ([#23593](https://github.com/cypress-io/cypress/issues/23593)) ([2f337db](https://github.com/cypress-io/cypress/commit/2f337dbfa2bb212754c8fa82e3f4548a2f3a07a4)) +* Detect user-configured browsers ([#23446](https://github.com/cypress-io/cypress/issues/23446)) ([a75d3ec](https://github.com/cypress-io/cypress/commit/a75d3ec81f3405db6721a89875d89cdca0109013)) + + +### Features + +* _addQuery() ([#23665](https://github.com/cypress-io/cypress/issues/23665)) ([41fc535](https://github.com/cypress-io/cypress/commit/41fc535dca51cda4e40b5d9fc827d8bff534f3d1)) +* **cypress/schematic:** add support for component testing ([#23385](https://github.com/cypress-io/cypress/issues/23385)) ([99562af](https://github.com/cypress-io/cypress/commit/99562af65a10abb0fab211fd97b13f98e2b0f959)) + # [@cypress/schematic-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/schematic-v2.0.3...@cypress/schematic-v2.1.0) (2022-09-30) From 5647f35903fe9504623de3629f95569f0970d06e Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sat, 1 Oct 2022 11:49:41 -0400 Subject: [PATCH 29/34] chore: release @cypress/mount-utils-v2.1.0 [skip ci] --- npm/mount-utils/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npm/mount-utils/CHANGELOG.md b/npm/mount-utils/CHANGELOG.md index e39569819a35..15a35555b3c9 100644 --- a/npm/mount-utils/CHANGELOG.md +++ b/npm/mount-utils/CHANGELOG.md @@ -1,3 +1,10 @@ +# [@cypress/mount-utils-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/mount-utils-v2.0.1...@cypress/mount-utils-v2.1.0) (2022-10-01) + + +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + # [@cypress/mount-utils-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/mount-utils-v2.0.1...@cypress/mount-utils-v2.1.0) (2022-09-30) From 5cb1db1bfbe9c7416b939090aa49b90ed1ba3570 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sat, 1 Oct 2022 11:49:52 -0400 Subject: [PATCH 30/34] chore: release @cypress/react-v6.2.0 [skip ci] --- npm/react/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npm/react/CHANGELOG.md b/npm/react/CHANGELOG.md index 1467163e7a05..f7c2cc6a3974 100644 --- a/npm/react/CHANGELOG.md +++ b/npm/react/CHANGELOG.md @@ -1,3 +1,10 @@ +# [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-10-01) + + +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + # [@cypress/react-v6.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.1...@cypress/react-v6.2.0) (2022-09-30) From ff2ac2aff3adf42823e631bfb5993090830e44bf Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sat, 1 Oct 2022 11:50:03 -0400 Subject: [PATCH 31/34] chore: release @cypress/react18-v1.1.0 [skip ci] --- npm/react18/CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/npm/react18/CHANGELOG.md b/npm/react18/CHANGELOG.md index b39514116d37..0531f04f8024 100644 --- a/npm/react18/CHANGELOG.md +++ b/npm/react18/CHANGELOG.md @@ -1,3 +1,15 @@ +# [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-10-01) + + +### Bug Fixes + +* cypress/react18 rerender ([#23360](https://github.com/cypress-io/cypress/issues/23360)) ([8b8f20e](https://github.com/cypress-io/cypress/commit/8b8f20eec77d4c0a704aee7f7077dc92dbafb93f)) + + +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + # [@cypress/react18-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react18-v1.0.1...@cypress/react18-v1.1.0) (2022-09-30) From b3a9c046b4f93f84ad9c462e707f8ec4102d70a2 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sat, 1 Oct 2022 11:50:15 -0400 Subject: [PATCH 32/34] chore: release @cypress/vue-v4.2.0 [skip ci] --- npm/vue/CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/npm/vue/CHANGELOG.md b/npm/vue/CHANGELOG.md index 2d8e43a72bf2..92f7f4777b54 100644 --- a/npm/vue/CHANGELOG.md +++ b/npm/vue/CHANGELOG.md @@ -1,3 +1,16 @@ +# [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-10-01) + + +### Bug Fixes + +* fix regression in npm/vue ([#23954](https://github.com/cypress-io/cypress/issues/23954)) ([78779a2](https://github.com/cypress-io/cypress/commit/78779a2db13ca6555a6b830dbabeefd3d37bbfe5)) +* **npm/vue:** update types ([#23890](https://github.com/cypress-io/cypress/issues/23890)) ([eb8ae02](https://github.com/cypress-io/cypress/commit/eb8ae02b61304d034136f7627da1ab23537e3ba4)) + + +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + # [@cypress/vue-v4.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vue-v4.1.0...@cypress/vue-v4.2.0) (2022-09-30) From 32d7096af88e23d54b982a037d9bce53e79072a4 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sat, 1 Oct 2022 11:50:26 -0400 Subject: [PATCH 33/34] chore: release @cypress/vue2-v1.1.0 [skip ci] --- npm/vue2/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/npm/vue2/CHANGELOG.md b/npm/vue2/CHANGELOG.md index cbc4003e7cdd..4a5b729fea00 100644 --- a/npm/vue2/CHANGELOG.md +++ b/npm/vue2/CHANGELOG.md @@ -1,3 +1,10 @@ +# [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-10-01) + + +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) + # [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-09-30) From a76df0b4fd0293674cb9d115950697a04447ba9a Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sat, 1 Oct 2022 11:50:38 -0400 Subject: [PATCH 34/34] chore: release @cypress/webpack-dev-server-v2.3.0 [skip ci] --- npm/webpack-dev-server/CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/npm/webpack-dev-server/CHANGELOG.md b/npm/webpack-dev-server/CHANGELOG.md index 324be9dc9586..ae9d59cd5ccd 100644 --- a/npm/webpack-dev-server/CHANGELOG.md +++ b/npm/webpack-dev-server/CHANGELOG.md @@ -1,3 +1,20 @@ +# [@cypress/webpack-dev-server-v2.3.0](https://github.com/cypress-io/cypress/compare/@cypress/webpack-dev-server-v2.2.0...@cypress/webpack-dev-server-v2.3.0) (2022-10-01) + + +### Bug Fixes + +* allow asynchronous vue cli init phase ([#23936](https://github.com/cypress-io/cypress/issues/23936)) ([6a40936](https://github.com/cypress-io/cypress/commit/6a40936604ae24b0b40996692c4a03e5a3c1c9a2)) +* force Webpack to emit assets on error ([#23844](https://github.com/cypress-io/cypress/issues/23844)) ([466be9f](https://github.com/cypress-io/cypress/commit/466be9f1f0cbb843684361a9900832814353e3c0)) +* support type: module in Node.js 16.17.0+ and 18.6.0+ ([#23637](https://github.com/cypress-io/cypress/issues/23637)) ([b6dad0a](https://github.com/cypress-io/cypress/commit/b6dad0a674279936a9816939963bbf129647cee7)) +* **webpack-dev-server:** add custom project config to handler ([a07a2a1](https://github.com/cypress-io/cypress/commit/a07a2a118d7b62b90e790ef475c86959ae894b3b)) + + +### Features + +* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8)) +* allow vite/webpack config to be an async function ([#23605](https://github.com/cypress-io/cypress/issues/23605)) ([4c647f6](https://github.com/cypress-io/cypress/commit/4c647f6d5b0f58a797b50436e63c645418bc07ac)) +* CT stack traces ([#23916](https://github.com/cypress-io/cypress/issues/23916)) ([bf590eb](https://github.com/cypress-io/cypress/commit/bf590eba3f1cf46b04f6a1252e51da5c5a3dc7c2)) + # [@cypress/webpack-dev-server-v2.3.0](https://github.com/cypress-io/cypress/compare/@cypress/webpack-dev-server-v2.2.0...@cypress/webpack-dev-server-v2.3.0) (2022-09-30)