Skip to content

Commit

Permalink
remove --browser chrome since defaultBrowser is now a Cypress confi…
Browse files Browse the repository at this point in the history
…g option (#1)

* Update cy.cmd

* Update cy

* Update README.md

* Update package.json
  • Loading branch information
alexsch01 authored Dec 3, 2024
1 parent 709a1c0 commit 9c441ef
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions bin/cy
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions bin/cy.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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 %*
)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9c441ef

Please sign in to comment.