File tree Expand file tree Collapse file tree
examples/rich-text-editor Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments