Skip to content

Commit d8694f8

Browse files
Olga MoyseyenkoOlga Moyseyenko
authored andcommitted
ACP2E-377: Create MFTF Test Coverage For ACP2E-350
1 parent 6b552ec commit d8694f8

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

app/code/Magento/Weee/Test/Mftf/Test/StorefrontFPTMultipleProductOrderTest.xml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<annotations>
1313
<features value="Tax"/>
1414
<stories value="Order taxes"/>
15-
<title value="FPT correct Total amount in Order Summary section for multiple product amount"/>
16-
<description value="Tax information is calculated properly when order contains multiple amount of the product"/>
15+
<title value="Correct subtotal including FPT in product information section of order summary"/>
16+
<description value="Tax information is calculated properly in product information section when order contains multiple amount of the product"/>
1717
<severity value="CRITICAL"/>
1818
<useCaseId value="ACP2E-350"/>
1919
<testCaseId value="AC-2110"/>
@@ -37,12 +37,10 @@
3737
<requiredEntity createDataKey="createProductFPTAttribute"/>
3838
</createData>
3939

40-
<!-- Simple product is created Price = 100 -->
40+
<!-- Simple product is created with Price = 100 and FPT = 2 for Germany -->
4141
<createData entity="SimpleProduct2" stepKey="createSimpleProduct">
4242
<field key="price">100.00</field>
4343
</createData>
44-
45-
<!-- FPT for Germany is set to 2 -->
4644
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="openProductEditPage">
4745
<argument name="productId" value="$createSimpleProduct.id$"/>
4846
</actionGroup>
@@ -61,7 +59,7 @@
6159
<!-- Return Tax configuration including FPT to default status -->
6260
<createData entity="DefaultTaxConfig" stepKey="defaultTaxConfiguration"/>
6361
<createData entity="WeeeConfigDisable" stepKey="useSystemValueFTP"/>
64-
<!-- Delete product and clear products filter-->
62+
<!-- Delete product and clear products filter -->
6563
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
6664
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToProductIndex"/>
6765
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearProductsGridFilters"/>
@@ -72,8 +70,9 @@
7270
<!-- Test Steps -->
7371

7472
<!-- Add simple product with qty 100 to shopping cart -->
75-
<amOnPage url="{{StorefrontProductPage.url($createSimpleProduct.custom_attributes[url_key]$)}}" stepKey="amOnSimpleProductPage"/>
76-
<waitForPageLoad stepKey="waitForPageLoad"/>
73+
<actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="openProductPage">
74+
<argument name="product" value="$$createSimpleProduct$$"/>
75+
</actionGroup>
7776
<actionGroup ref="AddProductWithQtyToCartFromStorefrontProductPageActionGroup" stepKey="cartAddSimpleProductToCart">
7877
<argument name="productName" value="$createSimpleProduct.name$"/>
7978
<argument name="productQty" value="100"/>
@@ -90,8 +89,7 @@
9089

9190
<!-- Select shipping and payment methods -->
9291
<actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShippingMethod"/>
93-
<waitForElementVisible selector="{{CheckoutShippingSection.next}}" stepKey="waitNextButtonAppears"/>
94-
<click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/>
92+
<actionGroup ref="StorefrontCheckoutForwardFromShippingStepActionGroup" stepKey="clickNext"/>
9593
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="clickCheckMoneyOrderPayment"/>
9694

9795
<!-- Open summary section for product -->

0 commit comments

Comments
 (0)