Skip to content

Commit dbcfc4d

Browse files
committed
Merge remote-tracking branch 'origin/MC-20075' into 2.3-develop-pr76
2 parents 476f86b + 6122144 commit dbcfc4d

File tree

5 files changed

+30
-16
lines changed

5 files changed

+30
-16
lines changed

app/code/Magento/Checkout/Test/Mftf/ActionGroup/AssertStorefrontMiniCartItemsActionGroup.xml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,24 @@
1818
<argument name="cartSubtotal" type="string"/>
1919
<argument name="qty" type="string"/>
2020
</arguments>
21-
22-
<see selector="{{StorefrontMinicartSection.miniCartItemsText}}" userInput="{{productName}}" stepKey="seeProductNameInMiniCart"/>
23-
<see selector="{{StorefrontMinicartSection.miniCartItemsText}}" userInput="{{productPrice}}" stepKey="seeProductPriceInMiniCart"/>
21+
22+
<see selector="{{StorefrontMinicartSection.productPriceByName(productName)}}" userInput="{{productPrice}}" stepKey="seeProductPriceInMiniCart"/>
2423
<seeElement selector="{{StorefrontMinicartSection.goToCheckout}}" stepKey="seeCheckOutButtonInMiniCart"/>
2524
<seeElement selector="{{StorefrontMinicartSection.productQuantity(productName, qty)}}" stepKey="seeProductQuantity1"/>
2625
<seeElement selector="{{StorefrontMinicartSection.productImage}}" stepKey="seeProductImage"/>
2726
<see selector="{{StorefrontMinicartSection.productSubTotal}}" userInput="{{cartSubtotal}}" stepKey="seeSubTotal"/>
2827
</actionGroup>
28+
29+
<actionGroup name="AssertStorefrontMiniCartProductDetailsAbsentActionGroup">
30+
<annotations>
31+
<description>Validates that the provided Product details (Name, Price) are
32+
not present in the Storefront Mini Shopping Cart.</description>
33+
</annotations>
34+
<arguments>
35+
<argument name="productName" type="string"/>
36+
<argument name="productPrice" type="string"/>
37+
</arguments>
38+
39+
<dontSee selector="{{StorefrontMinicartSection.productPriceByName(productName)}}" userInput="{{productPrice}}" stepKey="dontSeeProductPriceInMiniCart"/>
40+
</actionGroup>
2941
</actionGroups>

app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontCheckCartDiscountAndSummaryActionGroup.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
<argument name="total" type="string"/>
1818
<argument name="discount" type="string"/>
1919
</arguments>
20-
2120
<waitForPageLoad stepKey="waitForPageLoad"/>
22-
<waitForLoadingMaskToDisappear stepKey="waitForPrices"/>
21+
<waitForElement time="30" selector="{{CheckoutCartSummarySection.estimateShippingAndTaxForm}}" stepKey="waitForEstimateShippingAndTaxForm"/>
22+
<waitForElement time="30" selector="{{CheckoutCartSummarySection.shippingMethodForm}}" stepKey="waitForShippingMethodForm"/>
23+
<waitForElementVisible time="30" selector="{{CheckoutCartSummarySection.total}}" stepKey="waitForTotalElement"/>
24+
<see selector="{{CheckoutCartSummarySection.total}}" userInput="${{total}}" stepKey="assertTotal"/>
25+
<waitForElementVisible selector="{{CheckoutCartSummarySection.discountAmount}}" stepKey="waitForDiscountElement"/>
2326
<see selector="{{CheckoutCartSummarySection.discountAmount}}" userInput="-${{discount}}" stepKey="assertDiscount"/>
24-
<wait time="10" stepKey="waitForTotalPrice"/>
25-
<reloadPage stepKey="reloadPage" after="waitForTotalPrice" />
26-
<waitForPageLoad after="reloadPage" stepKey="WaitForPageLoaded" />
27-
<see selector="{{CheckoutCartSummarySection.total}}" userInput="${{total}}" stepKey="assertTotal" after="WaitForPageLoaded"/>
2827
</actionGroup>
2928
</actionGroups>

app/code/Magento/Checkout/Test/Mftf/Section/CheckoutCartSummarySection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@
3333
<element name="methodName" type="text" selector="#co-shipping-method-form label"/>
3434
<element name="shippingPrice" type="text" selector="#co-shipping-method-form span .price"/>
3535
<element name="shippingMethodElementId" type="radio" selector="#s_method_{{carrierCode}}_{{methodCode}}" parameterized="true"/>
36+
<element name="estimateShippingAndTaxForm" type="block" selector="#shipping-zip-form"/>
3637
</section>
3738
</sections>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontCheckCartItemDisplayWhenMoreItemsAddedToTheCartThanDefaultDisplayLimitTest.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
<testCaseId value="MC-14720"/>
1616
<severity value="CRITICAL"/>
1717
<group value="mtf_migrated"/>
18-
<skip>
19-
<issueId value="MC-17140"/>
20-
</skip>
2118
</annotations>
2219

2320
<before>
@@ -280,7 +277,9 @@
280277
</actionGroup>
281278

282279
<!-- Verify Product11 is not displayed in Mini Cart -->
283-
<dontSee selector="{{StorefrontMinicartSection.miniCartItemsText}}" userInput="$$simpleProduct11.name$$" stepKey="dontSeeProduct11NameInMiniCart"/>
284-
<dontSee selector="{{StorefrontMinicartSection.miniCartItemsText}}" userInput="110" stepKey="dontSeeProduct11PriceInMiniCart"/>
280+
<actionGroup ref="AssertStorefrontMiniCartProductDetailsAbsentActionGroup" stepKey="assertSimpleProduct11IsNotInMiniCart">
281+
<argument name="productName" value="$$simpleProduct11.name$$"/>
282+
<argument name="productPrice" value="$110.00"/>
283+
</actionGroup>
285284
</test>
286285
</tests>

app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminDeleteCartPriceRuleActionGroup.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@
1515
<arguments>
1616
<argument name="ruleName" type="entity"/>
1717
</arguments>
18-
18+
1919
<amOnPage url="{{AdminCartPriceRulesPage.url}}" stepKey="goToCartPriceRules"/>
2020
<waitForPageLoad stepKey="waitForCartPriceRules"/>
21+
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="resetFilterBeforeDelete"/>
22+
<waitForPageLoad stepKey="waitForCartPriceRulesResetFilter"/>
2123
<fillField selector="{{AdminCartPriceRulesSection.filterByNameInput}}" userInput="{{ruleName.name}}" stepKey="filterByName"/>
2224
<click selector="{{AdminCartPriceRulesSection.searchButton}}" stepKey="doFilter"/>
2325
<click selector="{{AdminCartPriceRulesSection.rowByIndex('1')}}" stepKey="goToEditRulePage"/>
2426
<click selector="{{AdminCartPriceRulesFormSection.delete}}" stepKey="clickDeleteButton"/>
25-
<click selector="{{AdminCartPriceRulesFormSection.modalAcceptButton}}" stepKey="confirmDelete"/>
27+
<waitForElementVisible selector="{{AdminConfirmationModalSection.ok}}" stepKey="waitForConfirmModal"/>
28+
<click selector="{{AdminConfirmationModalSection.ok}}" stepKey="confirmDelete"/>
2629
</actionGroup>
2730
</actionGroups>

0 commit comments

Comments
 (0)