mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
36 lines
1.2 KiB
Gherkin
36 lines
1.2 KiB
Gherkin
@administrator_login
|
|
Feature: Sign in to the store
|
|
In order to view my orders
|
|
As a Visitor
|
|
I want to be able to log in to the store
|
|
|
|
Background:
|
|
Given the store operates on a single channel in "United States"
|
|
And there is a user "ted@example.com" identified by "bear"
|
|
And there is an administrator "admin@example.com" identified by "sylius"
|
|
|
|
@ui @api
|
|
Scenario: Sign in with email and password
|
|
When I want to log in
|
|
And I specify the username as "admin@example.com"
|
|
And I specify the password as "sylius"
|
|
And I log in
|
|
Then I should be logged in
|
|
|
|
@ui @api
|
|
Scenario: Sign in with bad credentials
|
|
When I want to log in
|
|
And I specify the username as "admin@example.com"
|
|
And I specify the password as "pswd"
|
|
And I log in
|
|
Then I should be notified about bad credentials
|
|
And I should not be logged in
|
|
|
|
@ui @api
|
|
Scenario: Sign in using customer account
|
|
When I want to log in
|
|
And I specify the username as "bear@example.com"
|
|
And I specify the password as "bear"
|
|
And I log in
|
|
Then I should be notified about bad credentials
|
|
And I should not be logged in
|