|
18 | 18 | <testCaseId value="MC-13794"/>
|
19 | 19 | <group value="CatalogWidget"/>
|
20 | 20 | <group value="WYSIWYGDisabled"/>
|
21 |
| - <skip> |
22 |
| - <issueId value="MC-13923"/> |
23 |
| - </skip> |
24 | 21 | </annotations>
|
25 | 22 | <before>
|
26 | 23 | <createData entity="SimpleSubCategory" stepKey="simplecategory"/>
|
|
40 | 37 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
41 | 38 | <actionGroup ref="EnabledWYSIWYGActionGroup" stepKey="enableWYSIWYG"/>
|
42 | 39 | </before>
|
| 40 | + <after> |
| 41 | + <actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/> |
| 42 | + <deleteData createDataKey="createPreReqPage" stepKey="deletePreReqPage" /> |
| 43 | + <deleteData createDataKey="simplecategory" stepKey="deleteSimpleCategory"/> |
| 44 | + <deleteData createDataKey="createFirstProduct" stepKey="deleteFirstProduct"/> |
| 45 | + <deleteData createDataKey="createSecondProduct" stepKey="deleteSecondProduct"/> |
| 46 | + <deleteData createDataKey="createThirdProduct" stepKey="deleteThirdProduct"/> |
| 47 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 48 | + </after> |
43 | 49 | <!--Open created cms page-->
|
44 | 50 | <comment userInput="Open created cms page" stepKey="commentOpenCreatedCmsPage"/>
|
45 | 51 | <actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToCreatedCMSPage1">
|
46 |
| - <argument name="CMSPage" value="$$createPreReqPage$$"/> |
| 52 | + <argument name="CMSPage" value="$createPreReqPage$"/> |
47 | 53 | </actionGroup>
|
48 | 54 | <!--Add widget to cms page-->
|
49 | 55 | <comment userInput="Add widget to cms page" stepKey="commentAddWidgetToCmsPage"/>
|
| 56 | + <waitForElementVisible selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="waitInsertWidgetIconVisible"/> |
50 | 57 | <click selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="clickInsertWidgetIcon" />
|
51 | 58 | <waitForPageLoad stepKey="waitForPageLoad1" />
|
| 59 | + <waitForElementVisible selector="{{WidgetSection.WidgetType}}" stepKey="waitForWidgetTypeSelectorVisible"/> |
52 | 60 | <selectOption selector="{{WidgetSection.WidgetType}}" userInput="Catalog Products List" stepKey="selectCatalogProductsList" />
|
53 | 61 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear1" />
|
| 62 | + <waitForElementVisible selector="{{WidgetSection.AddParam}}" stepKey="waitForAddParamBtnVisible"/> |
54 | 63 | <click selector="{{WidgetSection.AddParam}}" stepKey="clickAddParamBtn" />
|
55 | 64 | <waitForElementVisible selector="{{WidgetSection.ConditionsDropdown}}" stepKey="waitForDropdownVisible"/>
|
56 | 65 | <selectOption selector="{{WidgetSection.ConditionsDropdown}}" userInput="Category" stepKey="selectCategoryCondition" />
|
57 | 66 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear2" />
|
| 67 | + <waitForElementVisible selector="{{WidgetSection.RuleParam}}" stepKey="waitForRuleParamVisible"/> |
58 | 68 | <click selector="{{WidgetSection.RuleParam}}" stepKey="clickRuleParam" />
|
59 | 69 | <waitForElementVisible selector="{{WidgetSection.Chooser}}" stepKey="waitForElement" />
|
60 | 70 | <click selector="{{WidgetSection.Chooser}}" stepKey="clickChooser" />
|
61 | 71 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear3" />
|
62 |
| - <click selector="{{WidgetSection.PreCreateCategory('$$simplecategory.name$$')}}" stepKey="selectCategory" /> |
| 72 | + <waitForElementVisible selector="{{WidgetSection.PreCreateCategory('$simplecategory.name$')}}" stepKey="waitForCategoryVisible" /> |
| 73 | + <click selector="{{WidgetSection.PreCreateCategory('$simplecategory.name$')}}" stepKey="selectCategory" /> |
63 | 74 | <click selector="{{WidgetSection.InsertWidget}}" stepKey="clickInsertWidget" />
|
64 | 75 | <waitForPageLoad stepKey="waitForPageLoad2" />
|
65 | 76 | <!--Save cms page and go to Storefront-->
|
66 | 77 | <comment userInput="Save cms page and go to Storefront" stepKey="commentSaveCmsPageAndGoToStorefront"/>
|
| 78 | + <waitForElementVisible selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="waitForExpandButtonMenuVisible"/> |
67 | 79 | <click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandButtonMenu"/>
|
68 | 80 | <waitForElementVisible selector="{{CmsNewPagePageActionsSection.splitButtonMenu}}" stepKey="waitForSplitButtonMenuVisible"/>
|
69 | 81 | <click selector="{{CmsNewPagePageActionsSection.savePage}}" stepKey="clickSavePage"/>
|
70 | 82 | <see userInput="You saved the page." stepKey="seeSuccessMessage"/>
|
71 |
| - <amOnPage url="$$createPreReqPage.identifier$$" stepKey="amOnPageTestPage"/> |
| 83 | + <amOnPage url="$createPreReqPage.identifier$" stepKey="amOnPageTestPage"/> |
72 | 84 | <waitForPageLoad stepKey="waitForPageLoad3" />
|
73 | 85 | <!--Check order of products: recently added first-->
|
74 | 86 | <comment userInput="Check order of products: recently added first" stepKey="commentCheckOrderOfProductsRecentlyAddedFirst"/>
|
75 |
| - <seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('1','$$createThirdProduct.name$$')}}" stepKey="seeElementByName1"/> |
76 |
| - <seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('2','$$createSecondProduct.name$$')}}" stepKey="seeElementByName2"/> |
77 |
| - <seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('3','$$createFirstProduct.name$$')}}" stepKey="seeElementByName3"/> |
78 |
| - <after> |
79 |
| - <actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/> |
80 |
| - <deleteData createDataKey="createPreReqPage" stepKey="deletePreReqPage" /> |
81 |
| - <deleteData createDataKey="simplecategory" stepKey="deleteSimpleCategory"/> |
82 |
| - <deleteData createDataKey="createFirstProduct" stepKey="deleteFirstProduct"/> |
83 |
| - <deleteData createDataKey="createSecondProduct" stepKey="deleteSecondProduct"/> |
84 |
| - <deleteData createDataKey="createThirdProduct" stepKey="deleteThirdProduct"/> |
85 |
| - <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
86 |
| - </after> |
| 87 | + <waitForElementVisible selector="{{InsertWidgetSection.checkElementStorefrontByName('1','$createThirdProduct.name$')}}" stepKey="waitForThirdProductVisible"/> |
| 88 | + <seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('1','$createThirdProduct.name$')}}" stepKey="seeElementByName1"/> |
| 89 | + <seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('2','$createSecondProduct.name$')}}" stepKey="seeElementByName2"/> |
| 90 | + <seeElement selector="{{InsertWidgetSection.checkElementStorefrontByName('3','$createFirstProduct.name$')}}" stepKey="seeElementByName3"/> |
87 | 91 | </test>
|
88 | 92 | </tests>
|
0 commit comments