-
Couldn't load subscription status.
- Fork 3.4k
moved to #27911 #27150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
moved to #27911 #27150
Changes from 49 commits
Commits
Show all changes
99 commits
Select commit
Hold shift + click to select a range
6b0a30c
feat: ability to specify the default running browser in cypress config
alexsch01 6335c53
variable name changes
alexsch01 8861eae
oops
alexsch01 8f1c3bc
prevent error when config doesn't exist
alexsch01 de2fb5f
fixed now
alexsch01 8770861
getting the cypress.config.js properly
alexsch01 2f5f10b
browser -> defaultBrowser
alexsch01 e1e72c1
add defaultBrowser type
alexsch01 ff75d39
remove not needed parts
alexsch01 b61f43a
fix for cypress.config.ts
alexsch01 ef745da
Update cli.js
alexsch01 1f04fbe
Merge branch 'develop' into default-browser-config
alexsch01 d91a9f4
Add systemtest: default-browser-config
alexsch01 0e433fe
temporary changelog
alexsch01 dd8f70c
Update CHANGELOG.md
alexsch01 0c502df
Update CHANGELOG.md
alexsch01 2f333b1
Merge branch 'cypress-io:develop' into default-browser-config
alexsch01 8cc35f5
Update cli.js
alexsch01 531c918
fix "-b" override
alexsch01 6de2752
method won't work for typescript config
alexsch01 e60534f
"defaultBrowser" -> "browser"
alexsch01 d013371
Revert CLI changes
alexsch01 a2c2b83
LETS GO
alexsch01 8426e3f
Update ProjectLifecycleManager.ts
alexsch01 90c8da2
isRunMode instead of going through config
alexsch01 6253f77
oops
alexsch01 f7524f3
Merge branch 'develop' into default-browser-config
lmiller1990 66b284d
remove browser RuntimeServerConfigOptions option
alexsch01 a8a8223
Make logic more clear
alexsch01 6688398
Update CHANGELOG.md
alexsch01 9e9a161
Update CHANGELOG.md
alexsch01 5a95d87
move browsers variable since unused above
alexsch01 13856b6
Update ProjectLifecycleManager.ts
alexsch01 6d57b65
add isBrowserGivenByCLI mode option
alexsch01 2736c5e
fix cypress open error for specific browserLaunch edge case
alexsch01 9823713
Update ProjectLifecycleManager.ts
alexsch01 c423b84
Back to default browser (#4)
alexsch01 3e47dae
Add to packages/config/src/options.ts
alexsch01 75ff26f
use browser instead of defaultBrowser
lmiller1990 97f4672
update tests
lmiller1990 f317b1c
merge develop
lmiller1990 996a728
Update ProjectLifecycleManager.ts
alexsch01 83ad754
Update index.ts
alexsch01 23c9c71
Update spec.cy.js
alexsch01 3c754c8
make alphabetical
alexsch01 bc3da51
Revert workaround 1
alexsch01 20d68e7
Revert workaround 2
alexsch01 475b51a
Remove browser config option for packages/config/src/options.ts
alexsch01 d51e789
Merge branch 'develop' into default-browser-config
jordanpowell88 938c4e6
refactor and add validation
lmiller1990 9be9ce4
merge in dev
lmiller1990 60193aa
fix ts build
alexsch01 817cc09
Update ProjectLifecycleManager.ts
alexsch01 7e021a6
Update coreDataShape.ts
alexsch01 442e41c
Update index.ts
alexsch01 12fc076
Update modeOptions.ts
alexsch01 72f590a
Merge branch 'develop' into default-browser-config
jennifer-shehane 137fadf
fix ts
lmiller1990 7a77867
remove unused test project
lmiller1990 20fc144
fix tests
lmiller1990 9cba663
update test
lmiller1990 d7cb149
fix test
lmiller1990 850848c
tests
lmiller1990 76e194d
fix ts
alexsch01 da35999
Merge branch 'develop' into default-browser-config
lmiller1990 fe64677
Merge branch 'develop' into default-browser-config
jennifer-shehane 344f701
WIP fix
alexsch01 905b6d5
oops for WIP fix
alexsch01 4b354dd
more fixes to WIP
alexsch01 acc024e
Update BrowserActions.ts
alexsch01 88a6390
huh
alexsch01 5c6c43b
Merge branch 'develop' into default-browser-config
lmiller1990 8c26200
make unit-tests pass
alexsch01 0dfe305
remove trailing whitespace
alexsch01 59e620b
Merge branch 'develop' into default-browser-config
lmiller1990 c774f92
fix lint
lmiller1990 04342e8
lit
lmiller1990 fa8025b
tests
lmiller1990 b1bc084
Merge branch 'develop' into default-browser-config
alexsch01 a34b895
Update config.ts
alexsch01 e1f535d
Merge branch 'develop' into default-browser-config
alexsch01 00d6f7c
Merge branch 'develop' into default-browser-config
lmiller1990 a918d9f
Merge branch 'develop' into default-browser-config
jennifer-shehane 16a194e
Merge branch 'develop' into default-browser-config
alexsch01 8607b64
reorder browser in snapshot results spec
alexsch01 04a758a
Merge branch 'develop' into default-browser-config
alexsch01 a2fa2c2
Merge branch 'develop' into default-browser-config
jennifer-shehane 7b0b264
Merge branch 'develop' into default-browser-config
alexsch01 a5cb3d9
chore: go back to defaultBrowser (#6)
alexsch01 f5cfb22
isBrowserGivenByCli
alexsch01 7b6aaab
oops
alexsch01 c9ba172
Update index.ts
alexsch01 b91e7df
finally done
alexsch01 af58fea
Merge branch 'develop' into default-browser-config
alexsch01 21ad307
Update CHANGELOG.md
alexsch01 009515d
Update CHANGELOG.md
alexsch01 4e95544
Update CHANGELOG.md
alexsch01 ae6a729
Update CHANGELOG.md
alexsch01 2a57a74
Merge branch 'develop' into default-browser-config
alexsch01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
system-tests/projects/config-default-browser/cypress.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| const { defineConfig } = require('cypress') | ||
|
|
||
| module.exports = defineConfig({ | ||
| e2e: { | ||
| browser: 'chrome', | ||
| supportFile: false, | ||
| }, | ||
| }) |
3 changes: 3 additions & 0 deletions
3
system-tests/projects/config-default-browser/cypress/e2e/spec.cy.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| it('works', () => { | ||
| expect(1).to.eq(1) | ||
| }) |
9 changes: 9 additions & 0 deletions
9
system-tests/projects/default-browser-config/cypress.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| const { defineConfig } = require("cypress"); | ||
|
|
||
| module.exports = defineConfig({ | ||
| e2e: { | ||
| supportFile: false, | ||
| }, | ||
| video: false, | ||
| screenshotOnRunFailure: false, | ||
| }); |
13 changes: 13 additions & 0 deletions
13
system-tests/projects/default-browser-config/cypress/e2e/spec.cy.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| it("Test running without browser config option", () => { | ||
| cy.exec('cd default-browser-unset && npx cypress run --quiet').then((e) => { | ||
| expect(e.stdout).to.contain('electron') | ||
| expect(e.stdout).to.not.contain('chrome') | ||
| }) | ||
| }) | ||
|
|
||
| it("Test running with browser: 'chrome' config option", () => { | ||
| cy.exec('cd default-browser-chrome && npx cypress run --quiet').then((e) => { | ||
| expect(e.stdout).to.contain('chrome') | ||
| expect(e.stdout).to.not.contain('electron') | ||
| }) | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.