Skip to content

Commit 2f6dca5

Browse files
author
Davit_Zakharyan
committed
MAGETWO-93061: CMS page of second website with same URLkey as first website, show content of First website instead of second website content.
- Added automated test script.
1 parent 9950da0 commit 2f6dca5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

app/code/Magento/Cms/Test/Mftf/ActionGroup/CreateNewPageWithAllValuesActionGroup.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,10 @@
2828
<click selector="{{CmsNewPageHierarchySection.header}}" stepKey="clickHierarchy"/>
2929
<click selector="{{CmsNewPageHierarchySection.selectHierarchy(selectHierarchyOpt)}}" stepKey="clickPageCheckBoxes"/>
3030
</actionGroup>
31+
<actionGroup name="CreateNewPageWithAllValuesAndContent" extends="CreateNewPageWithAllValues">
32+
<arguments>
33+
<argument name="pageContent" type="string"/>
34+
</arguments>
35+
<fillField selector="{{CmsNewPagePageContentSection.content}}" userInput="{{pageContent}}" stepKey="fillContentField" after="fillFieldContentHeading"/>
36+
</actionGroup>
3137
</actionGroups>

app/code/Magento/Cms/Test/Mftf/Data/CmsPageData.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
<data key="content">Sample page content. Yada yada yada.</data>
2121
<data key="identifier" unique="suffix">test-page-</data>
2222
</entity>
23+
<entity name="customCmsPage" extends="_defaultCmsPage" type="cms_page">
24+
<data key="content">Test content data1</data>
25+
<data key="identifier">url_key</data>
26+
</entity>
27+
<entity name="customCmsPage2" extends="_defaultCmsPage" type="cms_page">
28+
<data key="title">Test Second CMS Page</data>
29+
<data key="content">Test content data2</data>
30+
<data key="identifier">url_key</data>
31+
</entity>
2332
<entity name="_duplicatedCMSPage" type="cms_page">
2433
<data key="title">testpage</data>
2534
<data key="content_heading">Test Content Heading</data>

0 commit comments

Comments
 (0)