Skip to content

Commit

Permalink
Merge branch 'develop' into jordanpowell88/update-angular-tsconfig-path
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanpowell88 authored Sep 5, 2023
2 parents d8d9d89 + b5c379f commit 8254be5
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .circleci/cache-version.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Bump this version to force CI to re-create the cache from scratch.

08-29-23
08-31-23
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Cypress.io
Copyright (c) 2023 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
Expand Down
4 changes: 3 additions & 1 deletion cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _Released 09/12/2023 (PENDING)_

## 13.1.0

_Released 09/12/2023 (PENDING)_
_Released 08/31/2023_

**Features:**

Expand All @@ -20,6 +20,8 @@ _Released 09/12/2023 (PENDING)_
- Fixed a regression introduced in Cypress [13.0.0](#13-0-0) where the [Module API](https://docs.cypress.io/guides/guides/module-api), [`after:run`](https://docs.cypress.io/api/plugins/after-run-api), and [`after:spec`](https://docs.cypress.io/api/plugins/after-spec-api) results did not include the `stats.skipped` field for each run result. Fixes [#27694](https://github.com/cypress-io/cypress/issues/27694). Addressed in [#27695](https://github.com/cypress-io/cypress/pull/27695).
- Individual CDP errors that occur while capturing data for test replay will no longer prevent the entire run from being available. Addressed in [#27709](https://github.com/cypress-io/cypress/pull/27709).
- Fixed an issue where the release date on the `v13` landing page was a day behind. Fixed in [#27711](https://github.com/cypress-io/cypress/pull/27711).
- Fixed an issue where fatal protocol errors would leak between specs causing all subsequent specs to fail to upload protocol information. Fixed in [#27720](https://github.com/cypress-io/cypress/pull/27720)
- Updated `plist` from `3.0.6` to `3.1.0` to address [CVE-2022-37616](https://github.com/advisories/GHSA-9pgh-qqpf-7wqj) and [CVE-2022-39353](https://github.com/advisories/GHSA-crh6-fp67-6883). Fixed in [#27710](https://github.com/cypress-io/cypress/pull/27710).

## 13.0.0

Expand Down
7 changes: 7 additions & 0 deletions npm/webpack-batteries-included-preprocessor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [@cypress/webpack-batteries-included-preprocessor-v3.0.2](https://github.com/cypress-io/cypress/compare/@cypress/webpack-batteries-included-preprocessor-v3.0.1...@cypress/webpack-batteries-included-preprocessor-v3.0.2) (2023-08-31)


### Bug Fixes

* change how tsconfig is aliased in webpack-batteries-included-preprocessor ([#27706](https://github.com/cypress-io/cypress/issues/27706)) ([6081751](https://github.com/cypress-io/cypress/commit/6081751c411a45bb9eaf7ba200d4921acdcc2422))

# [@cypress/webpack-batteries-included-preprocessor-v3.0.1](https://github.com/cypress-io/cypress/compare/@cypress/webpack-batteries-included-preprocessor-v3.0.0...@cypress/webpack-batteries-included-preprocessor-v3.0.1) (2023-08-29)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cypress",
"version": "13.0.0",
"version": "13.1.0",
"description": "Cypress is a next generation front end testing tool built for the modern web",
"private": true,
"scripts": {
Expand Down
14 changes: 7 additions & 7 deletions packages/driver/cypress/e2e/commands/sessions/sessions.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('cy.session', { retries: 0 }, () => {
const clearCurrentSessionData = cy.spy(Cypress.session, 'clearCurrentSessionData')

await Cypress.action('runner:test:before:run:async', {
runnable: 'r1',
id: 'r1',
currentRetry: 0,
}, Cypress.state('runnable'))

Expand All @@ -127,7 +127,7 @@ describe('cy.session', { retries: 0 }, () => {
const backendSpy = cy.spy(Cypress, 'backend').log(false)

await Cypress.action('runner:test:before:run:async', {
runnable: 'r1',
id: 'r1',
currentRetry: 0,
}, Cypress.state('runnable'))

Expand All @@ -144,7 +144,7 @@ describe('cy.session', { retries: 0 }, () => {
cy.spy(Cypress, 'action').log(false)

await Cypress.action('runner:test:before:run:async', {
runnable: 'r1',
id: 'r1',
currentRetry: 0,
}, Cypress.state('runnable'))
})
Expand Down Expand Up @@ -839,7 +839,7 @@ describe('cy.session', { retries: 0 }, () => {
cy.spy(Cypress, 'action').log(false)

await Cypress.action('runner:test:before:run:async', {
runnable: 'r1',
id: 'r1',
currentRetry: 0,
}, Cypress.state('runnable'))

Expand All @@ -853,7 +853,7 @@ describe('cy.session', { retries: 0 }, () => {
const clearCurrentSessionData = cy.spy(Cypress.session, 'clearCurrentSessionData')

await Cypress.action('runner:test:before:run:async', {
runnable: 'r1',
id: 'r1',
currentRetry: 0,
}, Cypress.state('runnable'))

Expand All @@ -864,7 +864,7 @@ describe('cy.session', { retries: 0 }, () => {
const backendSpy = cy.spy(Cypress, 'backend').log(false)

await Cypress.action('runner:test:before:run:async', {
runnable: 'r1',
id: 'r1',
currentRetry: 0,
}, Cypress.state('runnable'))

Expand All @@ -882,7 +882,7 @@ describe('cy.session', { retries: 0 }, () => {
cy.spy(Cypress, 'action').log(false)

await Cypress.action('runner:test:before:run:async', {
runnable: 'r1',
id: 'r1',
currentRetry: 0,
}, Cypress.state('runnable'))

Expand Down
2 changes: 1 addition & 1 deletion packages/driver/cypress/e2e/commands/window.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ describe('src/cy/commands/window', () => {

cy.viewport(500, 400).then(async () => {
await Cypress.action('runner:test:before:run:async', {
runnable: 'r1',
id: 'r1',
currentRetry: 0,
}, Cypress.state('runnable'))
.then(() => {
Expand Down
3 changes: 3 additions & 0 deletions packages/server/lib/cloud/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ export class ProtocolManager implements ProtocolManagerShape {
return
}

// Reset the errors here so that we are tracking on them per-spec
this._errors = []

try {
this._beforeSpec(spec)
} catch (error) {
Expand Down
8 changes: 8 additions & 0 deletions packages/server/test/unit/cloud/protocol_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,18 @@ describe('lib/cloud/protocol', () => {
it('should be able to initialize a new spec', () => {
sinon.stub(protocol, 'beforeSpec')

;(protocolManager as any)._errors = [
{
captureMethod: 'cdpClient.on',
},
]

protocolManager.beforeSpec({
instanceId: 'instanceId',
})

expect((protocolManager as any)._errors).to.be.empty

expect(protocol.beforeSpec).to.be.calledWith({
workingDirectory: path.join(os.tmpdir(), 'cypress', 'protocol'),
archivePath: path.join(os.tmpdir(), 'cypress', 'protocol', 'instanceId.tar'),
Expand Down

5 comments on commit 8254be5

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 8254be5 Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.1.1/linux-x64/jordanpowell88/update-angular-tsconfig-path-8254be53e116b7908095a869ffaec0e361ff4119/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 8254be5 Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.1.1/darwin-arm64/jordanpowell88/update-angular-tsconfig-path-8254be53e116b7908095a869ffaec0e361ff4119/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 8254be5 Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.1.1/linux-arm64/jordanpowell88/update-angular-tsconfig-path-8254be53e116b7908095a869ffaec0e361ff4119/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 8254be5 Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.1.1/darwin-x64/jordanpowell88/update-angular-tsconfig-path-8254be53e116b7908095a869ffaec0e361ff4119/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 8254be5 Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.1.1/win32-x64/jordanpowell88/update-angular-tsconfig-path-8254be53e116b7908095a869ffaec0e361ff4119/cypress.tgz

Please sign in to comment.