-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Api][Address] Add missing behats scenario
- Loading branch information
Showing
5 changed files
with
58 additions
and
11 deletions.
There are no files selected for viewing
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
27 changes: 27 additions & 0 deletions
27
...r_account/address_book/preventing_not_logged_user_from_operations_on_address_book.feature
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@address_book | ||
Feature: Preventing not logged user from operations on the address book | ||
In order to protect address book from unauthorised operation | ||
As a Visitor | ||
I want to not be able to operate on address book | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And there is a customer "John Doe" identified by an email "doe@example.com" and a password "banana" | ||
And this customer has an address "John Doe", "Banana Street", "90232", "New York", "United States", "Kansas" in their address book | ||
|
||
@api | ||
Scenario: Trying to add new address as a Visitor | ||
When I want to add a new address to my address book | ||
And I specify the address as "Lucifer Morningstar", "Seaside Fwy", "90802", "Los Angeles", "United States", "Arkansas" | ||
And I try to add it | ||
Then I should not be able to add it | ||
|
||
@api | ||
Scenario: Trying to view address as a Visitor | ||
When I try to view details of address belongs to "John Doe" | ||
Then I should not see any details of address | ||
|
||
@api | ||
Scenario: Trying to delete address as a Visitor | ||
When I try to delete address belongs to "John Doe" | ||
Then I should not be able to delete it |
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
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
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