Skip to content

Commit 1bac27b

Browse files
akaashakaash
authored andcommitted
Merge branch 'ACQE-4834' into ACQE-6098-functional-mainline-ce
2 parents 0fdec97 + f3dc3f3 commit 1bac27b

File tree

1 file changed

+25
-28
lines changed

1 file changed

+25
-28
lines changed
Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,11 @@
1414
<description value="Verify Multi shipping with creation new customer and addresses during checkout"/>
1515
<severity value="MAJOR"/>
1616
<testCaseId value="AC-4685" />
17-
<skip>
18-
<issueId value="ACQE-4834" />
19-
</skip>
2017
</annotations>
2118
<before>
2219
<actionGroup ref="AdminLoginActionGroup" stepKey="loginToAdminArea"/>
23-
<!-- remove the Filter From the page-->
24-
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="visitAdminProductPage"/>
25-
<actionGroup ref="ClearFiltersAdminProductGridActionGroup" stepKey="clearFilterFromProductIndex"/>
2620
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
27-
<createData entity="SimpleProduct" stepKey="createSimpleProduct">
21+
<createData entity="SimpleProduct2" stepKey="createSimpleProduct">
2822
<requiredEntity createDataKey="createCategory"/>
2923
<field key="name">simple product</field>
3024
</createData>
@@ -37,45 +31,47 @@
3731
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="openConfigurableProductEditPage">
3832
<argument name="productId" value="$createConfigProduct.id$"/>
3933
</actionGroup>
34+
<waitForElementVisible selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="waitForCreateConfigurationsElementToBeVisible"/>
4035
<click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickOnCreateConfigurations"/>
4136
<waitForPageLoad stepKey="waitForSelectAttributesPage"/>
4237
<actionGroup ref="CreateOptionsForAttributeActionGroup" stepKey="createOptions">
4338
<argument name="attributeName" value="Color"/>
4439
<argument name="firstOptionName" value="Red"/>
4540
<argument name="secondOptionName" value="Green"/>
4641
</actionGroup>
42+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="waitForNextButtonToBeClickable"/>
4743
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextButton"/>
44+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.applySinglePriceToAllSkus}}" stepKey="waitForApplySinglePriceRadioButtonToBeClickable"/>
4845
<click selector="{{AdminCreateProductConfigurationsPanel.applySinglePriceToAllSkus}}" stepKey="clickOnApplySinglePriceToAllSkus"/>
46+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.singlePrice}}" stepKey="waitForPriceFieldToBeVisible"/>
4947
<fillField selector="{{AdminCreateProductConfigurationsPanel.singlePrice}}" userInput="10" stepKey="enterAttributePrice"/>
48+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.applySingleQuantityToEachSkus}}" stepKey="waitForApplySingleQuantityRadioButtonToBeClickable"/>
5049
<click selector="{{AdminCreateProductConfigurationsPanel.applySingleQuantityToEachSkus}}" stepKey="clickOnApplySingleQuantityToEachSku"/>
50+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.quantity}}" stepKey="waitForQuantityFieldToBeVisible"/>
5151
<fillField selector="{{AdminCreateProductConfigurationsPanel.quantity}}" userInput="100" stepKey="enterAttributeQuantity"/>
52+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="waitForNextButtonToBeClickableInPanelPage"/>
5253
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextStep"/>
5354
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="waitForNextPageOpened"/>
5455
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="generateProducts"/>
55-
<waitForElementVisible selector="{{AdminProductFormActionSection.saveButton}}" stepKey="waitForSaveButtonVisible"/>
5656
<actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProduct"/>
5757
<conditionalClick selector="{{AdminChooseAffectedAttributeSetPopup.confirm}}" dependentSelector="{{AdminChooseAffectedAttributeSetPopup.confirm}}" visible="true" stepKey="clickOnConfirmInPopup"/>
58-
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeSaveProductMessage"/>
58+
<waitForElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeSaveProductMessage"/>
5959
</before>
6060
<after>
61-
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="visitAdminProductPage"/>
61+
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToProductIndex"/>
6262
<actionGroup ref="ClearFiltersAdminProductGridActionGroup" stepKey="clearGridFilters"/>
6363
<actionGroup ref="AdminDeleteAllProductsFromGridActionGroup" stepKey="deleteAllProducts"/>
6464
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
65-
<!-- Delete customer -->
66-
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer" />
67-
<actionGroup ref="DeleteCustomerByEmailActionGroup" stepKey="deleteCustomer">
68-
<argument name="email" value="{{CustomerEntityOne.email}}"/>
69-
</actionGroup>
70-
<actionGroup ref="AdminDeleteCreatedColorAttributeActionGroup" stepKey="deleteRedColorAttribute">
65+
<!-- Delete the Created Color attribute-->
66+
<actionGroup ref="AdminDeleteCreatedColorSpecificAttributeActionGroup" stepKey="deleteRedColorAttribute">
7167
<argument name="Color" value="Red"/>
7268
</actionGroup>
73-
<actionGroup ref="AdminDeleteCreatedColorAttributeActionGroup" stepKey="deleteBlueColorAttribute">
69+
<actionGroup ref="AdminDeleteCreatedColorSpecificAttributeActionGroup" stepKey="deleteGreenColorAttribute">
7470
<argument name="Color" value="Green"/>
7571
</actionGroup>
76-
<!-- reindex and flush cache -->
77-
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
78-
<argument name="indices" value=""/>
72+
<!-- Delete customer -->
73+
<actionGroup ref="DeleteCustomerByEmailActionGroup" stepKey="deleteCustomer">
74+
<argument name="email" value="{{CustomerEntityOne.email}}"/>
7975
</actionGroup>
8076
<actionGroup ref="CliCacheCleanActionGroup" stepKey="flushCache">
8177
<argument name="tags" value="full_page"/>
@@ -102,8 +98,8 @@
10298
<argument name="productOption" value="Green"/>
10399
<argument name="qty" value="1"/>
104100
</actionGroup>
105-
<!-- Check Out with Multiple Addresses -->
106-
<actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="openCart"/>
101+
<actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="navigateToCartPage"/>
102+
<!-- Click 'Check Out with Multiple Addresses' -->
107103
<waitForElementVisible selector="{{MultishippingSection.shippingMultipleCheckout}}" stepKey="waitMultipleAddressShippingButton"/>
108104
<click selector="{{MultishippingSection.shippingMultipleCheckout}}" stepKey="clickToMultipleAddressShippingButton"/>
109105
<!--Create an account-->
@@ -117,6 +113,7 @@
117113
<argument name="customer" value="CustomerEntityOne"/>
118114
</actionGroup>
119115
<actionGroup ref="StorefrontClickCreateAnAccountCustomerAccountCreationFormActionGroup" stepKey="submitCreateAccountForm"/>
116+
<waitForElementVisible selector="{{MultishippingSection.enterNewAddress}}" stepKey="waitForAddressButtonToBeClickable"/>
120117
<click selector="{{MultishippingSection.enterNewAddress}}" stepKey="clickOnAddress"/>
121118
<waitForPageLoad stepKey="waitForAddressFieldsPageOpen"/>
122119
<actionGroup ref="FillNewCustomerAddressFieldsActionGroup" stepKey="editAddressFields">
@@ -143,9 +140,9 @@
143140
</actionGroup>
144141
<actionGroup ref="StorefrontSaveAddressActionGroup" stepKey="saveAddresses"/>
145142
<waitForPageLoad stepKey="waitForPageToLoadProperly"/>
146-
<seeElement selector="{{ShippingMethodSection.productDetails('simple product','1')}}" stepKey="assertSimpleProductDetails"/>
147-
<seeElement selector="{{ShippingMethodSection.productDetails('config product','1')}}" stepKey="assertConfigProductRedDetails"/>
148-
<seeElement selector="{{ShippingMethodSection.productDetails('config product','10')}}" stepKey="assertConfigProductGreenDetails"/>
143+
<waitForElement selector="{{ShippingMethodSection.productDetails('simple product','1')}}" stepKey="assertSimpleProductDetails"/>
144+
<waitForElement selector="{{ShippingMethodSection.productDetails('config product','1')}}" stepKey="assertConfigProductRedDetails"/>
145+
<waitForElement selector="{{ShippingMethodSection.productDetails('config product','10')}}" stepKey="assertConfigProductGreenDetails"/>
149146
<!-- Click 'Continue to Billing Information' -->
150147
<actionGroup ref="StorefrontLeaveDefaultShippingMethodsAndGoToBillingInfoActionGroup" stepKey="useDefaultShippingMethod"/>
151148
<!-- Click 'Go to Review Your Order' -->
@@ -156,10 +153,10 @@
156153
<grabTextFrom selector="{{StorefrontMultipleShippingMethodSection.orderId('1')}}" stepKey="grabFirstOrderId"/>
157154
<grabTextFrom selector="{{StorefrontMultipleShippingMethodSection.orderId('2')}}" stepKey="grabSecondOrderId"/>
158155
<!-- Go to My Account > My Orders and verify orderId-->
159-
<amOnPage url="{{StorefrontCustomerOrdersHistoryPage.url}}" stepKey="goToMyOrdersPage"/>
156+
<actionGroup ref="StorefrontNavigateToCustomerOrdersHistoryPageActionGroup" stepKey="goToMyOrdersPage"/>
160157
<waitForPageLoad stepKey="waitForMyOrdersPageLoad"/>
161-
<seeElement selector="{{StorefrontCustomerOrdersGridSection.orderView({$grabFirstOrderId})}}" stepKey="seeFirstOrder"/>
162-
<seeElement selector="{{StorefrontCustomerOrdersGridSection.orderView({$grabSecondOrderId})}}" stepKey="seeSecondOrder"/>
158+
<waitForElement selector="{{StorefrontCustomerOrdersGridSection.orderView({$grabFirstOrderId})}}" stepKey="seeFirstOrder"/>
159+
<waitForElement selector="{{StorefrontCustomerOrdersGridSection.orderView({$grabSecondOrderId})}}" stepKey="seeSecondOrder"/>
163160
<!-- Logout customer -->
164161
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/>
165162
</test>

0 commit comments

Comments
 (0)