Files
cypress/packages/server/__snapshots__/info_spec.js
T
Gleb Bahmutov 070fceff20 add "cypress info" command (#6372)
* WIP: add cli info command to list detected browsers

* print found browsers

* change to list

* start work on info command calling into binary

* move info command into binary

* print OS info during cypress info command

* add binary cache path to info command

* add browser profile path

* add memory

* get browser profile path without partition

* pick real browsers as examples

* output same info as desired

* better names

* changed colors

* add list of cached binary versions

* do not put stable into name

* add underlined link

* conditionally show profile path, only if the folder exists

* do not list cached binaries

* human-friendly memory print

* print env proxy vars

* print CYPRESS_ env variables

* use _.sample

* update order

* store cypress info output on CI as HTML page artifact

* add percy CLI screenshots

* sanitize cypress info command

* store CLI snapshots in cli/visual-snapshots folder

* update cli unit snapshot

* add cli unit test

* start e2e testing for cypress info

* add test with proxy and cypress vars

* make sure we call the binary

* stricter start check

* start unit testing modes info

* test info mode browser print

* add test for profile path

* add cypress info command to test binary Circle job

* add cypress info to test-binary-as-specific-user circle

* print cypress info --dev on circle and on appveyor

* update .gitignore

* move error in environment load to debug
2020-02-20 10:54:25 -05:00

83 lines
1.6 KiB
JavaScript

exports['two browsers with firefox having profile folder'] = `
Displaying Cypress info...
Detected 2 browsers installed:
1. Chrome
- Name: chrome
- Channel: stable
- Version: 12.34.56
- Executable: /path/to/google-chrome
2. Firefox Dev
- Name: firefox
- Channel: dev
- Version: 79.0a1
- Executable: /path/to/firefox
- Profile: /path/to/user/firefox/profile
Note: to run these browsers, pass <name>:<channel> to the '--browser' field
Examples:
- cypress run --browser chrome
- cypress run --browser firefox:dev
Learn More: https://on.cypress.io/launching-browsers
`
exports['output without any browsers'] = `
Displaying Cypress info...
Detected no known browsers installed
`
exports['single chrome:stable'] = `
Displaying Cypress info...
Detected 1 browser installed:
1. Chrome
- Name: chrome
- Channel: stable
- Version: 12.34.56
- Executable: /path/to/google-chrome
Note: to run these browsers, pass <name>:<channel> to the '--browser' field
Examples:
- cypress run --browser chrome
Learn More: https://on.cypress.io/launching-browsers
`
exports['two browsers'] = `
Displaying Cypress info...
Detected 2 browsers installed:
1. Chrome
- Name: chrome
- Channel: stable
- Version: 12.34.56
- Executable: /path/to/google-chrome
2. Firefox Dev
- Name: firefox
- Channel: dev
- Version: 79.0a1
- Executable: /path/to/firefox
Note: to run these browsers, pass <name>:<channel> to the '--browser' field
Examples:
- cypress run --browser chrome
- cypress run --browser firefox:dev
Learn More: https://on.cypress.io/launching-browsers
`