|
23 | 23 | </before>
|
24 | 24 | <after>
|
25 | 25 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
|
| 26 | + <actionGroup ref="AdminOrdersGridClearFiltersActionGroup" stepKey="clearOrderListingFilters"/> |
| 27 | + <actionGroup ref="logout" stepKey="logoutAdmin"/> |
26 | 28 | </after>
|
27 | 29 |
|
28 | 30 | <!--Create Simple Product with Custom Options-->
|
|
36 | 38 |
|
37 | 39 | <!-- Login Customer Storeront -->
|
38 | 40 |
|
39 |
| - <amOnPage url="{{StorefrontCustomerSignInPage.url}}" stepKey="amOnSignInPage"/> |
40 |
| - <fillField userInput="$$createCustomer.email$$" selector="{{StorefrontCustomerSignInFormSection.emailField}}" stepKey="fillEmail"/> |
41 |
| - <fillField userInput="$$createCustomer.password$$" selector="{{StorefrontCustomerSignInFormSection.passwordField}}" stepKey="fillPassword"/> |
42 |
| - <click selector="{{StorefrontCustomerSignInFormSection.signInAccountButton}}" stepKey="clickSignInAccountButton"/> |
| 41 | + <actionGroup ref="CustomerLoginOnStorefront" stepKey="loginCustomerOnStorefront"> |
| 42 | + <argument name="customer" value="$$createCustomer$$"/> |
| 43 | + </actionGroup> |
43 | 44 |
|
44 | 45 | <!-- Checking the correctness of displayed prices for user parameters -->
|
45 | 46 |
|
|
121 | 122 |
|
122 | 123 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/>
|
123 | 124 |
|
124 |
| - <amOnPage url="{{AdminOrdersPage.url}}" stepKey="onOrdersPage"/> |
125 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask3"/> |
126 |
| - <actionGroup ref="clearFiltersAdminDataGrid" stepKey="clearGridFilter"/> |
127 |
| - <fillField selector="{{OrdersGridSection.search}}" userInput="{$grabOrderNumber}" stepKey="fillOrderNum"/> |
128 |
| - <click selector="{{OrdersGridSection.submitSearch}}" stepKey="submitSearch"/> |
129 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask4"/> |
130 |
| - <click selector="{{OrdersGridSection.firstRow}}" stepKey="clickOrderRow"/> |
| 125 | + <actionGroup ref="filterOrderGridById" stepKey="filterByOrderId"> |
| 126 | + <argument name="orderId" value="$grabOrderNumber"/> |
| 127 | + </actionGroup> |
| 128 | + <click selector="{{AdminDataGridTableSection.firstRow}}" stepKey="clickOrderRow"/> |
| 129 | + <waitForPageLoad stepKey="waitForOrderPageOpened"/> |
131 | 130 |
|
132 | 131 | <!-- Checking the correctness of displayed custom options for user parameters on Order -->
|
133 | 132 |
|
|
164 | 163 | <!-- Go to Customer Order Page and Checking the correctness of displayed custom options for user parameters on Order -->
|
165 | 164 |
|
166 | 165 | <amOnPage url="{{StorefrontCustomerOrderViewPage.url({$grabOrderNumber})}}" stepKey="amOnProduct4Page"/>
|
| 166 | +ok |
167 | 167 |
|
168 | 168 | <see selector="{{StorefrontCustomerOrderSection.productCustomOptions($createProduct.name$, ProductOptionField.title, ProductOptionField.title)}}" userInput="{{ProductOptionField.title}}" stepKey="seeStorefontOrderProductOptionField1" />
|
169 | 169 | <see selector="{{StorefrontCustomerOrderSection.productCustomOptions($createProduct.name$, ProductOptionArea.title, ProductOptionArea.title)}}" userInput="{{ProductOptionArea.title}}" stepKey="seeStorefontOrderProductOptionArea1"/>
|
|
176 | 176 | <see selector="{{StorefrontCustomerOrderSection.productCustomOptions($createProduct.name$, ProductOptionDateTime.title, '1/1/18, 1:00 AM')}}" userInput="1/1/18, 1:00 AM" stepKey="seeStorefontOrderProductOptionData1" />
|
177 | 177 | <see selector="{{StorefrontCustomerOrderSection.productCustomOptions($createProduct.name$, ProductOptionTime.title, '1:00 AM')}}" userInput="1:00 AM" stepKey="seeStorefontOrderProductOptionTime1" />
|
178 | 178 |
|
| 179 | + <!-- Logout customer --> |
| 180 | + <actionGroup ref="CustomerLogoutStorefrontActionGroup" stepKey="logoutCustomer"/> |
| 181 | + |
179 | 182 | <!-- Delete product and category -->
|
180 | 183 |
|
181 | 184 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
|
|
0 commit comments