|
22 | 22 | <see selector="{{AdminHeaderSection.pageTitle}}" userInput="Create New Order" stepKey="seeNewOrderPageTitle"/>
|
23 | 23 | </actionGroup>
|
24 | 24 |
|
| 25 | + <!--Navigate to create order page (New Order -> Create New Customer)--> |
| 26 | + <actionGroup name="navigateToNewOrderPageNewCustomerSingleStore"> |
| 27 | + <arguments> |
| 28 | + <argument name="storeView" defaultValue="_defaultStore"/> |
| 29 | + </arguments> |
| 30 | + <amOnPage url="{{AdminOrdersPage.url}}" stepKey="navigateToOrderIndexPage"/> |
| 31 | + <waitForPageLoad stepKey="waitForIndexPageLoad"/> |
| 32 | + <see selector="{{AdminHeaderSection.pageTitle}}" userInput="Orders" stepKey="seeIndexPageTitle"/> |
| 33 | + <click selector="{{AdminOrdersGridSection.createNewOrder}}" stepKey="clickCreateNewOrder"/> |
| 34 | + <click selector="{{AdminOrderFormActionSection.CreateNewCustomer}}" stepKey="clickCreateCustomer"/> |
| 35 | + <see selector="{{AdminHeaderSection.pageTitle}}" userInput="Create New Order" stepKey="seeNewOrderPageTitle"/> |
| 36 | + </actionGroup> |
| 37 | + |
25 | 38 | <!--Navigate to create order page (New Order -> Select Customer)-->
|
26 | 39 | <actionGroup name="navigateToNewOrderPageExistingCustomer">
|
27 | 40 | <arguments>
|
|
93 | 106 | <click selector="{{AdminOrderFormItemsSection.search}}" stepKey="clickSearchConfigurable"/>
|
94 | 107 | <scrollTo selector="{{AdminOrderFormItemsSection.rowCheck('1')}}" x="0" y="-100" stepKey="scrollToCheckColumn"/>
|
95 | 108 | <checkOption selector="{{AdminOrderFormItemsSection.rowCheck('1')}}" stepKey="selectConfigurableProduct"/>
|
96 |
| - <waitForElementVisible selector="{{AdminOrderFormConfigureProductSection.optionSelect(attribute.default_frontend_label)}}" stepKey="waitForConfigurablePopover"/> |
| 109 | + <waitForElementVisible selector="{{AdminOrderFormConfigureProductSection.optionSelect(attribute.default_label)}}" stepKey="waitForConfigurablePopover"/> |
97 | 110 | <wait time="2" stepKey="waitForOptionsToLoad"/>
|
98 |
| - <selectOption selector="{{AdminOrderFormConfigureProductSection.optionSelect(attribute.default_frontend_label)}}" |
99 |
| - userInput="{{option.label}}" stepKey="selectionConfigurableOption"/> |
| 111 | + <selectOption selector="{{AdminOrderFormConfigureProductSection.optionSelect(attribute.default_label)}}" |
| 112 | + userInput="{{option.name}}" stepKey="selectionConfigurableOption"/> |
100 | 113 | <click selector="{{AdminOrderFormConfigureProductSection.ok}}" stepKey="clickOkConfigurablePopover"/>
|
101 | 114 | <scrollTo selector="{{AdminOrderFormItemsSection.addSelected}}" x="0" y="-100" stepKey="scrollToAddSelectedButton"/>
|
102 | 115 | <click selector="{{AdminOrderFormItemsSection.addSelected}}" stepKey="clickAddSelectedProducts"/>
|
103 | 116 | </actionGroup>
|
104 | 117 |
|
105 |
| - <actionGroup name="configureOrderedConfigurableProduct"> |
106 |
| - <arguments> |
107 |
| - <argument name="attribute"/> |
108 |
| - <argument name="option"/> |
109 |
| - <argument name="quantity" type="string"/> |
110 |
| - </arguments> |
111 |
| - <click selector="{{AdminOrderFormItemsSection.configure}}" stepKey="clickConfigure"/> |
| 118 | + <!--Add configurable product to order --> |
| 119 | + <actionGroup name="addConfigurableProductToOrderFromAdmin" extends="addConfigurableProductToOrder"> |
112 | 120 | <waitForElementVisible selector="{{AdminOrderFormConfigureProductSection.optionSelect(attribute.default_frontend_label)}}" stepKey="waitForConfigurablePopover"/>
|
113 |
| - <wait time="2" stepKey="waitForOptionsToLoad"/> |
114 | 121 | <selectOption selector="{{AdminOrderFormConfigureProductSection.optionSelect(attribute.default_frontend_label)}}"
|
115 | 122 | userInput="{{option.label}}" stepKey="selectionConfigurableOption"/>
|
116 |
| - <fillField selector="{{AdminOrderFormConfigureProductSection.quantity}}" userInput="{{quantity}}" stepKey="fillQuantity"/> |
117 |
| - <click selector="{{AdminOrderFormConfigureProductSection.ok}}" stepKey="clickOkConfigurablePopover"/> |
118 | 123 | </actionGroup>
|
119 | 124 |
|
120 | 125 | <!--Add bundle product to order -->
|
|
0 commit comments