Skip to content

Commit 5a7af9e

Browse files
author
Joan He
authored
Merge pull request #2183 from magento-borg/MAGETWO-88791
[Borg] MFTF automation
2 parents 13d54f9 + 2d2854b commit 5a7af9e

File tree

3 files changed

+14
-19
lines changed

3 files changed

+14
-19
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Checkout/Section/CheckoutShippingMethodsSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
1111
<section name="CheckoutShippingMethodsSection">
1212
<element name="next" type="button" selector="button.button.action.continue.primary"/>
13-
<element name="firstShippingMethod" type="radio" selector=".row:nth-of-type(1) .col-method .radio"/>
13+
<element name="firstShippingMethod" type="radio" selector="//*[@id='checkout-shipping-method-load']//input[@class='radio']"/>
1414
</section>
1515
</sections>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Checkout/Section/CheckoutShippingSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
<element name="postcode" type="input" selector="input[name=postcode]"/>
2121
<element name="telephone" type="input" selector="input[name=telephone]"/>
2222
<element name="next" type="button" selector="button.button.action.continue.primary"/>
23-
<element name="firstShippingMethod" type="radio" selector=".row:nth-of-type(1) .col-method .radio"/>
23+
<element name="firstShippingMethod" type="radio" selector="//*[@id='checkout-shipping-method-load']//input[@class='radio']"/>
2424
</section>
2525
</sections>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Checkout/Test/StorefrontCustomerCheckoutTest.xml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
<severity value="CRITICAL"/>
1818
<testCaseId value="#"/>
1919
<group value="checkout"/>
20-
<!--Skipped; see: MAGETWO-88791-->
21-
<group value="skip"/>
2220
</annotations>
2321
<before>
2422
<createData entity="SimpleSubCategory" stepKey="simplecategory"/>
@@ -34,22 +32,19 @@
3432
<deleteData createDataKey="simpleuscustomer" stepKey="deleteCustomer"/>
3533
</after>
3634

37-
<amOnPage stepKey="s1" url="customer/account/login/"/>
38-
<fillField stepKey="s3" userInput="$$simpleuscustomer.email$$" selector="{{StorefrontCustomerSignInFormSection.emailField}}"/>
39-
<fillField stepKey="s5" userInput="$$simpleuscustomer.password$$" selector="{{StorefrontCustomerSignInFormSection.passwordField}}"/>
40-
<click stepKey="s7" selector="{{StorefrontCustomerSignInFormSection.signInAccountButton}}"/>
41-
<waitForPageLoad stepKey="s9"/>
35+
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="customerLogin">
36+
<argument name="Customer" value="$$simpleuscustomer$$" />
37+
</actionGroup>
38+
39+
<amOnPage url="{{StorefrontCategoryPage.url($$simplecategory.name$$)}}" stepKey="onCategoryPage"/>
40+
<waitForPageLoad stepKey="waitForCatalogPageLoad"/>
41+
<moveMouseOver selector="{{StorefrontCategoryMainSection.ProductItemInfo}}" stepKey="hoverProduct"/>
42+
<click selector="{{StorefrontCategoryMainSection.AddToCartBtn}}" stepKey="addToCart"/>
43+
<waitForElementVisible selector="{{StorefrontCategoryMainSection.SuccessMsg}}" time="30" stepKey="waitForProductAdded"/>
44+
<see selector="{{StorefrontCategoryMainSection.SuccessMsg}}" userInput="You added $$simpleproduct1.name$$ to your shopping cart." stepKey="seeAddedToCartMessage"/>
45+
<see selector="{{StorefrontMinicartSection.quantity}}" userInput="1" stepKey="seeCartQuantity"/>
46+
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart" />
4247

43-
<amOnPage stepKey="s11" url="/$$simplecategory.name$$.html" />
44-
<moveMouseOver stepKey="s15" selector="{{StorefrontCategoryMainSection.ProductItemInfo}}" />
45-
<click stepKey="s17" selector="{{StorefrontCategoryMainSection.AddToCartBtn}}" />
46-
<waitForElementVisible stepKey="s21" selector="{{StorefrontCategoryMainSection.SuccessMsg}}" time="30" />
47-
<see stepKey="s23" selector="{{StorefrontCategoryMainSection.SuccessMsg}}" userInput="You added $$simpleproduct1.name$$ to your shopping cart."/>
48-
<see stepKey="s25" selector="{{StorefrontMinicartSection.quantity}}" userInput="1" />
49-
<click stepKey="s27" selector="{{StorefrontMinicartSection.showCart}}" />
50-
<click stepKey="s31" selector="{{StorefrontMinicartSection.goToCheckout}}" />
51-
<waitForPageLoad stepKey="s33"/>
52-
<waitForLoadingMaskToDisappear stepKey="s34"/>
5348
<click stepKey="s35" selector="{{CheckoutShippingMethodsSection.firstShippingMethod}}"/>
5449
<waitForElement stepKey="s36" selector="{{CheckoutShippingMethodsSection.next}}" time="30"/>
5550
<click stepKey="s37" selector="{{CheckoutShippingMethodsSection.next}}" />

0 commit comments

Comments
 (0)