Skip to content

Commit

Permalink
Merge pull request #67 from magento-epam/SPRINT-1-MAGETWO-66666
Browse files Browse the repository at this point in the history
Sprint 1 magetwo 66666
  • Loading branch information
nikshostko authored Aug 17, 2018
2 parents ff5e650 + 429edc8 commit 33476f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
<see userInput="You saved the product." stepKey="seeSaveConfirmation"/>
</actionGroup>

<actionGroup name="FindAndAddProductToCardActionGroup">
<actionGroup name="FindAndAddProductToCardActGr">
<click selector="{{StorefrontAddProductToCartSection.addToCartBtn}}" stepKey="addToCart"/>
<waitForElementVisible selector="{{StorefrontProductPageSection.successMsg}}" time="30" stepKey="waitForProductAdded"/>
<click selector="{{StorefrontAddProductToCartSection.showCard}}" stepKey="clickToOpenCard"/>
<waitForPageLoad stepKey="WaitForFormOpened" time="3"/>
<waitForPageLoad stepKey="WaitForFormOpened"/>
<click selector="{{StorefrontAddProductToCartSection.proceed}}" stepKey="clickToProceedToCheckout"/>
<waitForPageLoad time="5" stepKey="waitForTheFormIsOpened"/>
<waitForPageLoad stepKey="waitForTheFormIsOpened"/>
<see userInput="Shipping Address" stepKey="seeShippingAddress"/>
</actionGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</before>

<!--Navigate to a category page -->
<amOnPage url="/{{SimpleProductOne.name}}.html" stepKey="GoToProductPage"/>
<amOnPage url="/{{SimpleProductOne.urlKey}}.html" stepKey="GoToProductPage"/>

<waitForPageLoad stepKey="waitForPageLoad"/>

Expand All @@ -36,7 +36,7 @@
delete_cookie('form_key');" stepKey="removeCookies" after="waitForPageLoad"/>

<!-- "Add to Cart" any product-->
<actionGroup ref="FindAndAddProductToCardActionGroup" stepKey="addProductToCard"/>
<actionGroup ref="FindAndAddProductToCardActGr" stepKey="addProductToCard"/>

<after>
<!--Delete created product-->
Expand Down

0 comments on commit 33476f8

Please sign in to comment.