Last active
March 22, 2021 02:02
-
-
Save fsanggang/e4cd2bdaa5f025410c158ef8e0921f4b to your computer and use it in GitHub Desktop.
7019 test scenarios
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flags enabled: promo_parties_and_roles, promo_parties_and_roles_create_dummy_user | |
script to backpopulate dummy user has been run | |
1. New user, validation errors on submit | |
starting at /new | |
new user i.e. "Create a new user" | |
select "Business" account type | |
=> [ok] expect Company Name to be enabled, blanked, searchable | |
=> [ok] expect NZBN to be enabled, blanked, searchable | |
1.1 Signup with new user and existing organisation | |
- search for and select existing organisation | |
- validation error on submit e.g. mandatory fields left blank | |
=> [ok] expect Company Name to be enabled, searchable (a new signup so CSR can choose a different organisation) | |
=> [ok] expect NZBN to be populated (if organisation has NZBN) | |
- fix validation errors | |
=> [ok] expect to be able to complete signup | |
1.1a Signup with new user and new organisation after initially selecting existing organisation | |
- delete existing organisation name, and create new organisation instead | |
- validation error on submit | |
=> [ok] expect Company name to be populated, enabled, searchable | |
=> [ok] expect NZBN to be populated if details entered, enabled | |
- fix validation errors | |
=> [ok] expect to be able to complete signup | |
1.2 Signup with new user and new organisation | |
- new organisation | |
=> [ok] expect NZBN to be enabled | |
- validation error on submit | |
=> [ok] expect Company Name to be enabled, searchable | |
=> [ok] expect NZBN to be enabled | |
- fix validation errors | |
=> [ok] expect to be able to complete signup | |
2. New user, save progress | |
starting at /new | |
new user | |
select "Business" account type | |
=> [ok] expect Company Name to be enabled, blanked, searchable | |
=> [ok] expect NZBN to be enabled, blanked, searchable | |
2.1 Signup with new user and existing organisation | |
- search for and select existing organisation | |
- fill in mandatory fields for saving progress | |
- save progress | |
=> [ok] redirected to /edit/id?signup... with new signup radio button selected | |
=> [ok] expect Company Name to be populated | |
=> [ok] expect NZBN to be populated (if existing organisation has NZBN) | |
- fill in remaining fields for create | |
=> [ok] expect to be able to complete signup | |
2.2 Signup with new user and new organisation | |
- create new organisation | |
- fill in mandatory fields for saving progress | |
- save progress | |
=> [ok] expect to behave as per 2.1 | |
- fill in remaining fields for create | |
=> [ok] expect to be able to complete signup | |
3. New user, save progress abandoned | |
starting at /new | |
new user | |
select "Business" account type | |
=> [ok] expect Company Name to be enabled, blanked, searchable | |
=> [ok] expect NZBN to be enabled, blanked, searchable | |
3.1 Signup with new user and existing organisation before abandoning saved progress | |
- search for and select existing organisation | |
- fill in mandatory fields for saving progress | |
- save progress | |
=> [ok] redirected to /edit/id?signup... with new signup radio button selected | |
=> [ok] expect Company Name to be populated | |
=> [ok] expect NZBN to be populated (if existing organisation has NZBN) | |
- select "Create new account" | |
=> [ok] expect Company name to be enabled, blanked, searchable | |
=> [ok] expect NZBN to be enabled and blanked | |
=> [?] TODO what about other fields e.g. segment, company type? currently not cleared (default behaviour) | |
- search for and select another existing organisation | |
- fill in required fields for create | |
=> [ok] expect to be able to complete signup | |
3.2 Signup with new user and new organisation before abandoning saved progress | |
- create new organisation | |
- fill in mandatory fields for saving progress | |
- save progress | |
=> [ok] expect to behave as per 3.1 | |
- select "Create new account" | |
=> expect to behave as per 3.1 | |
- create another new organisation | |
- fill in required fields for create | |
=> [ok] expect to be able to complete signup | |
4. Existing account, validation errors on submit | |
starting at /new | |
existing user | |
select "Create new account" | |
select "Business" account type | |
=> [ok] expect Company Name to be enabled, blanked, searchable | |
=> [ok] expect NZBN to be enabled, blanked, searchable | |
4.1 Signup with existing user and existing organisation | |
- search for and select existing organisation | |
- validation error on submit e.g. mandatory fields left blank | |
=> [ok] expect Company Name to be enabled, searchable (a new signup so CSR can choose a different organisation) | |
=> [ok] expect NZBN to be populated (if organisation has NZBN) | |
- fix validation errors | |
=> [ok] expect to be able to complete signup | |
4.1a Signup with existing user and new organisation after initially selecting existing organisation | |
- new organisation | |
- validation error on submit | |
=> [ok] expect Company name to be populated, enabled, searchable | |
=> [ok] expect NZBN to be populated if details entered, enabled | |
4.2 Signup with existing user and new organisation | |
- new organisation | |
=> [ok] expect NZBN to be enabled | |
- validation error on submit | |
=> [ok] expect Company Name to be enabled, searchable | |
=> [ok] expect NZBN to be enabled | |
5. Existing user, save progress | |
starting at /new | |
existing user | |
select "Business" account type | |
=> [ok] expect Company Name to be enabled, blanked, searchable | |
=> [ok] expect NZBN to be enabled, blanked, searchable | |
5.1 Signup with existing user and existing organisation | |
- search for and select existing organisation | |
- fill in mandatory fields for saving progress | |
- save progress | |
=> [ok] redirected to /edit/id?signup... with new signup radio button selected | |
=> [ok] expect Company Name to be populated | |
=> [ok] expect NZBN to be populated (if existing organisation has NZBN) | |
- fill in remaining fields for create | |
=> [ok] expect to be able to complete signup | |
5.2 Signup with existing user and new organisation | |
- create new organisation | |
- fill in mandatory fields for saving progress | |
- save progress | |
=> [ok] expect to behave as per 5.1 | |
- fill in remaining fields for create | |
=> [ok] expect to be able to complete signup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment