Skip to content

Commit 20745eb

Browse files
JhalakMathurManjusha.S
authored andcommitted
ACQE-3854: Removed extra spaces from code
1 parent 5c478f1 commit 20745eb

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

app/code/Magento/Multishipping/Test/Mftf/Test/StoreFrontVerifyMultishippingCheckoutForVirtualProductTest.xml

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,27 @@
1616
<testCaseId value="MC-26600"/>
1717
<severity value="MAJOR"/>
1818
</annotations>
19-
2019
<before>
21-
2220
<!-- Create default category -->
2321
<createData entity="_defaultCategory" stepKey="createCategory"/>
24-
2522
<!-- Create virtual product -->
2623
<createData entity="VirtualProduct" stepKey="createVirtualProduct">
2724
<requiredEntity createDataKey="createCategory"/>
2825
</createData>
29-
3026
<!-- Create simple product -->
3127
<createData entity="SimpleProduct" stepKey="createSimpleProduct">
3228
<requiredEntity createDataKey="createCategory"/>
3329
</createData>
34-
3530
<!-- Assign virtual product to default category -->
3631
<createData entity="AssignProductToCategory" stepKey="assignCategoryToVirtualProduct">
3732
<requiredEntity createDataKey="createCategory"/>
3833
<requiredEntity createDataKey="createVirtualProduct"/>
3934
</createData>
40-
4135
<!-- Assign Simple product to default category -->
4236
<createData entity="AssignProductToCategory" stepKey="assignCategoryToSimpleProduct">
4337
<requiredEntity createDataKey="createCategory"/>
4438
<requiredEntity createDataKey="createSimpleProduct"/>
4539
</createData>
46-
4740
<!-- Create customer -->
4841
<createData entity="Simple_US_Customer_CA" stepKey="createCustomer"/>
4942
</before>
@@ -54,133 +47,89 @@
5447
<deleteData createDataKey="createCategory" stepKey="deleteSimpleCategory"/>
5548
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
5649
</after>
57-
5850
<!-- Go to Storefront as Customer from preconditions -->
5951
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="storefrontCustomerLogin">
6052
<argument name="Customer" value="$$createCustomer$$"/>
6153
</actionGroup>
62-
6354
<!-- Customer added Virtual Product to Cart -->
6455
<actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addVirtualProductToCart">
6556
<argument name="product" value="$$createVirtualProduct$$"/>
6657
</actionGroup>
67-
6858
<!-- Customer added Simple Product to Cart -->
6959
<actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addSimpleProductToCart">
7060
<argument name="product" value="$$createSimpleProduct$$"/>
7161
</actionGroup>
72-
7362
<!-- Go to Shopping Cart page -->
7463
<actionGroup ref="ClickViewAndEditCartFromMiniCartActionGroup" stepKey="clickOnViewEditCart"/>
75-
7664
<!-- Check shopping cart contains both the Product-->
7765
<seeElement selector="{{StorefrontMinicartSection.productCartName($$createVirtualProduct.name$$)}}" stepKey="AssertVirtualProduct"/>
7866
<seeElement selector="{{StorefrontMinicartSection.productCartName($$createSimpleProduct.name$$)}}" stepKey="AssertSimpleProduct"/>
79-
8067
<!-- Link "Check Out with Multiple Addresses" is shown -->
8168
<seeLink userInput="Check Out with Multiple Addresses" stepKey="seeLinkIsOpened"/>
82-
8369
<!-- Click Check Out with Multiple Addresses -->
8470
<actionGroup ref="StorefrontCheckoutWithMultipleAddressesActionGroup" stepKey="checkoutWithMultipleAddresses"/>
85-
8671
<!-- Check Ship to Multiple Address Page is opened-->
87-
8872
<waitForPageLoad stepKey="waitForAddressPage"/>
89-
9073
<seeInCurrentUrl url="{{MultishippingCheckoutAddressesPage.url}}" stepKey="seeShiptoMultipleAddressesPageIsOpened"/>
91-
9274
<!-- Assert Simple product has address in Send To section-->
9375
<actionGroup ref="AssertStorefrontMultishippingAddressAndItemActionGroup" stepKey="verifyLine1Qty">
9476
<argument name="productName" value="$createSimpleProduct.name$"/>
9577
</actionGroup>
96-
9778
<!--Virtual product has a message in Send To section : "A shipping selection is not applicable.-->
9879
<grabTextFrom selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.shippingnotapplicable($$createVirtualProduct.name$$)}}" stepKey="grabshippingtext"/>
9980
<assertEquals message="Virtual product has a message in Send To section : 'A shipping selection is not applicable" stepKey="assertmessage">
10081
<expectedResult type="string">A shipping selection is not applicable.</expectedResult>
10182
<actualResult type="string">$grabshippingtext</actualResult>
10283
</assertEquals>
103-
10484
<!-- Click Go to Shipping Information* -->
10585
<click selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.goToShippingInformation}}" stepKey="clickGoToShippingInformation"/>
106-
107-
10886
<!-- See Shipping Method is opened -->
10987
<wait time="10" stepKey="waitForCheckoutShippingPageUrl"/>
11088
<seeInCurrentUrl url="{{MultishippingCheckoutShippingPage.url}}" stepKey="seeSelectShippingMethodPageIsOpened"/>
111-
112-
11389
<!-- wait for selector -->
11490
<waitForElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.shippingmethods($$createSimpleProduct.name$$)}}" stepKey="waitForShippingMethodsVisible"/>
115-
11691
<!-- See Shipping Method available ONLY for Simple product-->
11792
<seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.shippingmethods($$createSimpleProduct.name$$)}}" stepKey="ShippingMethodForSimpleProduct"/>
118-
11993
<!-- See For Virtual product : "Shipping is not applicable.-->
12094
<seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.otheritems($$createVirtualProduct.name$$)}}" stepKey="ShippingMethodForVirtalProduct"/>
121-
12295
<!-- Click On Continue to Billing-->
12396
<click selector="{{StorefrontMultishippingCheckoutShippingToolbarSection.continueToBilling}}" stepKey="clickContinueToBilling"/>
12497
<waitForPageLoad stepKey="waitForCheckoutShippingToolbarPageLoad"/>
125-
12698
<!-- See Billing Information Page is opened-->
12799
<seeInCurrentUrl url="{{MultishippingCheckoutBillingPage.url}}" stepKey="seeBillingPageIsOpened"/>
128-
129100
<!-- Check Page contains customer's billing address-->
130101
<actionGroup ref="StorefrontAssertBillingAddressInBillingInfoStepActionGroup" stepKey="assertCustomerBillingInformation"/>
131-
132-
133102
<!-- Page contains Payment Method -->
134103
<seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.checkmoneyorder}}" stepKey="CheckMoney"/>
135-
136104
<!-- Select Payment method "Check / Money Order -->
137105
<conditionalClick selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.checkmoneyorder}}" dependentSelector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.checkmoneyorder}}" visible="true" stepKey="selectCheckmoPaymentMethod"/>
138-
139106
<!-- Select Payment method e.g. "Check / Money Order" and click Go to Review Your Order -->
140-
141107
<waitForElement selector="{{StorefrontMultishippingCheckoutBillingToolbarSection.goToReviewOrder}}" stepKey="waitForElementgoToReviewOrder"/>
142-
143108
<click selector="{{StorefrontMultishippingCheckoutBillingToolbarSection.goToReviewOrder}}" stepKey="clickGoToReviewOrder"/>
144-
145-
146109
<!-- Check Page contains customer's billing address on OverViewPage-->
147110
<actionGroup ref="StorefrontAssertBillingAddressInBillingInfoStepActionGroup" stepKey="assertCustomerBillingInformationonOverViewPage"/>
148-
149111
<!-- Check Payment Method on OverViewPage-->
150112
<seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.checkmoneyorderonOverViewPage}}" stepKey="CheckMoneyonOverViewPage"/>
151-
152113
<!-- "Shipping To" - address that customer selected for shipping -->
153114
<actionGroup ref="StoreFrontAssertCustomerShippingAddressOrderViewPageActionGroup" stepKey="assertCustomerShippinginformation"/>
154-
155115
<!--other shipping methods contain Virtual Product-->
156116
<seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.othershippingitems($$createVirtualProduct.name$$)}}" stepKey="otherItemsContainsVirtualProduct" />
157-
158117
<!--Click on Place Order"-->
159118
<click selector="{{StorefrontMultishippingCheckoutOverviewReviewSection.placeOrder}}" stepKey="tryToPlaceOrder1"/>
160-
161119
<!--Check Thank you for your purchase!" page is opened -->
162120
<see selector="{{StorefrontMultipleShippingMethodSection.successMessage}}" userInput="Successfully ordered" stepKey="seeSuccessMessage"/>
163-
164121
<!--Grab Order ID of Simple and Virtual Product -->
165122
<grabTextFrom selector="{{StorefrontMultipleShippingMethodSection.orderId('1')}}" stepKey="grabFirstOrderId"/>
166123
<grabTextFrom selector="{{StorefrontMultipleShippingMethodSection.orderId('2')}}" stepKey="grabSecondOrderId"/>
167-
168124
<!--Open Simple Product Link -->
169125
<click selector="{{StorefrontMultipleShippingMethodSection.orderByPosition('1')}}" stepKey="openOrderDetailsPage"/>
170-
171126
<!--Assert Shipping Information for Simple Product -->
172127
<seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.shippingaddresstext}}" stepKey="assertSimpleProductShippingOrderDetails"/>
173-
174128
<!-- Move back one page in history. -->
175129
<moveBack stepKey="moveBack"/>
176-
177130
<!--Open Virtual Product Link -->
178131
<click selector="{{StorefrontMultipleShippingMethodSection.orderByPosition('2')}}" stepKey="assertVirtualProductShippingOrderDetails"/>
179-
180132
<!--Open Virtual Product Link -->
181133
<dontSeeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.shippingaddresstext}}" stepKey="assertVirtualsseehipping"/>
182-
183134
</test>
184135
</tests>
185-
186-

0 commit comments

Comments
 (0)