|
52 | 52 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
|
53 | 53 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
|
54 | 54 |
|
55 |
| - <!-- Reset Product filter --> |
56 |
| - |
57 |
| - <actionGroup ref="ClearProductsFilterActionGroup" stepKey="clearProductsFilter"/> |
58 |
| - |
59 | 55 | <!-- Delete Store View EN -->
|
60 | 56 |
|
61 | 57 | <actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreView1">
|
|
67 | 63 | <actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreView2">
|
68 | 64 | <argument name="customStore" value="customStoreFR"/>
|
69 | 65 | </actionGroup>
|
| 66 | + <actionGroup ref="clearFiltersAdminDataGrid" stepKey="clearWebsitesGridFilters"/> |
| 67 | + |
| 68 | + <actionGroup ref="AdminOrdersGridClearFiltersActionGroup" stepKey="clearOrdersGridFilter"/> |
| 69 | + |
| 70 | + <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="amOnProductGridPage"/> |
| 71 | + <actionGroup ref="clearFiltersAdminDataGrid" stepKey="clearProductsGridFilters"/> |
| 72 | + <actionGroup ref="logout" stepKey="logout"/> |
| 73 | + <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customerLogoutStorefront"/> |
70 | 74 | </after>
|
71 | 75 |
|
72 | 76 | <!-- Open Product Grid, Filter product and open -->
|
|
78 | 82 | <argument name="product" value="_defaultProduct"/>
|
79 | 83 | </actionGroup>
|
80 | 84 |
|
81 |
| - <click selector="{{AdminProductGridSection.productGridXRowYColumnButton('1', '2')}}" stepKey="openProductForEdit"/> |
82 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad2"/> |
| 85 | + <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProductPage"> |
| 86 | + <argument name="product" value="$$createProduct$$"/> |
| 87 | + </actionGroup> |
83 | 88 |
|
84 | 89 | <!-- Update Product with Option Value DropDown 1-->
|
85 | 90 | <conditionalClick selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector="{{AdminProductCustomizableOptionsSection.checkIfCustomizableOptionsTabOpen}}" visible="true" stepKey="clickIfContentTabCloses2"/>
|
|
101 | 106 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveButton1"/>
|
102 | 107 |
|
103 | 108 | <!-- Switcher to Store FR-->
|
104 |
| - <scrollToTopOfPage stepKey="scrollToTopOfPage1"/> |
105 |
| - |
106 |
| - <click selector="{{AdminProductFormActionSection.changeStoreButton}}" stepKey="clickStoreSwitcher"/> |
107 |
| - <click selector="{{AdminProductFormActionSection.selectStoreView(customStoreFR.name)}}" stepKey="clickStoreView"/> |
108 |
| - <click selector="{{AdminConfirmationModalSection.ok}}" stepKey="acceptMessage"/> |
| 109 | + <actionGroup ref="AdminSwitchStoreViewActionGroup" stepKey="switchToStoreFR"> |
| 110 | + <argument name="storeView" value="customStoreFR.name"/> |
| 111 | + </actionGroup> |
109 | 112 |
|
110 | 113 | <!-- Open tab Customizable Options -->
|
111 | 114 |
|
112 |
| - <waitForPageLoad time="10" stepKey="waitForPageLoad4"/> |
113 | 115 | <conditionalClick selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector="{{AdminProductCustomizableOptionsSection.checkIfCustomizableOptionsTabOpen}}" visible="true" stepKey="clickIfContentTabCloses3"/>
|
114 | 116 |
|
115 | 117 | <!-- Update Option Customizable Options and Option Value 1-->
|
|
129 | 131 |
|
130 | 132 | <!-- Login Customer Storefront -->
|
131 | 133 |
|
132 |
| - <amOnPage url="{{StorefrontCustomerSignInPage.url}}" stepKey="amOnSignInPage"/> |
133 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad6"/> |
134 |
| - <fillField userInput="$$createCustomer.email$$" selector="{{StorefrontCustomerSignInFormSection.emailField}}" stepKey="fillEmail"/> |
135 |
| - <fillField userInput="$$createCustomer.password$$" selector="{{StorefrontCustomerSignInFormSection.passwordField}}" stepKey="fillPassword"/> |
136 |
| - <click selector="{{StorefrontCustomerSignInFormSection.signInAccountButton}}" stepKey="clickSignInAccountButton"/> |
| 134 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="customerLogin"> |
| 135 | + <argument name="Customer" value="$$createCustomer$$" /> |
| 136 | + </actionGroup> |
137 | 137 |
|
138 | 138 | <!-- Go to Product Page -->
|
139 | 139 |
|
|
176 | 176 |
|
177 | 177 | <conditionalClick selector="{{CheckoutPaymentSection.productOptionsByProductItemPrice('150')}}" dependentSelector="{{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" visible="false" stepKey="exposeProductOptions1"/>
|
178 | 178 | <see selector="{{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" userInput="option2" stepKey="seeProductOptionValueDropdown1Input2"/>
|
179 |
| - <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/> |
180 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad8"/> |
181 | 179 |
|
182 | 180 | <!-- Place Order -->
|
183 | 181 |
|
184 |
| - <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder1"/> |
185 |
| - <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder"/> |
| 182 | + <!--Select shipping method--> |
| 183 | + <actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShippingMethod"/> |
| 184 | + <waitForElementVisible selector="{{CheckoutShippingSection.next}}" time="30" stepKey="waitForNextButton"/> |
| 185 | + <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/> |
| 186 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskAfterClickNext"/> |
| 187 | + <!--Select payment method--> |
| 188 | + <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectPaymentMethod"/> |
| 189 | + <!-- Place Order --> |
| 190 | + <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="customerPlaceOrder"> |
| 191 | + <argument name="orderNumberMessage" value="CONST.successCheckoutOrderNumberMessage"/> |
| 192 | + <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage"/> |
| 193 | + </actionGroup> |
186 | 194 |
|
187 | 195 | <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/>
|
188 | 196 |
|
189 | 197 | <!-- Open Order -->
|
190 | 198 |
|
191 |
| - <amOnPage url="{{AdminOrdersPage.url}}" stepKey="onOrdersPage"/> |
192 |
| - <waitForPageLoad stepKey="waitForPageLoadOrdersPage"/> |
193 |
| - <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clearFilters" /> |
194 |
| - <fillField selector="{{AdminOrdersGridSection.search}}" userInput="{$grabOrderNumber}" stepKey="fillOrderNum"/> |
195 |
| - <click selector="{{AdminOrdersGridSection.submitSearch}}" stepKey="submitSearchOrderNum"/> |
196 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappearOnSearch"/> |
| 199 | + <actionGroup ref="filterOrderGridById" stepKey="openOrdersGrid"> |
| 200 | + <argument name="orderId" value="{$grabOrderNumber}"/> |
| 201 | + </actionGroup> |
197 | 202 | <click selector="{{AdminOrdersGridSection.firstRow}}" stepKey="clickOrderRow"/>
|
198 | 203 | <waitForPageLoad time="30" stepKey="waitForPageLoad10"/>
|
199 | 204 |
|
|
205 | 210 | <!-- Switch to FR Store View Storefront -->
|
206 | 211 |
|
207 | 212 | <amOnPage url="{{StorefrontHomePage.url}}" stepKey="amOnProduct4Page"/>
|
208 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad11"/> |
209 |
| - <click selector="{{StorefrontHeaderSection.storeViewSwitcher}}" stepKey="clickStoreViewSwitcher1"/> |
210 |
| - <waitForElementVisible selector="{{StorefrontHeaderSection.storeViewDropdown}}" stepKey="waitForStoreViewDropdown1"/> |
211 |
| - <click selector="{{StorefrontHeaderSection.storeViewOption(customStoreFR.code)}}" stepKey="selectStoreView1"/> |
212 |
| - <waitForPageLoad stepKey="waitForPageLoad12"/> |
213 | 213 |
|
214 |
| - <amOnPage url="{{StorefrontHomePage.url}}$$createProduct.custom_attributes[url_key]$$.html" stepKey="amOnProduct2Page"/> |
215 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad13"/> |
| 214 | + <actionGroup ref="StorefrontSwitchStoreViewActionGroup" stepKey="switchStore"> |
| 215 | + <argument name="storeView" value="customStoreFR"/> |
| 216 | + </actionGroup> |
| 217 | + |
| 218 | + <amOnPage url="{{StorefrontProductPage.url($$createProduct.custom_attributes[url_key]$$)}}" stepKey="amOnProduct2Page"/> |
216 | 219 |
|
217 | 220 | <seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownTitle('FR Custom Options 1')}}" stepKey="seeProductFrOptionDropDownTitle"/>
|
218 | 221 | <seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('FR Custom Options 1', 'FR option1')}}" stepKey="productFrOptionDropDownOptionTitle1"/>
|
|
250 | 253 |
|
251 | 254 | <conditionalClick selector="{{CheckoutPaymentSection.productOptionsByProductItemPrice('150')}}" dependentSelector="{{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" visible="false" stepKey="exposeProductOptions3"/>
|
252 | 255 | <see selector="{{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" userInput="FR option2" stepKey="seeProductFrOptionValueDropdown1Input3"/>
|
253 |
| - <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext1"/> |
254 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad14"/> |
255 | 256 |
|
256 | 257 | <!-- Place Order -->
|
257 | 258 |
|
258 |
| - <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder2"/> |
259 |
| - <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder1"/> |
| 259 | + <!--Select shipping method--> |
| 260 | + <actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShippingMethod2"/> |
| 261 | + <waitForElementVisible selector="{{CheckoutShippingSection.next}}" time="30" stepKey="waitForNextButton2"/> |
| 262 | + <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext2"/> |
| 263 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskAfterClickNext2"/> |
| 264 | + |
| 265 | + <!--Select payment method--> |
| 266 | + <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectPaymentMethod2"/> |
| 267 | + <!-- Place Order --> |
| 268 | + <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="customerPlaceOrder2"> |
| 269 | + <argument name="orderNumberMessage" value="CONST.successCheckoutOrderNumberMessage"/> |
| 270 | + <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage"/> |
| 271 | + </actionGroup> |
260 | 272 |
|
261 | 273 | <!-- Open Product Grid, Filter product and open -->
|
262 | 274 |
|
|
296 | 308 |
|
297 | 309 | <!--Go to Product Page-->
|
298 | 310 |
|
299 |
| - <amOnPage url="{{StorefrontHomePage.url}}$$createProduct.custom_attributes[url_key]$$.html" stepKey="amOnProduct2Page2"/> |
300 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad20"/> |
| 311 | + <amOnPage url="{{StorefrontProductPage.url($$createProduct.custom_attributes[url_key]$$)}}" stepKey="amOnProduct2Page2"/> |
301 | 312 |
|
302 | 313 | <seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownTitle('Custom Options 1')}}" stepKey="seeProductOptionDropDownTitle1"/>
|
303 | 314 | <seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('Custom Options 1', 'option1')}}" stepKey="seeProductOptionDropDownOptionTitle3"/>
|
|
0 commit comments