Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


STEPn/nDescriptionTest case InputsExpected resultStep by Step ScriptActual Result
Email
verification
EV1input new correct emailemail: correct200, email sentinput new correct email200, email sent
EV2input empty emailemail: ""422, "can't be blank"input empty email422, "can't be blank"
EV3input email which already existsemail: correct, exists409
"User with this email already exists"
input email which already exists409
"User with this email already exists"
EV4input incorrect emailemail: "123" 422, "has invalid format"input incorrect email422, "has invalid format"
EV5input few emailsemail: "email1",
email: "email2"
200, link sent to first emailinput few emails200, link sent to first email
Validate EmailVE1follow the link from emailjwt token200, response with new jwt tokenAuthorize with jwt token200, response with new jwt token
VE2follow eхpired link from emailjwt token - expired409 - link has expiredAuthorize with expired jwt token401, JWT expired
VE3follow the link from email after the user with this email was registeredjwt token409 Error 'User with this email already exists'Authorize with already used jwt token409, User with this email already exists
VE4input incorrect tokenincorrect jwt token401, access denied
401, access denied
Get users by tax_id and emailGU1find user by new tax_id and new_email

jwt token - with new email received in response

tax_id - new

200
  • Validate email
  • Input DS (extract tax_id)
200
GU2find user by existing email and different tax_idjwt token with existing email 
tax_id - valid, not matching
409, User with such email already exists
  • Validate email
  • Input DS (extract tax_id)

409, User with such email already exists

GU3find user by existing tax_id and different emailjwt token - existing email, not matching
tax_id - existing
409, User with such tax_id already exists
  • Validate email
  • Input DS (extract tax_id)
409, User with this tax_id already exists
GU4find user by existing and matching email and tax_id

jwt token - existing and matching email

tax_id - existing and matching tax_id

409, User with this tax_id already exists
  • Validate email
  • Input DS (extract tax_id)
409, User with this tax_id already exists
GU5expired jwt tokenjwt token - expired409 401 - link has expired
  • Validate email
  • Input DS (extract tax_id)
401, JWT expired
GU6incorrect jwt token (token from email)incorrect jwt token401, access denied
  • Validate email
  • Input DS (extract tax_id)
401, access denied
GU7invalid DSinvalid DS409, invalid DS 
  • Validate email
  • Input DS (extract tax_id)

Send OTPSO1send top

type = 'SMS' (correct)

factor = '+380' (valid phone number)

jwt token - valid

200, sms sent
200, sms sent
SO2input wrong typetype = 'EMAIL'422, $type
422, $type
SO3input wrong phone number 
"factor": "2242252",
"type": "SMS"
422, factor
422, $.factor
SO3input incorrect jwt tokenjwt from email link401, access denied
401, access denied
SO4input empty phone numberfactor=''422, factor
422, factor

...