Skip to content

Commit ef68cba

Browse files
committed
Add React custom scripts Hurl workflow
1 parent f2b14e7 commit ef68cba

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

examples/using react and other custom scripts and styles/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ services:
55
- "8080:8080"
66
volumes:
77
- .:/var/www
8+
- ./sqlpage:/etc/sqlpage

examples/using react and other custom scripts and styles/test.hurl

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
GET http://localhost:8080/
2+
HTTP 200
3+
[Asserts]
4+
body contains "SQLPage with a frontend component"
5+
body contains "Try my react component !"
6+
body contains "style.css"
7+
body contains "funky_text"
8+
9+
GET http://localhost:8080/style.css
10+
HTTP 200
11+
[Asserts]
12+
body contains "#funky_text"
13+
body contains "neon-glow"
14+
15+
GET http://localhost:8080/react.sql
16+
HTTP 200
17+
[Asserts]
18+
body contains "my_react_component.js"
19+
body contains "react_component"
20+
body contains "Dynamic component is loading..."
21+
body contains "World"
22+
23+
GET http://localhost:8080/my_react_component.js
24+
HTTP 200
25+
[Asserts]
26+
body contains "fetch(\"/api.sql\")"
27+
body contains "ReactDOM.createRoot"

0 commit comments

Comments
 (0)