@revoloo/cypress6
Version:
Cypress.io end to end testing tool
175 lines (127 loc) • 11.7 kB
JavaScript
exports['e2e cookies with baseurl'] = `
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 1.2.3 │
│ Browser: FooBrowser 88 │
│ Specs: 1 found (cookies_spec_baseurl.js) │
│ Searched: cypress/integration/cookies_spec_baseurl.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: cookies_spec_baseurl.js (1 of 1)
cookies
with preserve
✓ can get all cookies
✓ resets cookies between tests correctly
✓ should be only two left now
✓ handles undefined cookies
without preserve
✓ sends set cookies to path
✓ handles expired cookies secure
✓ issue: #224 sets expired cookies between redirects
✓ issue: #1321 failing to set or parse cookie
✓ issue: #2724 does not fail on invalid cookies
✓ can set and clear cookie
in a cy.visit
✓ can successfully send cookies as a Cookie header
✓ ignores invalid set-cookie headers that contain control chars
with Domain = superdomain
✓ is set properly with no redirects
✓ is set properly with redirects
with SameSite
✓ None is set and sent with subsequent requests
✓ Strict is set and sent with subsequent requests
✓ Lax is set and sent with subsequent requests
when redirected to a HTTP URL
✓ can set cookies on lots of redirects, ending with different domain
✓ can set cookies on lots of redirects, ending with same domain
when redirected to a HTTPS URL
✓ can set cookies on lots of redirects, ending with different domain
✓ can set cookies on lots of redirects, ending with same domain
in a cy.request
✓ can successfully send cookies as a Cookie header
✓ ignores invalid set-cookie headers that contain control chars
with Domain = superdomain
✓ is set properly with no redirects
✓ is set properly with redirects
with SameSite
✓ None is set and sent with subsequent requests
✓ Strict is set and sent with subsequent requests
✓ Lax is set and sent with subsequent requests
when redirected to a HTTP URL
✓ can set cookies on lots of redirects, ending with different domain
✓ can set cookies on lots of redirects, ending with same domain
when redirected to a HTTPS URL
✓ can set cookies on lots of redirects, ending with different domain
✓ can set cookies on lots of redirects, ending with same domain
32 passing
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 32 │
│ Passing: 32 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: X seconds │
│ Spec Ran: cookies_spec_baseurl.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
(Video)
- Started processing: Compressing to 32 CRF
- Finished processing: /XXX/XXX/XXX/cypress/videos/cookies_spec_baseurl.js.mp4 (X second)
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ cookies_spec_baseurl.js XX:XX 32 32 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✔ All specs passed! XX:XX 32 32 - - -
`
exports['e2e cookies with no baseurl'] = `
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 1.2.3 │
│ Browser: FooBrowser 88 │
│ Specs: 1 found (cookies_spec_no_baseurl.js) │
│ Searched: cypress/integration/cookies_spec_no_baseurl.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: cookies_spec_no_baseurl.js (1 of 1)
cookies
with preserve
✓ can get all cookies
✓ resets cookies between tests correctly
✓ should be only two left now
✓ handles undefined cookies
without preserve
✓ sends cookies to localhost:2121
✓ handles expired cookies secure
✓ issue: #224 sets expired cookies between redirects
✓ issue: #1321 failing to set or parse cookie
✓ issue: #2724 does not fail on invalid cookies
9 passing
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 9 │
│ Passing: 9 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: X seconds │
│ Spec Ran: cookies_spec_no_baseurl.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
(Video)
- Started processing: Compressing to 32 CRF
- Finished processing: /XXX/XXX/XXX/cypress/videos/cookies_spec_no_baseurl.js.mp4 (X second)
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ cookies_spec_no_baseurl.js XX:XX 9 9 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✔ All specs passed! XX:XX 9 9 - - -
`