|
97 | 97 | <argument name="website"/>
|
98 | 98 | </arguments>
|
99 | 99 | <scrollTo selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="scrollToWebsites"/>
|
100 |
| - <click selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="clickToOpenProductInWebsite"/> |
| 100 | + <conditionalClick selector="{{ProductInWebsitesSection.sectionHeader}}" dependentSelector="{{ProductInWebsitesSection.website(website.name)}}" visible="false" stepKey="clickToOpenProductInWebsite"/> |
101 | 101 | <waitForPageLoad stepKey="waitForPageOpened"/>
|
102 | 102 | <click selector="{{ProductInWebsitesSection.website(website.name)}}" stepKey="selectWebsite"/>
|
103 | 103 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveProduct"/>
|
104 |
| - <waitForPageLoad time='60' stepKey="waitForPageOpened1"/> |
105 | 104 | </actionGroup>
|
106 | 105 |
|
107 | 106 | <actionGroup name="ProductSetAdvancedPricing">
|
|
149 | 148 | </arguments>
|
150 | 149 | <scrollTo selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="scrollToWebsites"/>
|
151 | 150 | <click selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="clickToOpenProductInWebsite"/>
|
152 |
| - <waitForPageLoad stepKey="waitForPageOpened"/> |
153 | 151 | <checkOption selector="{{ProductInWebsitesSection.website(website)}}" stepKey="selectWebsite"/>
|
154 | 152 | </actionGroup>
|
155 | 153 |
|
|
188 | 186 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveProduct"/>
|
189 | 187 | <see selector="{{AdminMessagesSection.success}}" userInput="You saved the product." stepKey="seeSaveConfirmation"/>
|
190 | 188 | </actionGroup>
|
| 189 | + |
| 190 | + <!--Create simple product and assign to category in Admin--> |
| 191 | + <actionGroup name="AdminCreateSimpleProductAndAssignToCategory"> |
| 192 | + <arguments> |
| 193 | + <argument name="category"/> |
| 194 | + <argument name="simpleProduct"/> |
| 195 | + </arguments> |
| 196 | + <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="navigateToProductIndex"/> |
| 197 | + <click selector="{{AdminProductGridActionSection.addProductToggle}}" stepKey="clickAddProductDropdown"/> |
| 198 | + <click selector="{{AdminProductGridActionSection.addSimpleProduct}}" stepKey="clickAddSimpleProduct"/> |
| 199 | + <fillField userInput="{{simpleProduct.name}}" selector="{{AdminProductFormSection.productName}}" stepKey="fillName"/> |
| 200 | + <fillField userInput="{{simpleProduct.sku}}" selector="{{AdminProductFormSection.productSku}}" stepKey="fillSKU"/> |
| 201 | + <fillField userInput="{{simpleProduct.price}}" selector="{{AdminProductFormSection.productPrice}}" stepKey="fillPrice"/> |
| 202 | + <fillField userInput="{{simpleProduct.quantity}}" selector="{{AdminProductFormSection.productQuantity}}" stepKey="fillQuantity"/> |
| 203 | + <searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" parameterArray="[{{category.name}}]" stepKey="searchAndSelectCategory"/> |
| 204 | + <click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="openSeoSection"/> |
| 205 | + <fillField userInput="{{simpleProduct.urlKey}}" selector="{{AdminProductSEOSection.urlKeyInput}}" stepKey="fillUrlKey"/> |
| 206 | + <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/> |
| 207 | + <seeElement selector="{{AdminMessagesSection.success}}" stepKey="assertSaveMessageSuccess"/> |
| 208 | + <seeInField userInput="{{simpleProduct.name}}" selector="{{AdminProductFormSection.productName}}" stepKey="assertFieldName"/> |
| 209 | + <seeInField userInput="{{simpleProduct.sku}}" selector="{{AdminProductFormSection.productSku}}" stepKey="assertFieldSku"/> |
| 210 | + <seeInField userInput="{{simpleProduct.price}}" selector="{{AdminProductFormSection.productPrice}}" stepKey="assertFieldPrice"/> |
| 211 | + <click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="openSeoSectionAssert"/> |
| 212 | + <seeInField userInput="{{simpleProduct.urlKey}}" selector="{{AdminProductSEOSection.urlKeyInput}}" stepKey="assertFieldUrlKey"/> |
| 213 | + </actionGroup> |
191 | 214 | </actionGroups>
|
0 commit comments