Skip to content

Commit 52fdef0

Browse files
Merge branch 'develop' into electron-34
2 parents 0a9bece + ac3bb18 commit 52fdef0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+436
-508
lines changed

.circleci/workflows.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
version: 2.1
22

3-
chrome-stable-version: &chrome-stable-version "135.0.7049.84"
4-
chrome-beta-version: &chrome-beta-version "136.0.7103.25"
3+
chrome-stable-version: &chrome-stable-version "135.0.7049.95"
4+
chrome-beta-version: &chrome-beta-version "136.0.7103.33"
55
firefox-stable-version: &firefox-stable-version "137.0"
66

77
orbs:
8-
browser-tools: circleci/[email protected].2
8+
browser-tools: circleci/[email protected].3
99

1010
defaults: &defaults
1111
parallelism: 1
@@ -38,7 +38,6 @@ mainBuildFilters: &mainBuildFilters
3838
- /^release\/\d+\.\d+\.\d+$/
3939
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
4040
- 'update-v8-snapshot-cache-on-develop'
41-
- 'ryanm/chore/add_internal_studio'
4241
- 'electron-34'
4342

4443
# usually we don't build Mac app - it takes a long time
@@ -50,7 +49,6 @@ macWorkflowFilters: &darwin-workflow-filters
5049
- equal: [ develop, << pipeline.git.branch >> ]
5150
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
5251
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
53-
- equal: [ 'feat/implement_bidi', << pipeline.git.branch >> ]
5452
- equal: [ 'electron-34', << pipeline.git.branch >> ]
5553
- matches:
5654
pattern: /^release\/\d+\.\d+\.\d+$/
@@ -62,7 +60,7 @@ linuxArm64WorkflowFilters: &linux-arm64-workflow-filters
6260
- equal: [ develop, << pipeline.git.branch >> ]
6361
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
6462
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
65-
- equal: [ 'chore/update_mobx_decoratorless', << pipeline.git.branch >> ]
63+
- equal: [ 'ryanm/chore/full-snapshot-threaded', << pipeline.git.branch >> ]
6664
- matches:
6765
pattern: /^release\/\d+\.\d+\.\d+$/
6866
value: << pipeline.git.branch >>
@@ -85,7 +83,6 @@ windowsWorkflowFilters: &windows-workflow-filters
8583
- equal: [ develop, << pipeline.git.branch >> ]
8684
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
8785
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
88-
- equal: [ 'feat/implement_bidi', << pipeline.git.branch >> ]
8986
- equal: [ 'electron-34', << pipeline.git.branch >> ]
9087
- matches:
9188
pattern: /^release\/\d+\.\d+\.\d+$/

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Cached Theme Material Design.pak
2020
packages/data-context/src/**/*.js
2121
packages/errors/src/**/*.js
2222
packages/errors/test/**/*.js
23+
!packages/errors/test/.mocharc.js
2324

2425
# from driver
2526
packages/driver/cypress/videos

cli/.mocharc.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
spec: 'test/**/*_spec.js',
3+
timeout: 10000,
4+
reporter: 'spec',
5+
recursive: true
6+
}

cli/CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
<!-- See the ../guides/writing-the-cypress-changelog.md for details on writing the changelog. -->
22
## 14.3.1
33

4-
_Released 4/22/2025 (PENDING)_
4+
_Released 4/17/2025_
5+
6+
**Performance:**
7+
8+
- Reduced the initial timeout for the preflight API request to determine proxy conditions from sixty seconds to five, and made this timeout duration configurable with the `CYPRESS_INITIAL_PREFLIGHT_TIMEOUT` environment variable. Addresses [#28423](https://github.com/cypress-io/cypress/issues/28423). Addressed in [#31283](https://github.com/cypress-io/cypress/pull/31283).
59

610
**Bugfixes:**
711

812
- The [`cy.press()`](http://on.cypress.io/api/press) command no longer errors when used in specs subsequent to the first spec in run mode. Fixes [#31466](https://github.com/cypress-io/cypress/issues/31466).
13+
- Fixed an issue where certain proxy conditions prevented test runs from being recorded. Fixes [#31485](https://github.com/cypress-io/cypress/issues/31485).
914

1015
**Misc:**
1116

cli/test/mocha.opts

-4
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cypress",
3-
"version": "14.3.0",
3+
"version": "14.3.1",
44
"description": "Cypress is a next generation front end testing tool built for the modern web",
55
"private": true,
66
"scripts": {

packages/app/cypress/e2e/specs.cy.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,8 @@ describe('App: Specs', () => {
647647
})
648648

649649
cy.contains('Review the docs')
650-
.should('have.attr', 'href', 'https://on.cypress.io/styling-components')
650+
.should('be.visible')
651+
.and('have.attr', 'href', 'https://on.cypress.io/styling-components')
651652

652653
cy.log('should not contain the link if you navigate away and back')
653654
cy.get('body').type('f')

packages/errors/.mocharc.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
spec: 'test/unit/*.ts',
3+
require: '@packages/ts/register',
4+
recursive: true,
5+
extension: ['ts'],
6+
reporter: 'mocha-multi-reporters',
7+
reporterOptions: {
8+
configFile: '../../mocha-reporter-config.json'
9+
},
10+
exit: true
11+
}

packages/errors/__snapshot-html__/NOT_LOGGED_IN.html renamed to packages/errors/__snapshot-html__/CDP_FIREFOX_DEPRECATED.html

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/errors/__snapshot-html__/FREE_PLAN_EXCEEDS_MONTHLY_PRIVATE_TESTS.html

-42
This file was deleted.

packages/errors/__snapshot-html__/FREE_PLAN_IN_GRACE_PERIOD_EXCEEDS_MONTHLY_PRIVATE_TESTS.html

-42
This file was deleted.

packages/errors/__snapshot-html__/PAID_PLAN_EXCEEDS_MONTHLY_PRIVATE_TESTS.html

-42
This file was deleted.

packages/errors/src/errors.ts

-36
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,6 @@ export const AllCypressErrors = {
138138
139139
${fmt.highlightSecondary(arg2)}`
140140
},
141-
NOT_LOGGED_IN: () => {
142-
return errTemplate`\
143-
You're not logged in.
144-
145-
Run ${fmt.highlight(`cypress open`)} to open Cypress and log in.`
146-
},
147141
TESTS_DID_NOT_START_RETRYING: (arg1: string) => {
148142
return errTemplate`Timed out waiting for the browser to connect. ${fmt.off(arg1)}`
149143
},
@@ -1032,30 +1026,6 @@ export const AllCypressErrors = {
10321026
10331027
https://on.cypress.io/installing-cypress`
10341028
},
1035-
FREE_PLAN_EXCEEDS_MONTHLY_PRIVATE_TESTS: (arg1: {link: string, usedTestsMessage: string, limit: number}) => {
1036-
return errTemplate`\
1037-
You've exceeded the limit of private test results under your free plan this month. ${getUsedTestsMessage(arg1.limit, arg1.usedTestsMessage)}
1038-
1039-
To continue recording tests this month you must upgrade your account. Please visit your billing to upgrade to another billing plan.
1040-
1041-
${fmt.off(arg1.link)}`
1042-
},
1043-
FREE_PLAN_IN_GRACE_PERIOD_EXCEEDS_MONTHLY_PRIVATE_TESTS: (arg1: {link: string, usedTestsMessage: string, gracePeriodMessage: string, limit: number}) => {
1044-
return errTemplate`\
1045-
You've exceeded the limit of private test results under your free plan this month. ${getUsedTestsMessage(arg1.limit, arg1.usedTestsMessage)}
1046-
1047-
Your plan is now in a grace period, which means your tests will still be recorded until ${fmt.off(arg1.gracePeriodMessage)}. Please upgrade your plan to continue recording tests on Cypress Cloud in the future.
1048-
1049-
${fmt.off(arg1.link)}`
1050-
},
1051-
PAID_PLAN_EXCEEDS_MONTHLY_PRIVATE_TESTS: (arg1: {link: string, usedTestsMessage: string, limit: number}) => {
1052-
return errTemplate`\
1053-
You've exceeded the limit of private test results under your current billing plan this month. ${getUsedTestsMessage(arg1.limit, arg1.usedTestsMessage)}
1054-
1055-
To upgrade your account, please visit your billing to upgrade to another billing plan.
1056-
1057-
${fmt.off(arg1.link)}`
1058-
},
10591029
FREE_PLAN_EXCEEDS_MONTHLY_TESTS: (arg1: {link: string, usedTestsMessage: string, limit: number}) => {
10601030
return errTemplate`\
10611031
You've exceeded the limit of test results under your free plan this month. ${getUsedTestsMessage(arg1.limit, arg1.usedTestsMessage)}
@@ -1901,12 +1871,6 @@ export type AllCypressErrorObj = typeof AllCypressErrors
19011871

19021872
export type AllCypressErrorNames = keyof typeof AllCypressErrors
19031873

1904-
export function getMsgByType<Type extends keyof AllCypressErrorObj> (type: Type, ...args: Parameters<AllCypressErrorObj[Type]>): string {
1905-
const err = getError(type, ...args)
1906-
1907-
return err.message
1908-
}
1909-
19101874
/**
19111875
* Given an error name & params for the error, returns a "CypressError",
19121876
* with a forBrowser property, used when we want to format the value for sending to

packages/errors/test/mocha.opts

-7
This file was deleted.

packages/errors/test/unit/errors_spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('lib/errors', () => {
1717

1818
context('.log', () => {
1919
it('uses red by default', () => {
20-
const err = errors.get('NOT_LOGGED_IN')
20+
const err = errors.get('TESTS_DID_NOT_START_FAILED')
2121

2222
const ret = errors.log(err)
2323

@@ -33,7 +33,7 @@ describe('lib/errors', () => {
3333
})
3434

3535
it('can change the color', () => {
36-
const err = errors.get('NOT_LOGGED_IN')
36+
const err = errors.get('TESTS_DID_NOT_START_FAILED')
3737

3838
const ret = errors.log(err, 'yellow')
3939

packages/errors/test/unit/visualSnapshotErrors_spec.ts

-33
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,6 @@ describe('visual error templates', () => {
364364
default: ['/path/does/not/exist', err.message],
365365
}
366366
},
367-
NOT_LOGGED_IN: () => {
368-
return {
369-
default: [],
370-
}
371-
},
372367
TESTS_DID_NOT_START_RETRYING: () => {
373368
return {
374369
default: ['Retrying...'],
@@ -971,34 +966,6 @@ describe('visual error templates', () => {
971966
default: [],
972967
}
973968
},
974-
FREE_PLAN_EXCEEDS_MONTHLY_PRIVATE_TESTS: () => {
975-
return {
976-
default: [{
977-
link: 'https://cloud.cypress.io/project/abcd',
978-
limit: 500,
979-
usedTestsMessage: 'test',
980-
}],
981-
}
982-
},
983-
FREE_PLAN_IN_GRACE_PERIOD_EXCEEDS_MONTHLY_PRIVATE_TESTS: () => {
984-
return {
985-
default: [{
986-
link: 'https://cloud.cypress.io/project/abcd',
987-
limit: 500,
988-
usedTestsMessage: 'test',
989-
gracePeriodMessage: 'the grace period ends',
990-
}],
991-
}
992-
},
993-
PAID_PLAN_EXCEEDS_MONTHLY_PRIVATE_TESTS: () => {
994-
return {
995-
default: [{
996-
link: 'https://on.cypress.io/set-up-billing',
997-
limit: 25000,
998-
usedTestsMessage: 'private test',
999-
}],
1000-
}
1001-
},
1002969
FREE_PLAN_EXCEEDS_MONTHLY_TESTS: () => {
1003970
return {
1004971
default: [{

0 commit comments

Comments
 (0)