Add React custom scripts Hurl workflow

This commit is contained in:
Ophir LOJKINE
2026-06-02 13:22:39 +02:00
committed by Ophir LOJKINE
parent 8bb80d165b
commit c2c6b75436
2 changed files with 28 additions and 1 deletions
@@ -5,3 +5,4 @@ services:
- "8080:8080"
volumes:
- .:/var/www
- ./sqlpage:/etc/sqlpage
@@ -1 +0,0 @@
../../test.hurl
@@ -0,0 +1,27 @@
GET http://localhost:8080/
HTTP 200
[Asserts]
body contains "SQLPage with a frontend component"
body contains "Try my react component !"
body contains "style.css"
body contains "funky_text"
GET http://localhost:8080/style.css
HTTP 200
[Asserts]
body contains "#funky_text"
body contains "neon-glow"
GET http://localhost:8080/react.sql
HTTP 200
[Asserts]
body contains "my_react_component.js"
body contains "react_component"
body contains "Dynamic component is loading..."
body contains "World"
GET http://localhost:8080/my_react_component.js
HTTP 200
[Asserts]
body contains "fetch(\"/api.sql\")"
body contains "ReactDOM.createRoot"