|
154 | 154 | <click selector="{{AdminOrderFormItemsSection.addSelected}}" stepKey="clickToAddProductToOrder"/>
|
155 | 155 | <waitForPageLoad stepKey="waitForNewOrderPageLoad"/>
|
156 | 156 | <see userInput="This product is out of stock." stepKey="seeTheErrorMessageDisplayed"/>
|
| 157 | + |
| 158 | + <actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="createNewOrderThirdTime"> |
| 159 | + <argument name="customer" value="$createCustomer$"/> |
| 160 | + </actionGroup> |
| 161 | + <actionGroup ref="AddSimpleProductToOrderActionGroup" stepKey="addThirdChildProductToOrder"> |
| 162 | + <argument name="product" value="$createConfigChildProduct3$"/> |
| 163 | + <argument name="productQty" value="1"/> |
| 164 | + </actionGroup> |
| 165 | + <actionGroup ref="AssertAdminItemOrderedErrorNotVisibleActionGroup" stepKey="assertNoticeAbsent"> |
| 166 | + <argument name="productName" value="$createConfigChildProduct3.name$"/> |
| 167 | + <argument name="messageType" value="notice"/> |
| 168 | + </actionGroup> |
| 169 | + <actionGroup ref="AssertAdminItemOrderedErrorNotVisibleActionGroup" stepKey="assertErrorAbsent"> |
| 170 | + <argument name="productName" value="$createConfigChildProduct3.name$"/> |
| 171 | + <argument name="messageType" value="error"/> |
| 172 | + </actionGroup> |
157 | 173 | <!-- Select shipping method -->
|
158 | 174 | <comment userInput="Select shipping method" stepKey="selectShippingMethod"/>
|
159 | 175 | <click selector="{{AdminInvoicePaymentShippingSection.getShippingMethodAndRates}}" stepKey="openShippingMethod"/>
|
160 | 176 | <waitForPageLoad stepKey="waitForShippingMethods"/>
|
161 | 177 | <click selector="{{AdminInvoicePaymentShippingSection.shippingMethod}}" stepKey="chooseShippingMethod"/>
|
162 | 178 | <waitForPageLoad stepKey="waitForShippingMethodLoad"/>
|
163 | 179 | <click selector="{{AdminOrderFormActionSection.SubmitOrder}}" stepKey="clickSubmitOrder"/>
|
164 |
| - <waitForPageLoad stepKey="waitForError"/> |
165 |
| - <!-- Check that error remains --> |
166 |
| - <actionGroup ref="AssertAdminItemOrderedErrorActionGroup" stepKey="assertProductErrorRemains"> |
167 |
| - <argument name="productName" value="$createConfigChildProduct2.name$"/> |
168 |
| - <argument name="messageType" value="error"/> |
169 |
| - <argument name="message" value="This product is out of stock."/> |
170 |
| - </actionGroup> |
| 180 | + <actionGroup ref="VerifyCreatedOrderInformationActionGroup" stepKey="checkOrderSuccessfullyCreated"/> |
171 | 181 | </test>
|
172 | 182 | </tests>
|
0 commit comments