@revoloo/cypress6
Version:
Cypress.io end to end testing tool
145 lines (88 loc) • 10.3 kB
JavaScript
exports['testConfigOverrides / fails when passing invalid config value browser'] = `
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 1.2.3 │
│ Browser: FooBrowser 88 │
│ Specs: 1 found (testConfigOverrides-invalid-browser.js) │
│ Searched: cypress/integration/testConfigOverrides-invalid-browser.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: testConfigOverrides-invalid-browser.js (1 of 1)
1) An uncaught error was detected outside of a test
0 passing
1 failing
1) An uncaught error was detected outside of a test:
CypressError: The following error originated from your test code, not from Cypress.
> Test config value \`{ browser }\` must be passed a string, object, or an array. You passed: \`true\`
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
We dynamically generated a new test to display this failure.
[stack trace lines]
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 1 │
│ Passing: 0 │
│ Failing: 1 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 1 │
│ Video: true │
│ Duration: X seconds │
│ Spec Ran: testConfigOverrides-invalid-browser.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
(Screenshots)
- /XXX/XXX/XXX/cypress/screenshots/testConfigOverrides-invalid-browser.js/An uncau (1280x720)
ght error was detected outside of a test (failed).png
(Video)
- Started processing: Compressing to 32 CRF
- Finished processing: /XXX/XXX/XXX/cypress/videos/testConfigOverrides-invalid-bro (X second)
wser.js.mp4
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✖ testConfigOverrides-invalid-browser XX:XX 1 - 1 - - │
│ .js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✖ 1 of 1 failed (100%) XX:XX 1 - 1 - -
`
exports['testConfigOverrides / has originalTitle when skip due to browser config'] = `
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 1.2.3 │
│ Browser: FooBrowser 88 │
│ Specs: 1 found (testConfigOverrides-skip-browser.js) │
│ Searched: cypress/integration/testConfigOverrides-skip-browser.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: testConfigOverrides-skip-browser.js (1 of 1)
suite
- has invalid testConfigOverrides (skipped due to browser)
0 passing
1 pending
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 1 │
│ Passing: 0 │
│ Failing: 0 │
│ Pending: 1 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: X seconds │
│ Spec Ran: testConfigOverrides-skip-browser.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
(Video)
- Started processing: Compressing to 32 CRF
- Finished processing: /XXX/XXX/XXX/cypress/videos/testConfigOverrides-skip-browse (X second)
r.js.mp4
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ testConfigOverrides-skip-browser.js XX:XX 1 - - 1 - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✔ All specs passed! XX:XX 1 - - 1 -
`