18 lines
412 B
Text
18 lines
412 B
Text
|
|
# 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
|
||
|
|
|