-
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathtest.hurl
More file actions
29 lines (26 loc) · 763 Bytes
/
Copy pathtest.hurl
File metadata and controls
29 lines (26 loc) · 763 Bytes
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
GET http://localhost:8080/
HTTP 200
[Asserts]
body contains "Toggle Light / Dark Mode"
body contains "Categories"
body contains "☀"
body not contains "An error occurred"
GET http://localhost:8080/toggle.sql
Referer: http://localhost:8080/
HTTP 302
[Asserts]
header "Set-Cookie" contains "lightdarkstatus=dark"
header "Location" == "http://localhost:8080/"
GET http://localhost:8080/biography.sql
HTTP 200
[Asserts]
body contains "Biography"
body contains "Morbi fermentum"
body contains "data-bs-theme=\"dark\""
body not contains "An error occurred"
GET http://localhost:8080/toggle.sql
Referer: http://localhost:8080/biography.sql
HTTP 302
[Asserts]
header "Set-Cookie" contains "lightdarkstatus="
header "Location" == "http://localhost:8080/biography.sql"