|
15 | 15 | <argument name="WidgetType" type="string" defaultValue="Catalog Product Link"/> |
16 | 16 | <argument name="WidgetTheme" type="string" defaultValue="Magento Luma"/> |
17 | 17 | <argument name="WidgetDisplayOn" type="string"/> |
| 18 | + <argument name="RootCat" type="string" defaultValue="Default Category"/> |
| 19 | + <argument name="FirstSubCat" type="string"/> |
| 20 | + <argument name="SecondSubCat" type="string"/> |
| 21 | + <argument name="ThirdSubCat" type="string"/> |
| 22 | + <argument name="FourthSubCat" type="string"/> |
| 23 | + <argument name="FifthSubCat" type="string"/> |
18 | 24 | </arguments> |
19 | 25 | <amOnPage url="{{CmsNewWidgetsPage.url}}" stepKey="navigateToCreateWidgetsPage"/> |
20 | 26 | <waitForPageLoad stepKey="waitForWidgetPageToLoad"/> |
|
32 | 38 | <selectOption selector="{{CmsNewWidgetUpdateLayoutSection.SpecificCategories}}" userInput="Specific Categories" stepKey="selectSpecificCategoryRadioButton"/> |
33 | 39 | <click selector="{{CmsNewWidgetUpdateLayoutSection.CategoryChooserButton}}" stepKey="clickCategoryChooserButton"/> |
34 | 40 | <waitForPageLoad stepKey="waitForRootCategoryToLoad"/> |
35 | | - <click selector="{{CmsNewWidgetUpdateLayoutSection.RootCat}}" stepKey="clickRootCat"/> |
| 41 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.RootCat(RootCat)}}" stepKey="clickRootCat"/> |
36 | 42 | <waitForPageLoad stepKey="waitForRootCategoryToExpand"/> |
37 | | - <click selector="{{CmsNewWidgetUpdateLayoutSection.FirstSubCat}}" stepKey="clickFirstSubCat"/> |
| 43 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.FirstSubCat(FirstSubCat)}}" stepKey="clickFirstSubCat"/> |
38 | 44 | <waitForPageLoad stepKey="waitForFirstSubCatToExpand"/> |
39 | | - <click selector="{{CmsNewWidgetUpdateLayoutSection.SecondSubCat}}" stepKey="expandSecondSubCat"/> |
| 45 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.SecondSubCat(SecondSubCat)}}" stepKey="expandSecondSubCat"/> |
40 | 46 | <waitForPageLoad stepKey="waitForSecondSubCatToExpand"/> |
41 | | - <click selector="{{CmsNewWidgetUpdateLayoutSection.ThirdSubCat}}" stepKey="expandThirdFirstSubCat"/> |
| 47 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.ThirdSubCat(ThirdSubCat)}}" stepKey="expandThirdFirstSubCat"/> |
42 | 48 | <waitForPageLoad stepKey="waitForThirdSubCatToExpand"/> |
43 | | - <click selector="{{CmsNewWidgetUpdateLayoutSection.FourthSubCat}}" stepKey="expandFourthSubCat"/> |
| 49 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.FourthSubCat(FourthSubCat)}}" stepKey="expandFourthSubCat"/> |
44 | 50 | <waitForPageLoad stepKey="waitForFourthSubCatToExpand"/> |
45 | | - <click selector="{{CmsNewWidgetUpdateLayoutSection.FifthSubCat}}" stepKey="expandFifthSubCat"/> |
| 51 | + <click selector="{{CmsNewWidgetUpdateLayoutSection.FifthSubCat(FifthSubCat)}}" stepKey="expandFifthSubCat"/> |
46 | 52 | <waitForPageLoad stepKey="waitForFifthSubCatToExpand"/> |
47 | 53 | <grabMultiple selector="{{CmsNewWidgetUpdateLayoutSection.CountAllNestedCat}}" stepKey="countNestedCategory"/> |
48 | 54 | <assertCount stepKey="check"> |
|
0 commit comments