|
36 | 36 | <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCmsList"/>
|
37 | 37 | <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/>
|
38 | 38 | <actionGroup ref="AdminClickAddNewPageOnPagesGridActionGroup" stepKey="clickAddNewPageButton"/>
|
39 |
| - <fillField selector="{{CmsNewPagePageBasicFieldsSection.pageTitle}}" userInput="{{_newDefaultCmsPage.title}}" stepKey="fillPageTitle"/> |
40 |
| - <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="expandContentSection"/> |
41 |
| - <waitForPageLoad stepKey="waitForContentSection"/> |
42 |
| - <click selector="{{CmsWYSIWYGSection.InsertWidgetBtn}}" stepKey="clickInsertWidgetButton"/> |
43 |
| - <waitForPageLoad stepKey="waitForSlideOut"/> |
44 |
| - <selectOption selector="{{WidgetSection.WidgetType}}" userInput="Catalog Products List" stepKey="selectWidgetType"/> |
45 |
| - <waitForPageLoad stepKey="waitForWidgetOptions"/> |
46 |
| - <click selector="{{AdminNewWidgetSection.addNewCondition}}" stepKey="clickAddNewCondition"/> |
47 |
| - <selectOption selector="{{AdminNewWidgetSection.selectCondition}}" userInput="Magento\CatalogWidget\Model\Rule\Condition\Product|category_ids" stepKey="selectCondition"/> |
48 |
| - <waitForElement selector="{{AdminNewWidgetSection.ruleParameter}}" stepKey="waitRuleParameter"/> |
49 |
| - <click selector="{{AdminNewWidgetSection.ruleParameter}}" stepKey="clickRuleParameter"/> |
50 |
| - <click selector="{{AdminNewWidgetSection.openChooser}}" stepKey="clickChooser"/> |
51 |
| - <waitForAjaxLoad stepKey="waitForAjaxLoad"/> |
52 |
| - <click selector="{{AdminCategorySidebarTreeSection.categoryInTree($$createCategory.name$$)}}" stepKey="clickCategoryToEditInitial"/> |
53 |
| - <click selector="{{AdminNewWidgetSection.applyParameter}}" stepKey="clickApplyRuleParameter"/> |
| 39 | + <actionGroup ref="AdminCmsPageSetTitleActionGroup" stepKey="fillPageTitle"> |
| 40 | + <argument name="newTitle" value="{{_newDefaultCmsPage.title}}"/> |
| 41 | + </actionGroup> |
| 42 | + <actionGroup ref="AdminExpandContentSectionActionGroup" stepKey="expandContentSection"/> |
| 43 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForContentSection"/> |
| 44 | + <actionGroup ref="AdminInsertCatalogProductsListWidgetForCmsPageContentSectionActionGroup" stepKey="clickInsertWidgetButton"> |
| 45 | + <argument name="categoryName" value="$$createCategory.name$$"/> |
| 46 | + </actionGroup> |
| 47 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSlideOut"/> |
| 48 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectWidgetType"/> |
| 49 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForWidgetOptions"/> |
| 50 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickAddNewCondition"/> |
| 51 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectCondition"/> |
| 52 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitRuleParameter"/> |
| 53 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickRuleParameter"/> |
| 54 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickChooser"/> |
| 55 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForAjaxLoad"/> |
| 56 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickCategoryToEditInitial"/> |
| 57 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickApplyRuleParameter"/> |
54 | 58 | <actionGroup ref="AdminClickInsertWidgetActionGroup" stepKey="clickInsertWidget"/>
|
55 | 59 | <click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn"/>
|
56 | 60 | <click selector="{{CmsNewPagePageActionsSection.saveAndClose}}" stepKey="clickSaveAndClose"/>
|
57 | 61 | <waitForPageLoad stepKey="waitForCmsList2"/>
|
58 |
| - <see userInput="You saved the page." stepKey="seeSuccessMessage"/> |
| 62 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeSuccessMessage"> |
| 63 | + <argument name="message" value="You saved the page."/> |
| 64 | + </actionGroup> |
59 | 65 | <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clearGridFilters"/>
|
60 | 66 | <!-- Verify CMS page on storefront -->
|
61 | 67 | <waitForElementVisible selector="{{CmsPagesPageActionsSection.select(_newDefaultCmsPage.title)}}" stepKey="waitForCMSPageListItem" />
|
|
64 | 70 | <click selector="{{CmsPagesPageActionsSection.preview(_newDefaultCmsPage.title)}}" stepKey="clickEdit" />
|
65 | 71 | <switchToNextTab stepKey="switchToNextTab"/>
|
66 | 72 | <waitForPageLoad stepKey="waitForCMSPage"/>
|
67 |
| - <seeInTitle userInput="{{_newDefaultCmsPage.title}}" stepKey="seePageTitle"/> |
68 |
| - <see userInput="{{_newDefaultCmsPage.title}}" stepKey="seeProduct"/> |
| 73 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seePageTitle"/> |
| 74 | + <actionGroup ref="AssertStorefrontTextOnCmsPageActionGroup" stepKey="seeProduct"> |
| 75 | + <argument name="cmsTitle" value="{{_newDefaultCmsPage.title}}"/> |
| 76 | + <argument name="cmsContent" value="$$createSimpleProduct.name$$"/> |
| 77 | + </actionGroup> |
69 | 78 | <closeTab stepKey="closeCurrentTab"/>
|
70 | 79 | </test>
|
71 | 80 | </tests>
|
0 commit comments