Skip to content

Commit 4caed7c

Browse files
committed
MC-33100: Fix StorefrontClickCreateAnAccountCustomerAccountCreationFormActionGroup.
1 parent 4f6a371 commit 4caed7c

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
<waitForElement selector="{{CheckoutShippingSection.next}}" time="30" stepKey="waitForNextButton"/>
3030
<click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/>
3131
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/>
32-
<seeInCurrentUrl url="{{CheckoutPage.url}}/#payment" stepKey="assertCheckoutPaymentUrl"/>
32+
<seeInCurrentUrl url="{{CheckoutPage.url}}#payment" stepKey="assertCheckoutPaymentUrl"/>
3333
</actionGroup>
3434
</actionGroups>

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

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@
1111
<test name="IdentityOfDefaultBillingAndShippingAddressTest">
1212
<annotations>
1313
<features value="Customer"/>
14-
<title value="Checking assignment of default billing address after placing an orde"/>
14+
<stories value="Customer checkout"/>
15+
<title value="Checking assignment of default billing address after placing an order"/>
1516
<description value="In 'Address book' field 'Default Billing Address' should be the same as 'Default Shipping Address'"/>
1617
<severity value="MAJOR"/>
17-
<testCaseId value="MAGETWO-94108"/>
18-
<stories value="MAGETWO-62891: New address is not marked as 'Default Billing'"/>
19-
<group value="customer"/>
18+
<group value="checkout"/>
19+
<testCaseId value="MAGETWO-62891"/>
2020
</annotations>
2121

2222
<before>
23-
<!--Create product-->
23+
<!-- Create product -->
2424
<createData entity="SimpleProduct2" stepKey="createProduct"/>
2525
</before>
2626

27-
<!--Go to Storefront-->
28-
<amOnPage url="" stepKey="DoToStorefront"/>
27+
<!-- Go to Storefront Homepage -->
28+
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="GoToStorefrontHomepage"/>
2929

3030
<!-- Fill out form for a new user with address -->
3131
<actionGroup ref="StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey="openCreateAccountPage"/>
@@ -47,33 +47,41 @@
4747
<argument name="productCount" value="1"/>
4848
</actionGroup>
4949

50-
<!--Proceed to shipment-->
51-
<amOnPage url="{{CheckoutPage.url}}/" stepKey="goToCheckout"/>
52-
<waitForPageLoad stepKey="waitForShippingSection"/>
50+
<!-- Proceed to Checkout -->
51+
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="goToCheckoutPage" />
5352

54-
<!--Fill shipment form-->
53+
<!-- Fill Shipment form -->
5554
<actionGroup ref="LoggedInUserCheckoutFillingShippingSectionActionGroup" stepKey="checkoutFillingShippingSection" >
5655
<argument name="customerVar" value="Simple_US_Customer_NY" />
5756
<argument name="customerAddressVar" value="US_Address_NY" />
5857
</actionGroup>
5958

60-
<!--Fill cart data-->
59+
<!-- Fill Cart data -->
6160
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrderPayment" />
6261
<click selector="{{StorefrontCheckoutPaymentMethodSection.billingAddressSameAsShipping}}" stepKey="checkBillingAddressSameAsShippingCheckbox"/>
6362

6463
<actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="placeorder">
6564
<argument name="orderNumberMessage" value="CONST.successCheckoutOrderNumberMessage" />
6665
<argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage" />
6766
</actionGroup>
68-
<!--Go To My Account-->
69-
<amOnPage stepKey="goToMyAccountPage" url="/customer/account/"/>
67+
<!-- Go To My Account Page -->
68+
<actionGroup ref="StorefrontOpenMyAccountPageActionGroup" stepKey="goToMyAccountPage" />
7069

71-
<!--Assert That Shipping And Billing Address are the same-->
70+
<!-- Assert That Shipping And Billing Address are the same -->
7271
<actionGroup ref="AssertThatShippingAndBillingAddressTheSame" stepKey="assertThatShippingAndBillingAddressTheSame"/>
72+
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/>
7373

7474
<after>
75-
<!--Delete created Product-->
75+
<!-- Delete created Product -->
7676
<deleteData stepKey="deleteProduct" createDataKey="createProduct"/>
77+
78+
<!-- Delete Customer -->
79+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
80+
<actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomerFromAdmin">
81+
<argument name="customerEmail" value="Simple_US_Customer_NY.email"/>
82+
</actionGroup>
83+
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearProductsGridFilters"/>
84+
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
7785
</after>
7886
</test>
7987
</tests>

0 commit comments

Comments
 (0)