|
14 | 14 | <description value="Verify Multi shipping with creation new customer and addresses during checkout"/>
|
15 | 15 | <severity value="MAJOR"/>
|
16 | 16 | <testCaseId value="AC-4685" />
|
17 |
| - <skip> |
18 |
| - <issueId value="ACQE-4834" /> |
19 |
| - </skip> |
20 | 17 | </annotations>
|
21 | 18 | <before>
|
22 | 19 | <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"/> |
26 | 20 | <createData entity="SimpleSubCategory" stepKey="createCategory"/>
|
27 |
| - <createData entity="SimpleProduct" stepKey="createSimpleProduct"> |
| 21 | + <createData entity="SimpleProduct2" stepKey="createSimpleProduct"> |
28 | 22 | <requiredEntity createDataKey="createCategory"/>
|
29 | 23 | <field key="name">simple product</field>
|
30 | 24 | </createData>
|
|
37 | 31 | <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="openConfigurableProductEditPage">
|
38 | 32 | <argument name="productId" value="$createConfigProduct.id$"/>
|
39 | 33 | </actionGroup>
|
| 34 | + <waitForElementVisible selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="waitForCreateConfigurationsElementToBeVisible"/> |
40 | 35 | <click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickOnCreateConfigurations"/>
|
41 | 36 | <waitForPageLoad stepKey="waitForSelectAttributesPage"/>
|
42 | 37 | <actionGroup ref="CreateOptionsForAttributeActionGroup" stepKey="createOptions">
|
43 | 38 | <argument name="attributeName" value="Color"/>
|
44 | 39 | <argument name="firstOptionName" value="Red"/>
|
45 | 40 | <argument name="secondOptionName" value="Green"/>
|
46 | 41 | </actionGroup>
|
| 42 | + <waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="waitForNextButtonToBeClickable"/> |
47 | 43 | <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextButton"/>
|
| 44 | + <waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.applySinglePriceToAllSkus}}" stepKey="waitForApplySinglePriceRadioButtonToBeClickable"/> |
48 | 45 | <click selector="{{AdminCreateProductConfigurationsPanel.applySinglePriceToAllSkus}}" stepKey="clickOnApplySinglePriceToAllSkus"/>
|
| 46 | + <waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.singlePrice}}" stepKey="waitForPriceFieldToBeVisible"/> |
49 | 47 | <fillField selector="{{AdminCreateProductConfigurationsPanel.singlePrice}}" userInput="10" stepKey="enterAttributePrice"/>
|
| 48 | + <waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.applySingleQuantityToEachSkus}}" stepKey="waitForApplySingleQuantityRadioButtonToBeClickable"/> |
50 | 49 | <click selector="{{AdminCreateProductConfigurationsPanel.applySingleQuantityToEachSkus}}" stepKey="clickOnApplySingleQuantityToEachSku"/>
|
| 50 | + <waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.quantity}}" stepKey="waitForQuantityFieldToBeVisible"/> |
51 | 51 | <fillField selector="{{AdminCreateProductConfigurationsPanel.quantity}}" userInput="100" stepKey="enterAttributeQuantity"/>
|
| 52 | + <waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="waitForNextButtonToBeClickableInPanelPage"/> |
52 | 53 | <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextStep"/>
|
53 | 54 | <waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="waitForNextPageOpened"/>
|
54 | 55 | <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="generateProducts"/>
|
55 |
| - <waitForElementVisible selector="{{AdminProductFormActionSection.saveButton}}" stepKey="waitForSaveButtonVisible"/> |
56 | 56 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProduct"/>
|
57 | 57 | <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"/> |
59 | 59 | </before>
|
60 | 60 | <after>
|
61 |
| - <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="visitAdminProductPage"/> |
| 61 | + <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToProductIndex"/> |
62 | 62 | <actionGroup ref="ClearFiltersAdminProductGridActionGroup" stepKey="clearGridFilters"/>
|
63 | 63 | <actionGroup ref="AdminDeleteAllProductsFromGridActionGroup" stepKey="deleteAllProducts"/>
|
64 | 64 | <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"> |
71 | 67 | <argument name="Color" value="Red"/>
|
72 | 68 | </actionGroup>
|
73 |
| - <actionGroup ref="AdminDeleteCreatedColorAttributeActionGroup" stepKey="deleteBlueColorAttribute"> |
| 69 | + <actionGroup ref="AdminDeleteCreatedColorSpecificAttributeActionGroup" stepKey="deleteGreenColorAttribute"> |
74 | 70 | <argument name="Color" value="Green"/>
|
75 | 71 | </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}}"/> |
79 | 75 | </actionGroup>
|
80 | 76 | <actionGroup ref="CliCacheCleanActionGroup" stepKey="flushCache">
|
81 | 77 | <argument name="tags" value="full_page"/>
|
|
102 | 98 | <argument name="productOption" value="Green"/>
|
103 | 99 | <argument name="qty" value="1"/>
|
104 | 100 | </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' --> |
107 | 103 | <waitForElementVisible selector="{{MultishippingSection.shippingMultipleCheckout}}" stepKey="waitMultipleAddressShippingButton"/>
|
108 | 104 | <click selector="{{MultishippingSection.shippingMultipleCheckout}}" stepKey="clickToMultipleAddressShippingButton"/>
|
109 | 105 | <!--Create an account-->
|
|
117 | 113 | <argument name="customer" value="CustomerEntityOne"/>
|
118 | 114 | </actionGroup>
|
119 | 115 | <actionGroup ref="StorefrontClickCreateAnAccountCustomerAccountCreationFormActionGroup" stepKey="submitCreateAccountForm"/>
|
| 116 | + <waitForElementVisible selector="{{MultishippingSection.enterNewAddress}}" stepKey="waitForAddressButtonToBeClickable"/> |
120 | 117 | <click selector="{{MultishippingSection.enterNewAddress}}" stepKey="clickOnAddress"/>
|
121 | 118 | <waitForPageLoad stepKey="waitForAddressFieldsPageOpen"/>
|
122 | 119 | <actionGroup ref="FillNewCustomerAddressFieldsActionGroup" stepKey="editAddressFields">
|
|
143 | 140 | </actionGroup>
|
144 | 141 | <actionGroup ref="StorefrontSaveAddressActionGroup" stepKey="saveAddresses"/>
|
145 | 142 | <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"/> |
149 | 146 | <!-- Click 'Continue to Billing Information' -->
|
150 | 147 | <actionGroup ref="StorefrontLeaveDefaultShippingMethodsAndGoToBillingInfoActionGroup" stepKey="useDefaultShippingMethod"/>
|
151 | 148 | <!-- Click 'Go to Review Your Order' -->
|
|
156 | 153 | <grabTextFrom selector="{{StorefrontMultipleShippingMethodSection.orderId('1')}}" stepKey="grabFirstOrderId"/>
|
157 | 154 | <grabTextFrom selector="{{StorefrontMultipleShippingMethodSection.orderId('2')}}" stepKey="grabSecondOrderId"/>
|
158 | 155 | <!-- Go to My Account > My Orders and verify orderId-->
|
159 |
| - <amOnPage url="{{StorefrontCustomerOrdersHistoryPage.url}}" stepKey="goToMyOrdersPage"/> |
| 156 | + <actionGroup ref="StorefrontNavigateToCustomerOrdersHistoryPageActionGroup" stepKey="goToMyOrdersPage"/> |
160 | 157 | <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"/> |
163 | 160 | <!-- Logout customer -->
|
164 | 161 | <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/>
|
165 | 162 | </test>
|
|
0 commit comments