Skip to content

Commit

Permalink
MC-11063: Add Product to Cart, Backorder Allowed
Browse files Browse the repository at this point in the history
- Fixed missing argument
- Added waitForPageLoad
  • Loading branch information
tomreece committed May 3, 2019
1 parent 69b9549 commit b6fce58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<argument name="product" defaultValue="product"/>
</arguments>
<amOnPage url="{{StorefrontProductPage.url(product.custom_attributes[url_key])}}" stepKey="goToProductPage"/>
<waitForPageLoad stepKey="waitForProductPage"/>
<click selector="{{StorefrontProductPageSection.addToCartBtn}}" stepKey="addToCart"/>
<waitForElementNotVisible selector="{{StorefrontProductActionSection.addToCartButtonTitleIsAdding}}" stepKey="waitForElementNotVisibleAddToCartButtonTitleIsAdding"/>
<waitForElementNotVisible selector="{{StorefrontProductActionSection.addToCartButtonTitleIsAdded}}" stepKey="waitForElementNotVisibleAddToCartButtonTitleIsAdded"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<waitForPageLoad stepKey="waitForCartLoad"/>
<actionGroup ref="AssertStorefrontCheckoutCartItemsActionGroup" stepKey="assertProductItemInCheckOutCart">
<argument name="productName" value="$$createProduct.name$$"/>
<argument name="productSku" value="$$createProduct.sku$$"/>
<argument name="productPrice" value="$$createProduct.price$$"/>
<argument name="subtotal" value="$$createProduct.price$$" />
<argument name="qty" value="1"/>
Expand Down

0 comments on commit b6fce58

Please sign in to comment.