From 9b6f150f49165c7ee4f163f1ea9b4f5788db972d Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Tue, 13 May 2025 14:48:12 -0400 Subject: [PATCH] misc: remove recommendation for record false in error message (#31676) * misc: remove recommendation for record false in error message * cli entry --- cli/CHANGELOG.md | 1 + .../PROJECT_ID_AND_KEY_BUT_MISSING_RECORD_OPTION.html | 6 +----- packages/errors/src/errors.ts | 4 ---- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index 1780dfb005..100dc50275 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -14,6 +14,7 @@ _Released 5/20/2025 (PENDING)_ **Misc:** - Cursor is now available as an IDE option for opening files in Cypress, if it is installed on your system. Addressed in [#31691](https://github.com/cypress-io/cypress/pull/31691). +- The error shown when the `--record` flag is missing has been updated to be shorter. Addressed in [#31676](https://github.com/cypress-io/cypress/pull/31676). **Dependency Updates:** diff --git a/packages/errors/__snapshot-html__/PROJECT_ID_AND_KEY_BUT_MISSING_RECORD_OPTION.html b/packages/errors/__snapshot-html__/PROJECT_ID_AND_KEY_BUT_MISSING_RECORD_OPTION.html index 1a6f7924e4..69e69dfd68 100644 --- a/packages/errors/__snapshot-html__/PROJECT_ID_AND_KEY_BUT_MISSING_RECORD_OPTION.html +++ b/packages/errors/__snapshot-html__/PROJECT_ID_AND_KEY_BUT_MISSING_RECORD_OPTION.html @@ -46,9 +46,5 @@ $ cypress run --record -If you don't want to record these runs, you can silence this warning: - - $ cypress run --record false - -https://on.cypress.io/recording-project-runs +https://on.cypress.io/recording-project-runs \ No newline at end of file diff --git a/packages/errors/src/errors.ts b/packages/errors/src/errors.ts index 379a5acd64..072b9f7a60 100644 --- a/packages/errors/src/errors.ts +++ b/packages/errors/src/errors.ts @@ -491,10 +491,6 @@ export const AllCypressErrors = { ${fmt.terminal('cypress run --record')} - If you don't want to record these runs, you can silence this warning: - - ${fmt.terminal('cypress run --record false')} - https://on.cypress.io/recording-project-runs` }, CLOUD_INVALID_RUN_REQUEST: (arg1: {message: string, errors: string[], object: object}) => {