Don't print 'first time' message if verification is running fro… (#6640)

* don't like 'first time' message if verification is running from 'cypress verify'

* updates snapshots to remove 'first time message' from verify specs
This commit is contained in:
Jennifer Shehane
2020-03-16 12:18:38 +06:30
committed by GitHub
parent aad48602a4
commit c40461fa22
2 changed files with 6 additions and 5 deletions
-2
View File
@@ -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
+6 -3
View File
@@ -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()