Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 6e60f7b

Browse files
author
Joan He
committed
MAGETWO-80272: Break B2C Guest user test into parts by modules and Magento editions
1 parent 1d52632 commit 6e60f7b

File tree

3 files changed

+30
-19
lines changed

3 files changed

+30
-19
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Section/StorefrontProductInfoMainSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<element name="stock" type="input" selector=".stock.available"/>
1313
<element name="productName" type="text" selector=".base"/>
1414
<element name="productSku" type="text" selector=".product.attribute.sku>.value"/>
15-
<element name="productPrice" type="text" selector=".price"/>
15+
<element name="productPrice" type="text" selector="div.price-box.price-final_price"/>
1616
<element name="productStockStatus" type="text" selector=".stock[title=Availability]>span"/>
1717
<element name="productImage" type="text" selector="//*[@id='maincontent']//div[@class='gallery-placeholder']//img[@class='fotorama__img']"/>
1818
<element name="productDescription" type="text" selector="//div[@id='product.info.description']//div[@class='value']"/>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Checkout/ActionGroup/CheckoutActionGroup.xml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,11 @@
4242
<arguments>
4343
<argument name="productVar"/>
4444
</arguments>
45-
<waitForElement selector="{{CheckoutPaymentSection.cartItemsArea}}" time="30" stepKey="waitForCartItemsAreaLoaded"/>
46-
<conditionalClick selector="{{CheckoutPaymentSection.cartItemsArea}}" dependentSelector="{{CheckoutPaymentSection.cartItemsAreaActive}}" visible="false" stepKey="exposeMiniCart"/>
47-
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskForCartItem"/>
48-
<waitForElement selector="{{CheckoutPaymentSection.cartItemsAreaActive}}" time="30" stepKey="waitForCartItemsAreaActive"/>
49-
<see selector="{{CheckoutPaymentSection.cartItems}}" userInput="{{productVar.name}}" stepKey="seeProductInCart"/>
50-
</actionGroup>
51-
52-
<!-- Check configurable product in checkout cart items -->
53-
<actionGroup name="CheckConfigurableProductInCheckoutCartItemsActionGroup">
54-
<arguments>
55-
<argument name="productVar" />
56-
<argument name="optionLabel" />
57-
<argument name="optionValue" />
58-
</arguments>
5945
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/>
60-
<conditionalClick selector="{{CheckoutPaymentSection.cartItemsArea}}" dependentSelector="{{CheckoutPaymentSection.cartItemsAreaActive}}" visible="false" stepKey="exposeMiniCart"/>
46+
<conditionalClick selector="{{CheckoutPaymentSection.cartItemsArea}}" dependentSelector="{{CheckoutPaymentSection.cartItemsArea}}" visible="true" stepKey="exposeMiniCart"/>
6147
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskForCartItem"/>
48+
<waitForElement selector="{{CheckoutPaymentSection.cartItemsAreaActive}}" time="30" stepKey="waitForCartItemsAreaActive"/>
6249
<see selector="{{CheckoutPaymentSection.cartItems}}" userInput="{{productVar.name}}" stepKey="seeProductInCart"/>
63-
<conditionalClick selector="{{CheckoutPaymentSection.ProductOptionsByProductItemName(productVar.name)}}" dependentSelector="{{CheckoutPaymentSection.ProductOptionsActiveByProductItemName(productVar.name)}}" visible="false" stepKey="exposeProductOptions"/>
64-
<see selector="{{CheckoutPaymentSection.ProductOptionsActiveByProductItemName(productVar.name)}}" userInput="{{optionLabel}}" stepKey="seeProductOptionLabel" />
65-
<see selector="{{CheckoutPaymentSection.ProductOptionsActiveByProductItemName(productVar.name)}}" userInput="{{optionValue}}" stepKey="seeProductOptionValue" />
6650
</actionGroup>
6751

6852
<!-- Check order summary in checkout -->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
11+
<!-- Check configurable product in checkout cart items -->
12+
<actionGroup name="CheckConfigurableProductInCheckoutCartItemsActionGroup">
13+
<arguments>
14+
<argument name="productVar" />
15+
<argument name="optionLabel" />
16+
<argument name="optionValue" />
17+
</arguments>
18+
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/>
19+
<conditionalClick selector="{{CheckoutPaymentSection.cartItemsArea}}" dependentSelector="{{CheckoutPaymentSection.cartItemsArea}}" visible="true" stepKey="exposeMiniCart"/>
20+
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskForCartItem"/>
21+
<waitForElement selector="{{CheckoutPaymentSection.cartItemsAreaActive}}" time="30" stepKey="waitForCartItemsAreaActive"/>
22+
<see selector="{{CheckoutPaymentSection.cartItems}}" userInput="{{productVar.name}}" stepKey="seeProductInCart"/>
23+
<conditionalClick selector="{{CheckoutPaymentSection.ProductOptionsByProductItemName(productVar.name)}}" dependentSelector="{{CheckoutPaymentSection.ProductOptionsActiveByProductItemName(productVar.name)}}" visible="false" stepKey="exposeProductOptions"/>
24+
<see selector="{{CheckoutPaymentSection.ProductOptionsActiveByProductItemName(productVar.name)}}" userInput="{{optionLabel}}" stepKey="seeProductOptionLabel" />
25+
<see selector="{{CheckoutPaymentSection.ProductOptionsActiveByProductItemName(productVar.name)}}" userInput="{{optionValue}}" stepKey="seeProductOptionValue" />
26+
</actionGroup>
27+
</actionGroups>

0 commit comments

Comments
 (0)