diff --git a/packages/server/README.md b/packages/server/README.md index 46346feea42d..7c0c79dc2831 100644 --- a/packages/server/README.md +++ b/packages/server/README.md @@ -70,4 +70,6 @@ To run an individual e2e test: ```bash ## runs tests that match "base_url" npm run test-e2e -- --spec base_url -``` \ No newline at end of file +``` + +To update snapshots, see `snap-shot-it` instructions: https://github.com/bahmutov/snap-shot-it#advanced-use \ No newline at end of file diff --git a/packages/server/__snapshots__/7_record_spec.coffee.js b/packages/server/__snapshots__/7_record_spec.coffee.js index 7447e4a7b8de..b0ad0f250a2c 100644 --- a/packages/server/__snapshots__/7_record_spec.coffee.js +++ b/packages/server/__snapshots__/7_record_spec.coffee.js @@ -592,13 +592,11 @@ https://on.cypress.io/recording-project-runs ` exports['e2e record api interaction errors recordKey and projectId errors and exits on 401 1'] = ` -We failed trying to authenticate this project: pid123 - -Your Record Key is invalid: f858a...ee7e1 +Your Record Key f858a...ee7e1 is not valid with this project: pid123 It may have been recently revoked by you or another user. -Please log into the Dashboard to see the updated token. +Please log into the Dashboard to see the valid record keys. https://on.cypress.io/dashboard/projects/pid123 diff --git a/packages/server/lib/errors.coffee b/packages/server/lib/errors.coffee index 3a4f522b86dc..7154218bf779 100644 --- a/packages/server/lib/errors.coffee +++ b/packages/server/lib/errors.coffee @@ -427,13 +427,11 @@ getMsgByType = (type, arg1 = {}, arg2) -> """ when "DASHBOARD_RECORD_KEY_NOT_VALID" """ - We failed trying to authenticate this project: #{chalk.blue(arg2)} - - Your Record Key is invalid: #{chalk.yellow(arg1)} + Your Record Key #{chalk.yellow(arg1)} is not valid with this project: #{chalk.blue(arg2)} It may have been recently revoked by you or another user. - Please log into the Dashboard to see the updated token. + Please log into the Dashboard to see the valid record keys. https://on.cypress.io/dashboard/projects/#{arg2} """