Create gherkin tests for new onboarding flow
Goal
Create gherkin tests in frontend for new onboarding flow.
What needs to be done
Required Automated Tests:
Scenario: Verify that when experiment is OFF new onboarding is not displayed
Given I am not logged in
When the onboarding experiment is turned OFF
And I navigate to minds.com page
And tap on Join Now button
Then I see the old onboarding screen
Scenario: Verify that when experiment is ON new onboarding is displayed from minds page
Given I am not logged in
When the onboarding experiment is turned ON
And I navigate to minds home page
And tap on Join Now button
Then I can view the new onboarding screen
Scenario: Verify that when experiment is ON new onboarding is displayed from registration page
Given I am not logged in
When the onboarding experiment is turned ON
And I navigate to minds registration page
Then I can view the new onboarding screen
Scenario: Verify that when experiment is ON new onboarding is displayed from guest mode page
Given I am not logged in
When the onboarding experiment is turned ON
And I navigate to minds guest mode page
And tap on Join Now button
Then I can view the new onboarding screen
Scenario: Verify that I can navigate through the onboarding help screens with arrows
Given I am not logged in
When I navigate to minds registration page
Then I can navigate through the 3 onboarding help screens with right and left arrows
Scenario: Verify that I can navigate through the onboarding help screens with dots menu
Given I am not logged in
When I navigate to minds registration page
Then I can navigate through the 3 onboarding help screens with dots menu
Scenario: Verify that "Receive exclusive token rewards and info" is pre-selected on registration
Given I am not logged in
When I navigate to minds registration page
Then I see the "Receive exclusive token rewards and info" checkbox pre-selected
Scenario: Register a user with valid credentials
Given I am on minds registration page
When I enter valid details for username, email and matching passwords
And accept the terms and conditions
And tap on Join Now button
Then I am registered and taken to Verify Email page
Scenario: Register a user with invalid username syntax
Given I am on minds registration page
When I enter invalid details for username that includes special characters
Then I am shown an invalid username syntax error next to the username field
Scenario: Register a user with existing username
Given I am on minds registration page
When I enter invalid details for username that already exists
And I enter valid details for email and matching passwords
And accept the terms and conditions
And tap on Join Now button
Then I am shown a username already exists error
Scenario: Register a user with invalid email syntax
Given I am on minds registration page
When I enter invalid syntax format for email
Then I am shown an invalid email syntax error next to the email field
Scenario: Register a user with invalid password syntax
Given I am on minds registration page
When I enter invalid details for password that does not match the password criteria
Then I am shown a password criteria popup with an error next to the criteria not met
Scenario: Register a user with non-matching passwords
Given I am on minds registration page
When I enter invalid details for second password that does not match the first password
Then I am shown a non-matching password error next to second password field
Scenario: Register a user with valid credentials without signing up for promotions
Given I am on minds registration page
When I enter valid details for username, email and matching passwords
And accept the terms and conditions
And deselect "Receive exclusive token rewards and info" checkbox
And tap on Join Now button
Then I am registered and taken to Verify Email page
Scenario: Verify that you can successfully verify email
Given I have completed the registration panel successfully
When I am on verify email page
And I enter valid code
And press Verify button
Then I see the tags page
Scenario: Verify that invalid email code throws an error on verify email page
Given I have completed the registration panel successfully
When I am on verify email page
And I enter invalid email code
And press Verify button
Then I see an invalid email code error
Scenario: Verify that I can resend verify email code
Given I have completed the registration panel successfully
When I am on verify email page
And I tap on resend code button
Then I can receive a new email code
Scenario: Verify that you can successfully select tags
Given I have completed the email verification successfully
When I am on select tags page
And I select 3 tags
Then I can successfully press Continue button to go to next page
Scenario: Verify that Continue button is disabled when tags are not selected
Given I have completed the email verification successfully
When I am on select tags page
And I only select 2 tags
Then I cannot press Continue button to go to next page
Scenario: Verify that you can successfully add a new tag when onboarding
Given I have completed the email verification successfully
When I am on select tags page
And I add 3 new tags
Then I can successfully press Continue button to go to next page
Scenario: Verify that you can successfully enter your purpose on minds
Given I have completed the tag selection successfully
When I am on minds purpose page
And I select one of the options
Then I can successfully press Continue button to go to next page
Scenario: Verify that not entering your purpose on minds does not let you continue onboarding
Given I have completed the tag selection successfully
When I am on minds purpose page
And I have all options deselected
Then Continue button is disabled
Scenario: Verify that you can successfully subscribe to channel onboarding suggestions
Given I have completed the minds purpose selection successfully
When I am on minds channel suggestions page
And I subscribe to one of the channel
Then I can successfully press Continue button to go to next page
Scenario: Verify that you can successfully subscribe to group onboarding suggestions
Given I have completed the minds channel selection successfully
When I am on minds group suggestions page
And I subscribe to one of the group
And I press the Continue page
Then I am logged in and taken to Minds Newsfeed page successfully
Platforms: Web, Tablet & Mobile
QA
Ensure all tests pass as expected.
UX/Design
N/A
Mobile
-
Is Mobile Required?
Personas
Experiments
Acceptance Criteria
-
Gherkin tests mentioned should be automated for frontend
Definition of Ready Checklist
-
Definition Of Done (DoD) -
Acceptance criteria -
Weighted -
QA -
UX/Design -
Personas -
Experiments
Edited by Tanya