This is just a technology testing project based on Create React App and TailwindCSS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.2KB

  1. Feature: Recover password
  2. Background:
  3. Given visit "Home" page
  4. # clear input fields persistence mechanism (just speeds up the test)
  5. Given clear browser storages
  6. When press "Sign In" button at "Page content"
  7. Then modal of "Sign in the restricted area" dialog opened
  8. When click "Forgot password?" link at "Sign In form"
  9. Then modal of "Sign in the restricted area" dialog closed
  10. * modal of "Forgotten password recovery" dialog opened
  11. # Path of success
  12. Scenario: Fulfill password recovery form
  13. When enter "test@example.com" in "Email" input at "Password recovery form"
  14. Then button "Recover" at "Password recovery form" is enabled
  15. When press "Recover" button at "Password recovery form"
  16. Then modal of "Sign in the restricted area" dialog closed
  17. * modal of "Data submitted from the form" dialog opened
  18. # technical field names are used
  19. * jsonView field "email" contains "test@example.com"
  20. Scenario: Switch to Sign In dialogue
  21. When press "Go to Sign In" button at "Password recovery form"
  22. Then modal of "Forgotten password recovery" dialog closed
  23. * modal of "Sign in the restricted area" dialog opened
  24. # Validations testing
  25. Scenario: Password recovery form validations
  26. # prepare state of success
  27. Given enter "test@example.com" in "Email" input at "Password recovery form"
  28. * button "Recover" at "Password recovery form" is enabled
  29. Then not see "Required" at "Error message"
  30. * not see "Must be a valid email address" at "Error message"
  31. When enter "" in "Email" input at "Password recovery form"
  32. Then see "Required" at "Error message"
  33. * button "Recover" at "Password recovery form" is disabled
  34. When enter "test" in "Email" input at "Password recovery form"
  35. Then see "Must be a valid email address" at "Error message"
  36. * button "Recover" at "Password recovery form" is disabled
  37. When enter "test@example.com" in "Email" input at "Password recovery form"
  38. Then not see "Must be a valid email address" at "Error message"
  39. * button "Recover" at "Password recovery form" is enabled