|
60 | 60 | <actionGroup name="navigateToNewOrderPageExistingCustomer">
|
61 | 61 | <arguments>
|
62 | 62 | <argument name="customer"/>
|
| 63 | + <argument name="storeView" defaultValue="_defaultStore"/> |
63 | 64 | </arguments>
|
64 | 65 | <amOnPage url="{{AdminOrdersPage.url}}" stepKey="navigateToOrderIndexPage"/>
|
65 | 66 | <waitForPageLoad stepKey="waitForIndexPageLoad"/>
|
66 | 67 | <see selector="{{AdminHeaderSection.pageTitle}}" userInput="Orders" stepKey="seeIndexPageTitle"/>
|
67 | 68 | <click selector="{{AdminMainActionsSection.add}}" stepKey="clickCreateNewOrder"/>
|
68 | 69 | <waitForPageLoad stepKey="waitForCustomerGridLoad"/>
|
| 70 | + <!--Clear grid filters--> |
| 71 | + <conditionalClick selector="{{AdminOrderCustomersGridSection.resetButton}}" dependentSelector="{{AdminOrderCustomersGridSection.resetButton}}" visible="true" stepKey="clearExistingCustomerFilters"/> |
69 | 72 | <fillField userInput="{{customer.email}}" selector="{{AdminOrderCustomersGridSection.emailFilter}}" stepKey="filterEmail"/>
|
70 | 73 | <click selector="{{AdminOrderCustomersGridSection.searchButton}}" stepKey="applyFilter"/>
|
71 | 74 | <waitForPageLoad stepKey="waitForFilteredCustomerGridLoad"/>
|
72 | 75 | <click selector="{{AdminOrderCustomersGridSection.firstRow}}" stepKey="clickOnCustomer"/>
|
73 |
| - <waitForPageLoad stepKey="waitForCreateOrderPageLoad" /> |
| 76 | + <waitForPageLoad stepKey="waitForCreateOrderPageLoad"/> |
| 77 | + <!-- Select store view if appears --> |
| 78 | + <conditionalClick selector="{{AdminOrderStoreScopeTreeSection.storeOption(storeView.name)}}" dependentSelector="{{AdminOrderStoreScopeTreeSection.storeOption(storeView.name)}}" visible="true" stepKey="selectStoreViewIfAppears"/> |
| 79 | + <waitForPageLoad stepKey="waitForCreateOrderPageLoadAfterStoreSelect"/> |
74 | 80 | <see selector="{{AdminHeaderSection.pageTitle}}" userInput="Create New Order" stepKey="seeNewOrderPageTitle"/>
|
75 | 81 | </actionGroup>
|
76 | 82 | <!--Add a simple product to order-->
|
|
132 | 138 | <click selector="{{AdminOrderFormItemsSection.addProducts}}" stepKey="clickAddProducts"/>
|
133 | 139 | <fillField selector="{{AdminOrderFormItemsSection.skuFilter}}" userInput="{{product.sku}}" stepKey="fillSkuFilterBundle"/>
|
134 | 140 | <click selector="{{AdminOrderFormItemsSection.search}}" stepKey="clickSearchBundle"/>
|
135 |
| - <scrollTo selector="{{AdminOrderFormItemsSection.rowCheck('1')}}" x="0" y="-100" stepKey="scrollToCheckColumn"/> |
| 141 | + <scrollToTopOfPage stepKey="scrollToTop1"/> |
136 | 142 | <checkOption selector="{{AdminOrderFormItemsSection.rowCheck('1')}}" stepKey="selectBundleProduct"/>
|
| 143 | + <waitForLoadingMaskToDisappear stepKey="waitForMask"/> |
137 | 144 | <waitForElementVisible selector="{{AdminOrderFormBundleProductSection.quantity}}" stepKey="waitForBundleOptionLoad"/>
|
138 |
| - <wait time="2" stepKey="waitForOptionsToLoad"/> |
139 | 145 | <fillField selector="{{AdminOrderFormBundleProductSection.quantity}}" userInput="{{quantity}}" stepKey="fillQuantity"/>
|
140 | 146 | <click selector="{{AdminOrderFormConfigureProductSection.ok}}" stepKey="clickOk"/>
|
141 |
| - <scrollTo selector="{{AdminOrderFormItemsSection.addSelected}}" x="0" y="-100" stepKey="scrollToAddSelectedButton"/> |
| 147 | + <scrollToTopOfPage stepKey="scrollToTop2"/> |
142 | 148 | <click selector="{{AdminOrderFormItemsSection.addSelected}}" stepKey="clickAddSelectedProducts"/>
|
143 | 149 | </actionGroup>
|
144 | 150 | <!--Add bundle product to order and check product price in the grid-->
|
|
0 commit comments