-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
2_cookies_spec.ts.js
175 lines (128 loc) · 11.5 KB
/
2_cookies_spec.ts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
exports['e2e cookies with baseurl'] = `
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 1.2.3 │
│ Browser: FooBrowser 88 │
│ Specs: 1 found (cookies_spec_baseurl.coffee) │
│ Searched: cypress/integration/cookies_spec_baseurl.coffee │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: cookies_spec_baseurl.coffee (1 of 1)
cookies
with whitelist
✓ can get all cookies
✓ resets cookies between tests correctly
✓ should be only two left now
✓ handles undefined cookies
without whitelist
✓ 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.coffee │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
(Video)
- Started processing: Compressing to 32 CRF
- Finished processing: /XXX/XXX/XXX/cypress/videos/cookies_spec_baseurl.coffee.mp4 (X second)
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ cookies_spec_baseurl.coffee 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.coffee) │
│ Searched: cypress/integration/cookies_spec_no_baseurl.coffee │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: cookies_spec_no_baseurl.coffee (1 of 1)
cookies
with whitelist
✓ can get all cookies
✓ resets cookies between tests correctly
✓ should be only two left now
✓ handles undefined cookies
without whitelist
✓ 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.coffee │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
(Video)
- Started processing: Compressing to 32 CRF
- Finished processing: /XXX/XXX/XXX/cypress/videos/cookies_spec_no_baseurl.coffee. (X second)
mp4
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ cookies_spec_no_baseurl.coffee XX:XX 9 9 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✔ All specs passed! XX:XX 9 9 - - -
`