Skip to content

Commit

Permalink
ENGCOM-7255: [MFTF] Set correct url for CmsPageEditPage #27563
Browse files Browse the repository at this point in the history
 - Merge Pull Request #27563 from Usik2203/magento2:fix-url-to-cms-page
 - Merged commits:
   1. 2e626e7
   2. 039e09b
  • Loading branch information
magento-engcom-team committed Apr 3, 2020
2 parents 562644f + 039e09b commit 0f953f2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="ClearWidgetsForCMSHomePageContentWYSIWYGDisabledActionGroup">
<amOnPage url="{{CmsPageEditPage.url('2')}}" stepKey="navigateToEditHomePagePage"/>
<amOnPage url="{{AdminCmsPageEditPage.url('2')}}" stepKey="navigateToEditHomePagePage"/>
<waitForPageLoad stepKey="waitForCmsPageEditPage"/>
<conditionalClick selector="{{CmsNewPagePageActionsSection.contentSectionName}}" dependentSelector="{{CatalogWidgetSection.insertWidgetButton}}" visible="false" stepKey="clickShowHideEditorIfVisible"/>
<waitForElementVisible selector="{{CmsNewPagePageContentSection.content}}" stepKey="waitForContentField"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<description>Goes to the Admin CMS Page Edit page for the Page ID number 2. Clears the Widget and replaces it with Text. PLEASE NOTE: The Page ID/Text are Hardcoded.</description>
</annotations>

<amOnPage url="{{CmsPageEditPage.url('2')}}" stepKey="navigateToEditHomePagePage"/>
<amOnPage url="{{AdminCmsPageEditPage.url('2')}}" stepKey="navigateToEditHomePagePage"/>
<waitForPageLoad stepKey="waitEditHomePagePageToLoad"/>
<click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickContentTab"/>
<waitForElementNotVisible selector="{{CmsWYSIWYGSection.CheckIfTabExpand}}" stepKey="waitForTabExpand"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
<page name="AdminCmsPageEditPage" area="admin" url="/cms/page/edit/page_id/{{id}}" parameterized="true" module="Magento_Cms">
<page name="AdminCmsPageEditPage" area="admin" url="/cms/page/edit/page_id/{{pageId}}" parameterized="true" module="Magento_Cms">
<section name="CmsNewPagePageActionsSection"/>
<section name="CmsNewPagePageBasicFieldsSection"/>
<section name="CmsNewPagePageContentSection"/>
Expand Down
16 changes: 0 additions & 16 deletions app/code/Magento/Cms/Test/Mftf/Page/CmsPageEditPage.xml

This file was deleted.

0 comments on commit 0f953f2

Please sign in to comment.