Add remote content cards Hurl workflow

This commit is contained in:
Ophir LOJKINE
2026-06-02 13:30:32 +02:00
committed by Ophir LOJKINE
parent 93d8da560b
commit 4fc8247757
@@ -1 +0,0 @@
../../test.hurl
@@ -0,0 +1,32 @@
GET http://localhost:8080/
HTTP 200
[Asserts]
xpath "count(//div[contains(@class, 'card')])" >= 4
body contains "A card with a Markdown description"
body contains "<strong>Markdown</strong>"
body htmlUnescape contains "/chart-example.sql?_sqlpage_embed"
body htmlUnescape contains "/map-example.sql?_sqlpage_embed"
body htmlUnescape contains "/table-example.sql?_sqlpage_embed"
body not contains "An error occurred"
GET http://localhost:8080/chart-example.sql?_sqlpage_embed
HTTP 200
[Asserts]
xpath "normalize-space(//*[contains(., 'Quarterly Revenue')])" contains "Quarterly Revenue"
body contains "2023-07-01T00:00:00Z"
body not contains "An error occurred"
GET http://localhost:8080/map-example.sql?_sqlpage_embed
HTTP 200
[Asserts]
body contains "New Delhi"
body contains "28.6139"
body not contains "An error occurred"
GET http://localhost:8080/table-example.sql?_sqlpage_embed
HTTP 200
[Asserts]
xpath "normalize-space(//*[contains(., 'Forename')])" contains "Forename"
body contains "Ophir"
body contains "Torvalds"
body not contains "An error occurred"