Skip to content

Commit

Permalink
ENGCOM-8682: [MFTF] Updating with AdminOpenCMSPagesGridActionGroup #3…
Browse files Browse the repository at this point in the history
…1569

 - Merge Pull Request #31569 from AnnaAPak/magento2:upd-with-AdminOpenCMSPagesGridActionGroup
 - Merged commits:
   1. 49f3f51
   2. 7aa992a
   3. c375046
  • Loading branch information
magento-engcom-team committed Feb 15, 2021
2 parents 81ad0b4 + c375046 commit 9b9ee50
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
</assertEquals>

<!-- Verify that the CMS page have the required field name indicator next to Page Title -->
<amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnPagePagesGrid"/>
<waitForPageLoad stepKey="waitForPageLoad1"/>
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="amOnPagePagesGrid"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad1"/>
<actionGroup ref="AdminClickAddNewPageOnPagesGridActionGroup" stepKey="clickAddNewPage"/>
<executeJS function="{{CmsNewPagePageBasicFieldsSection.RequiredFieldIndicator}}" stepKey="pageTitleRequiredFieldIndicator"/>
<assertEquals message="pass" stepKey="assertRequiredFieldIndicator5">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
<actionGroup ref="DeleteFolderActionGroup" stepKey="DeleteCreatedFolder">
<argument name="ImageFolder" value="ImageFolder"/>
</actionGroup>
<amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnEditPage"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="amOnEditPage"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad"/>
<conditionalClick selector="{{CmsPagesPageActionsSection.clearAllButton}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" stepKey="clickToResetFilter" visible="true"/>
<waitForPageLoad stepKey="waitForGridReload"/>
<deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
<seeElement selector="{{TinyMCESection.InsertVariableBtn}}" stepKey="InsertVariableBtn" />
<click selector="{{BlockNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitButton"/>
<click selector="{{BlockNewPagePageActionsSection.saveAndClose}}" stepKey="clickSaveBlock"/>
<amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnEditPage"/>
<waitForPageLoad stepKey="waitForPageLoad7"/>
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="amOnEditPage"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad7"/>
<conditionalClick selector="{{CmsPagesPageActionsSection.clearAllButton}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" stepKey="clickToResetFilter1" visible="true"/>
<waitForPageLoad stepKey="waitForFilterReload"/>
<click selector="{{CmsPagesPageActionsSection.filterButton}}" stepKey="clickFiltersBtn" />
Expand Down Expand Up @@ -136,8 +136,8 @@
<!--see custom variable blank-->
<dontSee userInput="{{customVariable.html}}" stepKey="dontSeeCustomVariableName" />
<after>
<amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnEditPage"/>
<waitForPageLoad stepKey="waitForPageLoad2"/>
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="amOnEditPage"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad2"/>
<conditionalClick selector="{{CmsPagesPageActionsSection.clearAllButton}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" stepKey="clickToResetFilter" visible="true"/>
<waitForPageLoad stepKey="waitForGridReload"/>
<deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
<waitForPageLoad stepKey="waitForPageLoad7" />
<see userInput="Home page" stepKey="seeHomePageCMSPage"/>
<after>
<amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnEditPage"/>
<waitForPageLoad stepKey="waitForPageLoad2"/>
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="amOnEditPage"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad2"/>
<conditionalClick selector="{{CmsPagesPageActionsSection.clearAllButton}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" stepKey="clickToResetFilter" visible="true"/>
<waitForPageLoad stepKey="waitForGridReload"/>
<deleteData createDataKey="createCMSPage" stepKey="deletePreReqCMSPage" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<see selector="{{TinyMCESection.InsertVariableBtn}}" userInput="Insert Variable..." stepKey="assertInfo19"/>
<click selector="{{BlockNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitButton"/>
<click selector="{{BlockNewPagePageActionsSection.saveAndClose}}" stepKey="clickSaveBlock"/>
<amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnEditPage"/>
<waitForPageLoad stepKey="waitForPageLoad2"/>
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="amOnEditPage"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad2"/>
<conditionalClick selector="{{CmsPagesPageActionsSection.clearAllButton}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" stepKey="clickToResetFilter" visible="true"/>
<waitForPageLoad stepKey="waitForGridReload"/>
<click selector="{{CmsPagesPageActionsSection.filterButton}}" stepKey="clickFiltersBtn" />
Expand Down Expand Up @@ -85,8 +85,8 @@
<!--see content of Block on Storefront-->
<see userInput="Hello Block Page!" stepKey="seeContent"/>
<after>
<amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnEditPage"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="amOnEditPage"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad"/>
<conditionalClick selector="{{CmsPagesPageActionsSection.clearAllButton}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" stepKey="clickToResetFilter" visible="true"/>
<waitForPageLoad stepKey="waitForGridReload"/>
<deleteData createDataKey="createPreReqCMSPage" stepKey="deletePreReqCMSPage" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<actionGroup ref="EnabledWYSIWYGActionGroup" stepKey="enableWYSIWYG"/>
<actionGroup ref="CliEnableTinyMCE4ActionGroup" stepKey="switchToTinyMCE4" />
</before>
<amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnPagePagesGrid"/>
<waitForPageLoad stepKey="waitForPageLoad1"/>
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="amOnPagePagesGrid"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad1"/>
<actionGroup ref="AdminClickAddNewPageOnPagesGridActionGroup" stepKey="clickAddNewPage"/>
<fillField selector="{{CmsNewPagePageBasicFieldsSection.pageTitle}}" userInput="{{_defaultCmsPage.title}}" stepKey="fillFieldTitle"/>
<click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickExpandContent"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
</after>

<!-- Create a CMS page containing the New Products widget -->

<amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnCmsList"/>
<waitForPageLoad stepKey="waitForCmsList"/>
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="amOnCmsList"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCmsList"/>
<actionGroup ref="AdminClickAddNewPageOnPagesGridActionGroup" stepKey="clickAddNewPageButton"/>
<fillField selector="{{CmsNewPagePageBasicFieldsSection.pageTitle}}" userInput="{{_newDefaultCmsPage.title}}" stepKey="fillPageTitle"/>
<click selector="{{CmsNewPagePageContentSection.header}}" stepKey="expandContentSection"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
</after>
<!-- Create a CMS page containing the Products List widget -->
<amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnCmsList"/>
<waitForPageLoad stepKey="waitForCmsList"/>
<actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="amOnCmsList"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCmsList"/>
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/>
<actionGroup ref="AdminClickAddNewPageOnPagesGridActionGroup" stepKey="clickAddNewPageButton"/>
<fillField selector="{{CmsNewPagePageBasicFieldsSection.pageTitle}}" userInput="{{_newDefaultCmsPage.title}}" stepKey="fillPageTitle"/>
Expand Down

0 comments on commit 9b9ee50

Please sign in to comment.