Skip to content

Commit 3a8d1d5

Browse files
committed
MC-4457: Convert OnePageCheckoutTest to MFTF
Fixes for jenkins failures
1 parent 97d8bd1 commit 3a8d1d5

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
</arguments>
1515
<waitForPageLoad stepKey="waitForCheckoutShippingSectionToLoad"/>
1616
<fillField selector="{{CheckoutShippingSection.email}}" userInput="{{customer.email}}" stepKey="fillEmailField"/>
17+
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/>
1718
<waitForElementVisible selector="{{CheckoutShippingSection.password}}" stepKey="waitForElementVisible"/>
1819
<fillField selector="{{CheckoutShippingSection.password}}" userInput="{{customer.password}}" stepKey="fillPasswordField"/>
1920
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear2"/>
20-
<click selector="{{CheckoutShippingSection.loginButton}}" stepKey="clickLoginBtn"/>
21-
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/>
21+
<doubleClick selector="{{CheckoutShippingSection.loginButton}}" stepKey="clickLoginBtn"/>
22+
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear3"/>
2223
<waitForPageLoad stepKey="waitForLogin"/>
2324
</actionGroup>
2425
</actionGroups>

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,13 @@
5757
<click selector="{{CheckoutCartSummarySection.proceedToCheckout}}" stepKey="clickProceedToCheckout"/>
5858
<waitForPageLoad stepKey="waitForProceedToCheckout"/>
5959

60+
61+
<!-- Login as customer on checkout page -->
62+
<actionGroup ref="LoginAsCustomerOnCheckoutPageActionGroup" stepKey="customerLogin">
63+
<argument name="customer" value="$createCustomer$"/>
64+
</actionGroup>
65+
6066
<!-- Fill customer address data -->
61-
<fillField selector="{{CheckoutShippingSection.email}}" userInput="$$createCustomer.email$$" stepKey="fillEmailField"/>
62-
<waitForElementVisible selector="{{CheckoutShippingSection.password}}" stepKey="waitForElementVisible"/>
63-
<fillField selector="{{CheckoutShippingSection.password}}" userInput="$$createCustomer.password$$" stepKey="fillPasswordField"/>
64-
<click selector="{{CheckoutShippingSection.loginButton}}" stepKey="clickLoginBtn"/>
65-
<waitForPageLoad stepKey="waitForShippingPageLoad"/>
6667
<waitForElementVisible selector="{{CheckoutShippingSection.shipHereButton(UK_Not_Default_Address.street[0])}}" stepKey="waitForShipHereVisible"/>
6768
<!-- Change address -->
6869
<click selector="{{CheckoutShippingSection.shipHereButton(UK_Not_Default_Address.street[0])}}" stepKey="clickShipHere"/>

0 commit comments

Comments
 (0)