|
17 | 17 | <severity value="MAJOR"/>
|
18 | 18 | <testCaseId value="AC-4389"/>
|
19 | 19 | <group value="widget"/>
|
| 20 | + <group value="pagebuilder-disable"/> |
20 | 21 | </annotations>
|
21 | 22 | <before>
|
22 | 23 | <!-- Pre-condition 1- Login as Admin -->
|
23 | 24 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
24 |
| - <!-- Pre-condition - Disable the page builder --> |
25 |
| - <magentoCLI command="config:set cms/pagebuilder/enabled 0" stepKey="disablePageBuilder"/> |
26 |
| - <magentoCLI command="config:set cms/wysiwyg/enabled disabled" stepKey="disableWYSIWYG"/> |
27 |
| - <magentoCLI stepKey="reindexingPostDisablingThePageBuilder" command="indexer:reindex"/> |
28 |
| - <magentoCLI stepKey="flushCachePostDisablingThePageBuilder" command="cache:flush"/> |
29 | 25 | <!-- Pre-condition 3- Verify page in grid-->
|
30 | 26 | <actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="openCMSPagesGridActionGroup"/>
|
31 | 27 | <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearGridFilters"/>
|
|
37 | 33 | <waitForElementVisible selector="{{CmsNewPagePageContentSection.header}}" stepKey="waitForContentTabForPageToBeVisible"/>
|
38 | 34 | <!-- Pre-condition 5- Expand the Content section > Insert Widget -->
|
39 | 35 | <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickExpandContentTabForPage"/>
|
| 36 | + <conditionalClick selector="{{CmsNewPagePageActionsSection.showHideEditor}}" dependentSelector="{{CmsNewPagePageActionsSection.showHideEditor}}" visible="true" stepKey="clickOnShowHideEditorLinkIfVisibleForInsertingWidget"/> |
40 | 37 | <waitForElementVisible selector="{{CmsNewPagePageActionsSection.insertWidget}}" stepKey="waitForTheInsertWidgetButtonToDisplay"/>
|
41 | 38 | <actionGroup ref="AdminInsertWidgetToCmsPageContentActionGroup" stepKey="selectCMSPageLinkFromDropdown"/>
|
42 | 39 | <waitForPageLoad stepKey="waitForPageLoadPostSelectingFromDropDown"/>
|
|
65 | 62 | <waitForElementVisible selector="{{CmsNewPagePageContentSection.header}}" stepKey="waitForContentTabForPageToBeVisibleToReset"/>
|
66 | 63 | <!-- Pre-condition 5- Expand the Content section > Insert Widget To Reset -->
|
67 | 64 | <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickExpandContentTabForPageToReset"/>
|
| 65 | + <conditionalClick selector="{{CmsNewPagePageActionsSection.showHideEditor}}" dependentSelector="{{CmsNewPagePageActionsSection.showHideEditor}}" visible="true" stepKey="clickOnShowHideEditorLinkIfVisibleForInsertingWidgetToOriginal"/> |
68 | 66 | <waitForElementVisible selector="{{CmsNewPagePageActionsSection.insertWidget}}" stepKey="waitForTheInsertWidgetButtonToDisplayToReset"/>
|
69 | 67 | <clearField selector="{{CmsNewPagePageContentSection.content}}" stepKey="clearWidgetTextFieldToReset"/>
|
70 | 68 | <fillField selector="{{CmsNewPagePageContentSection.content}}" userInput="<p>CMS homepage content goes here.</p>" stepKey="InputDefaultValuesInWidgetTextFieldToReset"/>
|
71 | 69 | <waitForElementVisible selector="{{CmsNewPagePageActionsSection.saveAndContinueEdit}}" stepKey="waitForInsertWidgetDialogToDisappearToReset" time="5"/>
|
72 | 70 | <click selector="{{CmsNewPagePageActionsSection.saveAndContinueEdit}}" stepKey="clickSavePageToReset"/>
|
73 | 71 | <waitForElementVisible selector="{{CmsPagesPageActionsSection.savePageSuccessMessage}}" stepKey="waitForSuccessMessageLoggedOutToReset" time="5"/>
|
74 | 72 | <see userInput="You saved the page." stepKey="seeSuccessMessageToReset"/>
|
75 |
| - <magentoCLI command="config:set cms/pagebuilder/enabled 1" stepKey="enablePageBuilder"/> |
76 |
| - <magentoCLI command="config:set cms/wysiwyg/enabled enabled" stepKey="enableWYSIWYG"/> |
77 |
| - <magentoCLI stepKey="reindexPostEnablingThePageBuilder" command="indexer:reindex"/> |
78 |
| - <magentoCLI stepKey="flushCachePostEnablingThePageBuilder" command="cache:flush"/> |
79 | 73 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
80 | 74 | </after>
|
81 | 75 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="navigateToHomePage"/>
|
|
0 commit comments