Skip to content

Commit cd29518

Browse files
committed
Add rich text editor Hurl workflow
1 parent 7a55ebf commit cd29518

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

examples/rich-text-editor/test.hurl

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
GET http://localhost:8080
2+
HTTP 200
3+
[Asserts]
4+
body contains "Rich text editor"
5+
body contains "Create a new blog post"
6+
body contains "Blog posts"
7+
body not contains "An error occurred"
8+
9+
POST http://localhost:8080/create_blog_post
10+
[FormParams]
11+
title: Hurl Rich Post
12+
content: Hurl **rich** content
13+
HTTP 302
14+
[Captures]
15+
location: header "Location"
16+
[Asserts]
17+
header "Location" matches "^post\\?id=\\d+$"
18+
19+
GET http://localhost:8080/{{location}}
20+
HTTP 200
21+
[Asserts]
22+
body contains "Hurl Rich Post"
23+
body contains "Hurl"
24+
body contains "rich"
25+
body contains "Edit"
26+
body not contains "An error occurred"
27+
28+
POST http://localhost:8080/edit?id=1
29+
[FormParams]
30+
title: Hurl Updated Post
31+
content: Updated rich content
32+
HTTP 302
33+
[Asserts]
34+
header "Location" == "post?id=1"
35+
36+
GET http://localhost:8080/post?id=1
37+
HTTP 200
38+
[Asserts]
39+
body contains "Hurl Updated Post"
40+
body contains "Updated rich content"
41+
body not contains "An error occurred"

0 commit comments

Comments
 (0)