|
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>
|
|
354 | 356 | <click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="openSeoSection"/>
|
355 | 357 | <fillField userInput="{{product.urlKey}}" selector="{{AdminProductSEOSection.urlKeyInput}}" stepKey="fillUrlKey"/>
|
356 | 358 | </actionGroup>
|
| 359 | + <actionGroup name="expandAdminProductSection"> |
| 360 | + <arguments> |
| 361 | + <argument name="sectionSelector" defaultValue="{{AdminProductContentSection.sectionHeader}}" type="string"/> |
| 362 | + <argument name="sectionDependentSelector" defaultValue="{{AdminProductContentSection.sectionHeaderShow}}" type="string"/> |
| 363 | + </arguments> |
| 364 | + <scrollToTopOfPage stepKey="scrollToTopOfPage"/> |
| 365 | + <waitForElementVisible time="30" selector="{{sectionSelector}}" stepKey="waitForSection"/> |
| 366 | + <conditionalClick selector="{{sectionSelector}}" dependentSelector="{{sectionDependentSelector}}" visible="false" stepKey="expandSection"/> |
| 367 | + <waitForPageLoad time="30" stepKey="waitForSectionToExpand"/> |
| 368 | + </actionGroup> |
| 369 | + <actionGroup name="navigateToCreatedProductEditPage"> |
| 370 | + <arguments> |
| 371 | + <argument name="product" defaultValue="_defaultProduct"/> |
| 372 | + </arguments> |
| 373 | + <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="goToAdminProductIndexPage"/> |
| 374 | + <waitForPageLoad stepKey="waitForProductIndexPageToLoad"/> |
| 375 | + <conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/> |
| 376 | + <waitForPageLoad stepKey="waitForClearFilters"/> |
| 377 | + <dontSeeElement selector="{{AdminProductGridFilterSection.clearFilters}}" stepKey="dontSeeClearFilters"/> |
| 378 | + <click selector="{{AdminProductGridFilterSection.viewDropdown}}" stepKey="openViewBookmarksTab"/> |
| 379 | + <click selector="{{AdminProductGridFilterSection.viewBookmark('Default View')}}" stepKey="resetToDefaultGridView"/> |
| 380 | + <waitForPageLoad stepKey="waitForResetToDefaultView"/> |
| 381 | + <see selector="{{AdminProductGridFilterSection.viewDropdown}}" userInput="Default View" stepKey="seeDefaultViewSelected"/> |
| 382 | + <click selector="{{AdminProductGridFilterSection.filters}}" stepKey="openProductFilters"/> |
| 383 | + <fillField selector="{{AdminProductGridFilterSection.skuFilter}}" userInput="{{product.sku}}" stepKey="fillProductSkuFilter"/> |
| 384 | + <click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="clickApplyFilters"/> |
| 385 | + <waitForPageLoad stepKey="waitForFilterOnGrid"/> |
| 386 | + <click selector="{{AdminProductGridSection.selectRowBasedOnName(product.name)}}" stepKey="clickProduct"/> |
| 387 | + <waitForPageLoad stepKey="waitForProductEditPageLoad"/> |
| 388 | + <waitForElementVisible selector="{{AdminProductFormBundleSection.productSku}}" stepKey="waitForProductSKUField"/> |
| 389 | + <seeInField selector="{{AdminProductFormBundleSection.productSku}}" userInput="{{product.sku}}" stepKey="seeProductSKU"/> |
| 390 | + </actionGroup> |
| 391 | + <actionGroup name="addUpSellProductBySku" extends="addRelatedProductBySku"> |
| 392 | + <click selector="{{AdminProductFormRelatedUpSellCrossSellSection.AddUpSellProductsButton}}" stepKey="clickAddRelatedProductButton"/> |
| 393 | + <conditionalClick selector="{{AdminAddUpSellProductsModalSection.Modal}} {{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminAddUpSellProductsModalSection.Modal}} {{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/> |
| 394 | + <click selector="{{AdminAddUpSellProductsModalSection.Modal}} {{AdminProductGridFilterSection.filters}}" stepKey="openProductFilters"/> |
| 395 | + <fillField selector="{{AdminAddUpSellProductsModalSection.Modal}} {{AdminProductGridFilterSection.skuFilter}}" userInput="{{sku}}" stepKey="fillProductSkuFilter"/> |
| 396 | + <click selector="{{AdminAddUpSellProductsModalSection.Modal}} {{AdminProductGridFilterSection.applyFilters}}" stepKey="clickApplyFilters"/> |
| 397 | + <waitForPageLoad stepKey="waitForPageToLoad"/> |
| 398 | + <click selector="{{AdminAddUpSellProductsModalSection.Modal}}{{AdminProductModalSlideGridSection.productGridXRowYColumnButton('1', '1')}}" stepKey="selectProduct"/> |
| 399 | + <click selector="{{AdminAddUpSellProductsModalSection.AddSelectedProductsButton}}" stepKey="addRelatedProductSelected"/> |
| 400 | + <waitForPageLoad stepKey="waitForPageToLoad1"/> |
| 401 | + </actionGroup> |
357 | 402 | </actionGroups>
|
0 commit comments