Skip to content

Commit 5a876f1

Browse files
Manoranjan.Prakashshanthi
authored andcommitted
ACQE-4703: CheckDisplayingOfApostrophesInTheTextFieldBoxWhileCreatingPageWidgetTest
code review implemented: updated the group pagebuilder-disable and removed the CLI commands
1 parent 641dd76 commit 5a876f1

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

app/code/Magento/Widget/Test/Mftf/Test/CheckDisplayingOfApostrophesInTheTextFieldBoxWhileCreatingPageWidgetTest.xml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@
1717
<severity value="MAJOR"/>
1818
<testCaseId value="AC-4389"/>
1919
<group value="widget"/>
20+
<group value="pagebuilder-disable"/>
2021
</annotations>
2122
<before>
2223
<!-- Pre-condition 1- Login as Admin -->
2324
<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"/>
2925
<!-- Pre-condition 3- Verify page in grid-->
3026
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="openCMSPagesGridActionGroup"/>
3127
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearGridFilters"/>
@@ -37,6 +33,7 @@
3733
<waitForElementVisible selector="{{CmsNewPagePageContentSection.header}}" stepKey="waitForContentTabForPageToBeVisible"/>
3834
<!-- Pre-condition 5- Expand the Content section > Insert Widget -->
3935
<click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickExpandContentTabForPage"/>
36+
<conditionalClick selector="{{CmsNewPagePageActionsSection.showHideEditor}}" dependentSelector="{{CmsNewPagePageActionsSection.showHideEditor}}" visible="true" stepKey="clickOnShowHideEditorLinkIfVisibleForInsertingWidget"/>
4037
<waitForElementVisible selector="{{CmsNewPagePageActionsSection.insertWidget}}" stepKey="waitForTheInsertWidgetButtonToDisplay"/>
4138
<actionGroup ref="AdminInsertWidgetToCmsPageContentActionGroup" stepKey="selectCMSPageLinkFromDropdown"/>
4239
<waitForPageLoad stepKey="waitForPageLoadPostSelectingFromDropDown"/>
@@ -65,17 +62,14 @@
6562
<waitForElementVisible selector="{{CmsNewPagePageContentSection.header}}" stepKey="waitForContentTabForPageToBeVisibleToReset"/>
6663
<!-- Pre-condition 5- Expand the Content section > Insert Widget To Reset -->
6764
<click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickExpandContentTabForPageToReset"/>
65+
<conditionalClick selector="{{CmsNewPagePageActionsSection.showHideEditor}}" dependentSelector="{{CmsNewPagePageActionsSection.showHideEditor}}" visible="true" stepKey="clickOnShowHideEditorLinkIfVisibleForInsertingWidgetToOriginal"/>
6866
<waitForElementVisible selector="{{CmsNewPagePageActionsSection.insertWidget}}" stepKey="waitForTheInsertWidgetButtonToDisplayToReset"/>
6967
<clearField selector="{{CmsNewPagePageContentSection.content}}" stepKey="clearWidgetTextFieldToReset"/>
7068
<fillField selector="{{CmsNewPagePageContentSection.content}}" userInput="&lt;p&gt;CMS homepage content goes here.&lt;/p&gt;" stepKey="InputDefaultValuesInWidgetTextFieldToReset"/>
7169
<waitForElementVisible selector="{{CmsNewPagePageActionsSection.saveAndContinueEdit}}" stepKey="waitForInsertWidgetDialogToDisappearToReset" time="5"/>
7270
<click selector="{{CmsNewPagePageActionsSection.saveAndContinueEdit}}" stepKey="clickSavePageToReset"/>
7371
<waitForElementVisible selector="{{CmsPagesPageActionsSection.savePageSuccessMessage}}" stepKey="waitForSuccessMessageLoggedOutToReset" time="5"/>
7472
<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"/>
7973
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
8074
</after>
8175
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="navigateToHomePage"/>

0 commit comments

Comments
 (0)