|
71 | 71 | <!--Save product and see success message-->
|
72 | 72 | <actionGroup name="saveProductForm">
|
73 | 73 | <scrollToTopOfPage stepKey="scrollTopPageProduct"/>
|
| 74 | + <waitForElementVisible selector="{{AdminProductFormActionSection.saveButton}}" stepKey="waitForSaveProductButton" /> |
74 | 75 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveProduct"/>
|
| 76 | + <waitForPageLoad stepKey="waitForProductToSave"/> |
75 | 77 | <see selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product." stepKey="seeSaveConfirmation"/>
|
76 | 78 | </actionGroup>
|
77 | 79 |
|
|
258 | 260 | <argument name="website" type="string"/>
|
259 | 261 | </arguments>
|
260 | 262 | <scrollTo selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="scrollToWebsites"/>
|
261 |
| - <click selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="clickToOpenProductInWebsite"/> |
| 263 | + <conditionalClick selector="{{ProductInWebsitesSection.sectionHeader}}" dependentSelector="{{AdminProductContentSection.sectionHeaderShow}}" visible="false" stepKey="expandSection"/> |
262 | 264 | <waitForPageLoad stepKey="waitForPageOpened"/>
|
263 | 265 | <checkOption selector="{{ProductInWebsitesSection.website(website)}}" stepKey="selectWebsite"/>
|
264 | 266 | </actionGroup>
|
|
328 | 330 | </assertEquals>
|
329 | 331 | </actionGroup>
|
330 | 332 |
|
| 333 | + <actionGroup name="expandAdminProductSection"> |
| 334 | + <arguments> |
| 335 | + <argument name="sectionSelector" defaultValue="{{AdminProductContentSection.sectionHeader}}" type="string"/> |
| 336 | + <argument name="sectionDependentSelector" defaultValue="{{AdminProductContentSection.sectionHeaderShow}}" type="string"/> |
| 337 | + </arguments> |
| 338 | + <scrollToTopOfPage stepKey="scrollToTopOfPage"/> |
| 339 | + <waitForElementVisible time="30" selector="{{sectionSelector}}" stepKey="waitForSection"/> |
| 340 | + <conditionalClick selector="{{sectionSelector}}" dependentSelector="{{sectionDependentSelector}}" visible="false" stepKey="expandSection"/> |
| 341 | + <waitForPageLoad time="30" stepKey="waitForSectionToExpand"/> |
| 342 | + </actionGroup> |
| 343 | + <actionGroup name="navigateToCreatedProductEditPage"> |
| 344 | + <arguments> |
| 345 | + <argument name="product" defaultValue="_defaultProduct"/> |
| 346 | + </arguments> |
| 347 | + <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="goToAdminProductIndexPage"/> |
| 348 | + <waitForPageLoad stepKey="waitForProductIndexPageToLoad"/> |
| 349 | + <conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/> |
| 350 | + <waitForPageLoad stepKey="waitForClearFilters"/> |
| 351 | + <dontSeeElement selector="{{AdminProductGridFilterSection.clearFilters}}" stepKey="dontSeeClearFilters"/> |
| 352 | + <click selector="{{AdminProductGridFilterSection.viewDropdown}}" stepKey="openViewBookmarksTab"/> |
| 353 | + <click selector="{{AdminProductGridFilterSection.viewBookmark('Default View')}}" stepKey="resetToDefaultGridView"/> |
| 354 | + <waitForPageLoad stepKey="waitForResetToDefaultView"/> |
| 355 | + <see selector="{{AdminProductGridFilterSection.viewDropdown}}" userInput="Default View" stepKey="seeDefaultViewSelected"/> |
| 356 | + <click selector="{{AdminProductGridFilterSection.filters}}" stepKey="openProductFilters"/> |
| 357 | + <fillField selector="{{AdminProductGridFilterSection.skuFilter}}" userInput="{{product.sku}}" stepKey="fillProductSkuFilter"/> |
| 358 | + <click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="clickApplyFilters"/> |
| 359 | + <waitForPageLoad stepKey="waitForFilterOnGrid"/> |
| 360 | + <click selector="{{AdminProductGridSection.selectRowBasedOnName(product.name)}}" stepKey="clickProduct"/> |
| 361 | + <waitForPageLoad stepKey="waitForProductEditPageLoad"/> |
| 362 | + <waitForElementVisible selector="{{AdminProductFormBundleSection.productSku}}" stepKey="waitForProductSKUField"/> |
| 363 | + <seeInField selector="{{AdminProductFormBundleSection.productSku}}" userInput="{{product.sku}}" stepKey="seeProductSKU"/> |
| 364 | + </actionGroup> |
| 365 | + <actionGroup name="addUpSellProductBySku" extends="addRelatedProductBySku"> |
| 366 | + <click selector="{{AdminProductFormRelatedUpSellCrossSellSection.AddUpSellProductsButton}}" stepKey="clickAddRelatedProductButton"/> |
| 367 | + <conditionalClick selector="{{AdminAddUpSellProductsModalSection.Modal}} {{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminAddUpSellProductsModalSection.Modal}} {{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/> |
| 368 | + <click selector="{{AdminAddUpSellProductsModalSection.Modal}} {{AdminProductGridFilterSection.filters}}" stepKey="openProductFilters"/> |
| 369 | + <fillField selector="{{AdminAddUpSellProductsModalSection.Modal}} {{AdminProductGridFilterSection.skuFilter}}" userInput="{{sku}}" stepKey="fillProductSkuFilter"/> |
| 370 | + <click selector="{{AdminAddUpSellProductsModalSection.Modal}} {{AdminProductGridFilterSection.applyFilters}}" stepKey="clickApplyFilters"/> |
| 371 | + <waitForPageLoad stepKey="waitForPageToLoad"/> |
| 372 | + <click selector="{{AdminAddUpSellProductsModalSection.Modal}}{{AdminProductModalSlideGridSection.productGridXRowYColumnButton('1', '1')}}" stepKey="selectProduct"/> |
| 373 | + <click selector="{{AdminAddUpSellProductsModalSection.AddSelectedProductsButton}}" stepKey="addRelatedProductSelected"/> |
| 374 | + <waitForPageLoad stepKey="waitForPageToLoad1"/> |
| 375 | + </actionGroup> |
331 | 376 | </actionGroups>
|
0 commit comments