feat(reset_password): add invitation and reset password activation basic flow
This commit is contained in:
parent
b956bdbf05
commit
8d20cab18f
14 changed files with 328 additions and 20 deletions
28
tests/hurl_integration/user_invitation_scenario/main.hurl
Normal file
28
tests/hurl_integration/user_invitation_scenario/main.hurl
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
GET {{ base_url }}/api
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
jsonpath "$.software" == "Minauthator"
|
||||
|
||||
GET {{ base_url }}/invitation
|
||||
[QueryStringParams]
|
||||
token: Z433-Y001-V987-P500
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
xpath "string(///h1)" contains "Invitation"
|
||||
|
||||
POST {{ base_url }}/reset-password
|
||||
[FormParams]
|
||||
token: Z433-Y001-V987-P500
|
||||
password: newpassword10!
|
||||
password_confirmation: newpassword10!
|
||||
HTTP 303
|
||||
[Asserts]
|
||||
header "Location" == "/login"
|
||||
|
||||
POST {{ base_url }}/login
|
||||
[FormParams]
|
||||
login: invited_user
|
||||
password: newpassword10!
|
||||
HTTP 303
|
||||
[Asserts]
|
||||
cookie "minauthator_jwt" exists
|
||||
Loading…
Add table
Add a link
Reference in a new issue