Last active
December 17, 2015 08:19
-
-
Save denisshevchenko/6bd1556e95d13536898f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@zalora.com.tw | |
Feature: Add some item in the cart and remove it | |
Background: | |
Given that I go to "zalora.com.tw" page | |
Scenario: search and add to cart | |
Then I search in the catalog: | |
| search-input | Octagon Slim Strap Watch | | |
And I click to | |
| b-catalogList__itmLink | some product | | |
And I click on button | |
| AddToCart | 加入購物車 | | |
Then I go to the cart by clicking on | |
| b-shoppingBag__viewBag | 購物車 | | |
And I should be on the "cart" page | |
Then item should exist in the cart: | |
| tag | attr name | attr value | description | | |
| a | class | itm-cartImg | Product small image | | |
| div | id | cart_items | Products section | | |
And I wait 1 second | |
Then I remove an item from the cart by clicking on | |
| js-show-delete_itm | cross button | | |
And I confirm deleting by clicking on button | |
| js-delete_itm | 是 | | |
And I wait 1 second | |
Then message about empty cart should exist: | |
| tag | text in tag | | |
| div | Your bag is empty | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment