From 9c441ef3491ae8aa0a6c7a6690f5633a3e3177d9 Mon Sep 17 00:00:00 2001 From: Alex Schwartz Date: Tue, 3 Dec 2024 10:02:41 -0500 Subject: [PATCH] remove `--browser chrome` since defaultBrowser is now a Cypress config option (#1) * Update cy.cmd * Update cy * Update README.md * Update package.json --- README.md | 8 ++++---- bin/cy | 8 ++++---- bin/cy.cmd | 8 ++++---- package.json | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index ff368b8..f869606 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,13 @@ npm install -g cypress-cy #### Examples -`cy run ` npx cypress run --browser chrome +`cy run ` npx cypress run -`cy open ` npx cypress run --browser chrome --headed --no-exit +`cy open ` npx cypress run --headed --no-exit -`cy ntlm run ` npx cypress-ntlm run --browser chrome +`cy ntlm run ` npx cypress-ntlm run -`cy ntlm open` npx cypress-ntlm run --browser chrome --headed --no-exit +`cy ntlm open` npx cypress-ntlm run --headed --no-exit #### How To Uninstall diff --git a/bin/cy b/bin/cy index a7a7022..87256f5 100755 --- a/bin/cy +++ b/bin/cy @@ -2,17 +2,17 @@ if [ "$1" = "ntlm" ] then if [ "$2" = "run" ] then - npx cypress-ntlm run --browser chrome "${@:3}" + npx cypress-ntlm run "${@:3}" elif [ "$2" = "open" ] then - npx cypress-ntlm run --browser chrome --headed --no-exit "${@:3}" + npx cypress-ntlm run --headed --no-exit "${@:3}" fi elif [ "$1" = "run" ] then - npx cypress run --browser chrome "${@:2}" + npx cypress run "${@:2}" elif [ "$1" = "open" ] then - npx cypress run --browser chrome --headed --no-exit "${@:2}" + npx cypress run --headed --no-exit "${@:2}" else npx cypress $* fi diff --git a/bin/cy.cmd b/bin/cy.cmd index 1657adc..9f0afe9 100644 --- a/bin/cy.cmd +++ b/bin/cy.cmd @@ -7,14 +7,14 @@ for /f "tokens=1,* delims= " %%a in ("%ALL_BUT_FIRST%") do set ALL_BUT_SECOND=%% if "%1" == "ntlm" ( if "%2" == "run" ( - npx cypress-ntlm run --browser chrome %ALL_BUT_SECOND% + npx cypress-ntlm run %ALL_BUT_SECOND% ) else if "%2" == "open" ( - npx cypress-ntlm run --browser chrome --headed --no-exit %ALL_BUT_SECOND% + npx cypress-ntlm run --headed --no-exit %ALL_BUT_SECOND% ) ) else if "%1" == "run" ( - npx cypress run --browser chrome %ALL_BUT_FIRST% + npx cypress run %ALL_BUT_FIRST% ) else if "%1" == "open" ( - npx cypress run --browser chrome --headed --no-exit %ALL_BUT_FIRST% + npx cypress run --headed --no-exit %ALL_BUT_FIRST% ) else ( npx cypress %* ) diff --git a/package.json b/package.json index f301f93..9b067b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cypress-cy", - "version": "1.5.2", + "version": "2.0.0", "description": "Run Cypress with less typing", "scripts": { "preinstall": "node scripts/preinstall.js",