|
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 |
| - |
19 |
| - <argument name="RootCat" type="string" defaultValue="Default Category"/> |
20 |
| - <argument name="FirstSubCat" type="string"/> |
21 |
| - <argument name="SecondSubCat" type="string"/> |
22 |
| - <argument name="ThirdSubCat" type="string"/> |
23 |
| - <argument name="FourthSubCat" type="string"/> |
24 |
| - <argument name="FifthSubCat" type="string"/> |
25 | 18 | </arguments>
|
26 | 19 | <amOnPage url="{{CmsNewWidgetsPage.url}}" stepKey="navigateToCreateWidgetsPage"/>
|
27 | 20 | <waitForPageLoad stepKey="waitForWidgetPageToLoad"/>
|
|
31 | 24 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear2"/>
|
32 | 25 | <click selector="{{CmsNewWidgetsSettingSection.ContinueButton}}" stepKey="clickContinueButton"/>
|
33 | 26 | <waitForPageLoad stepKey="waitForStorefrontPropertiesSectionToLoad"/>
|
34 |
| - <click selector="{{CmsNewWidgetStoreforntPropertiesSection.AddLayout}}" stepKey="clickAddLayoutButton" /> |
35 |
| - <scrollTo selector="{{CmsNewWidgetStoreforntPropertiesSection.AddLayout}}" stepKey="scrollToAddLayoutTab" /> |
| 27 | + <click selector="{{CmsNewWidgetStorefrontPropertiesSection.AddLayout}}" stepKey="clickAddLayoutButton" /> |
| 28 | + <scrollTo selector="{{CmsNewWidgetStorefrontPropertiesSection.AddLayout}}" stepKey="scrollToAddLayoutTab" /> |
36 | 29 | <waitForPageLoad stepKey="waitForAddLayoutTabToLoad"/>
|
37 | 30 | <selectOption selector="{{CmsNewWidgetUpdateLayoutSection.DisplayOn}}" userInput="{{WidgetDisplayOn}}" stepKey="selectDisplay"/>
|
38 | 31 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear3" />
|
39 |
| - <selectOption selector="{{CmsNewWidgetUpdateLayoutSection.SpecificCategories}}" userInput="Specific Categories" stepKey="selectSpecificCategoryRadioButton"/> |
40 |
| - <click selector="{{CmsNewWidgetUpdateLayoutSection.CategoryChooserButton}}" stepKey="clickCategoryChooserButton"/> |
| 32 | + <selectOption selector="//input[@id='specific_anchor_categories_0']" userInput="Specific Categories" stepKey="selectSpecificCategoryRadioButton"/> |
| 33 | + <click selector="//*[@id='anchor_categories_ids_0']/p/a[1]/img" stepKey="clickCategoryChooserButton"/> |
41 | 34 | <waitForPageLoad stepKey="waitForRootCategoryToLoad"/>
|
42 |
| - <click selector="{{CmsNewWidgetUpdateLayoutSection.RootCat(RootCat)}}" stepKey="clickRootCat"/> |
| 35 | + <click selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']" stepKey="clickRootCat"/> |
43 | 36 | <waitForPageLoad stepKey="waitForRootCategoryToExpand"/>
|
44 |
| - <click selector="{{CmsNewWidgetUpdateLayoutSection.FirstSubCat(FirstSubCat)}}" stepKey="clickFirstSubCat"/> |
| 37 | + <click selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']" stepKey="clickFirstSubCat"/> |
45 | 38 | <waitForPageLoad stepKey="waitForFirstSubCatToExpand"/>
|
46 |
| - <click selector="{{CmsNewWidgetUpdateLayoutSection.SecondSubCat(SecondSubCat)}}" stepKey="expandSecondSubCat"/> |
| 39 | + <click selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']" stepKey="expandSecondSubCat"/> |
47 | 40 | <waitForPageLoad stepKey="waitForSecondSubCatToExpand"/>
|
48 |
| - <click selector="{{CmsNewWidgetUpdateLayoutSection.ThirdSubCat(ThirdSubCat)}}" stepKey="expandThirdFirstSubCat"/> |
| 41 | + <click selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']" stepKey="expandThirdFirstSubCat"/> |
49 | 42 | <waitForPageLoad stepKey="waitForThirdSubCatToExpand"/>
|
50 |
| - <click selector="{{CmsNewWidgetUpdateLayoutSection.FourthSubCat(FourthSubCat)}}" stepKey="expandFourthSubCat"/> |
| 43 | + <click selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']" stepKey="expandFourthSubCat"/> |
51 | 44 | <waitForPageLoad stepKey="waitForFourthSubCatToExpand"/>
|
52 |
| - <click selector="{{CmsNewWidgetUpdateLayoutSection.FifthSubCat(FifthSubCat)}}" stepKey="expandFifthSubCat"/> |
| 45 | + <click selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']" stepKey="expandFifthSubCat"/> |
53 | 46 | <waitForPageLoad stepKey="waitForFifthSubCatToExpand"/>
|
54 |
| - <grabMultiple selector="{{CmsNewWidgetUpdateLayoutSection.CountAllNestedCat}}" stepKey="countNestedCategory"/> |
| 47 | + <grabMultiple selector="//*[@class='x-tree-ec-icon x-tree-elbow-end-minus' or @class='x-tree-ec-icon x-tree-elbow-end']" stepKey="countNestedCategory"/> |
55 | 48 | <assertCount stepKey="check">
|
56 | 49 | <expectedResult type="int">7</expectedResult>
|
57 | 50 | <actualResult type="variable">countNestedCategory</actualResult>
|
|
0 commit comments