From c40461fa220f242bb5e209759d3b009f06df0631 Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Mon, 16 Mar 2020 12:18:38 +0630 Subject: [PATCH] =?UTF-8?q?Don't=20print=20'first=20time'=20message=20if?= =?UTF-8?q?=20verification=20is=20running=20fro=E2=80=A6=20(#6640)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * don't like 'first time' message if verification is running from 'cypress verify' * updates snapshots to remove 'first time message' from verify specs --- cli/__snapshots__/verify_spec.js | 2 -- cli/lib/tasks/verify.js | 9 ++++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cli/__snapshots__/verify_spec.js b/cli/__snapshots__/verify_spec.js index 5e8ec4c4a1..5fe74ce895 100644 --- a/cli/__snapshots__/verify_spec.js +++ b/cli/__snapshots__/verify_spec.js @@ -103,7 +103,6 @@ Cypress Version: 1.2.3 ` exports['fails verifying Cypress 1'] = ` -It looks like this is your first time using Cypress: 1.2.3 ✖ Verifying Cypress can run /cache/Cypress/1.2.3/Cypress.app STRIPPED @@ -309,7 +308,6 @@ Opening Cypress... ` exports['verification with executable 1'] = ` -It looks like this is your first time using Cypress: 1.2.3 ✔ Verified Cypress! /cache/Cypress/1.2.3/Cypress.app diff --git a/cli/lib/tasks/verify.js b/cli/lib/tasks/verify.js index 1d6298d443..f12ff88d46 100644 --- a/cli/lib/tasks/verify.js +++ b/cli/lib/tasks/verify.js @@ -168,9 +168,12 @@ const runSmokeTest = (binaryDir, options) => { function testBinary (version, binaryDir, options) { debug('running binary verification check', version) - logger.log(stripIndent` - It looks like this is your first time using Cypress: ${chalk.cyan(version)} - `) + // if running from 'cypress verify', don't print this message + if (!options.force) { + logger.log(stripIndent` + It looks like this is your first time using Cypress: ${chalk.cyan(version)} + `) + } logger.log()