Sylius/features/account/registration.feature

55 lines
2.3 KiB
Gherkin

@customer_registration
Feature: Account registration
In order to make future purchases with ease
As a Visitor
I need to be able to create an account in the store
Background:
Given the store operates on a single channel in "United States"
@ui
Scenario: Registering a new account with minimum information
Given I want to register a new account
When I specify the first name as "Saul"
And I specify the last name as "Goodman"
And I specify the email as "goodman@gmail.com"
And I specify the password as "heisenberg"
And I confirm this password
And I register this account
Then I should be notified that new account has been successfully created
And I should be logged in
And my email should be "goodman@gmail.com"
@ui
Scenario: Registering a new account with all details
Given I want to register a new account
When I specify the first name as "Saul"
And I specify the last name as "Goodman"
And I specify the email as "goodman@gmail.com"
And I specify the password as "heisenberg"
And I confirm this password
And I specify the phone number as "123456789"
And I register this account
Then I should be notified that new account has been successfully created
And I should be logged in
And my email should be "goodman@gmail.com"
@ui
Scenario: Registering a guest account
Given there is a customer "goodman@gmail.com" that placed an order "#001"
And I want to register a new account
When I specify the first name as "Saul"
And I specify the last name as "Goodman"
And I specify the email as "goodman@gmail.com"
And I specify the password as "heisenberg"
And I confirm this password
And I register this account
Then I should be notified that new account has been successfully created
And I should be logged in
And my email should be "goodman@gmail.com"
@ui @email
Scenario: Receiving a welcoming email after registration
When I register with email "ghastly@bespoke.com" and password "suitsarelife"
Then I should be notified that new account has been successfully created
And a welcoming email should have been sent to "ghastly@bespoke.com"