From 2981ff9a40cb50094f690adb2ddd4a23e5ae3c35 Mon Sep 17 00:00:00 2001 From: Ophir LOJKINE Date: Tue, 2 Jun 2026 12:54:06 +0200 Subject: [PATCH] Add light-dark toggle Hurl workflow --- examples/light-dark-toggle/test.hurl | 30 +++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) mode change 120000 => 100644 examples/light-dark-toggle/test.hurl diff --git a/examples/light-dark-toggle/test.hurl b/examples/light-dark-toggle/test.hurl deleted file mode 120000 index 0dd017b9..00000000 --- a/examples/light-dark-toggle/test.hurl +++ /dev/null @@ -1 +0,0 @@ -../../test.hurl \ No newline at end of file diff --git a/examples/light-dark-toggle/test.hurl b/examples/light-dark-toggle/test.hurl new file mode 100644 index 00000000..c9265b0d --- /dev/null +++ b/examples/light-dark-toggle/test.hurl @@ -0,0 +1,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"