test(integration): reorganize Hurl integration tests
This commit is contained in:
parent
368ff80ef3
commit
15020e9878
18 changed files with 154 additions and 10 deletions
17
tests/hurl_integration/scenarios/registration/main.hurl
Normal file
17
tests/hurl_integration/scenarios/registration/main.hurl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Asserts that registration is working
|
||||
POST {{ base_url }}/register
|
||||
[FormParams]
|
||||
email: john.doe@example.org
|
||||
handle: john.doe
|
||||
password: mysupersecretpassword
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
xpath "string(///div[@class='alert alert-success'])" contains "account has been created"
|
||||
|
||||
# Asserts that login is possible with new user
|
||||
POST {{ base_url }}/login
|
||||
[FormParams]
|
||||
login: john.doe
|
||||
password: mysupersecretpassword
|
||||
HTTP 303
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue