Skip to content

Commit eff07be

Browse files
Moved tests to seperate file
1 parent dccf5ef commit eff07be

File tree

3 files changed

+93
-71
lines changed

3 files changed

+93
-71
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="AdminConfigDefaultCMSPageLayoutFromConfigurationSettingTest">
12+
<annotations>
13+
<features value="Cms"/>
14+
<stories value="Default layout configuration MAGETWO-88793"/>
15+
<title value="Admin should be able to configure the default layout for CMS Page from System Configuration"/>
16+
<description value="Admin should be able to configure the default layout for CMS Page from System Configuration"/>
17+
<severity value="CRITICAL"/>
18+
<testCaseId value="MAGETWO-89025"/>
19+
<group value="Cms"/>
20+
</annotations>
21+
<before>
22+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
23+
</before>
24+
<after>
25+
<actionGroup ref="RestoreLayoutSetting" stepKey="sampleActionGroup"/>
26+
<actionGroup ref="logout" stepKey="logout"/>
27+
</after>
28+
<amOnPage url="{{WebConfigurationPage.url}}" stepKey="navigateToWebConfigurationPage"/>
29+
<waitForPageLoad stepKey="waitForPageLoad"/>
30+
<conditionalClick stepKey="expandDefaultLayouts" selector="{{WebSection.DefaultLayoutsTab}}" dependentSelector="{{WebSection.CheckIfTabExpand}}" visible="true" />
31+
<waitForElementVisible selector="{{DefaultLayoutsSection.pageLayout}}" stepKey="DefaultProductLayout" />
32+
<seeOptionIsSelected selector="{{DefaultLayoutsSection.pageLayout}}" userInput="1 column" stepKey="seeOneColumnSelected" />
33+
<seeOptionIsSelected selector="{{DefaultLayoutsSection.productLayout}}" userInput="No layout updates" stepKey="seeNoLayoutUpdatesSelected1" />
34+
<seeOptionIsSelected selector="{{DefaultLayoutsSection.categoryLayout}}" userInput="No layout updates" stepKey="seeNoLayoutUpdatesSelected2" />
35+
<selectOption selector="{{DefaultLayoutsSection.pageLayout}}" userInput="2 columns with right bar" stepKey="selectColumnsWithRightBar"/>
36+
<click selector="{{ContentManagementSection.Save}}" stepKey="clickSaveConfig" />
37+
<amOnPage url="{{CmsNewPagePage.url}}" stepKey="amOnPagePagesGrid"/>
38+
<waitForPageLoad stepKey="waitForPageLoad1"/>
39+
<waitForLoadingMaskToDisappear stepKey="wait2" />
40+
<click selector="{{CmsDesignSection.DesignTab}}" stepKey="clickOnDesignTab"/>
41+
<waitForElementVisible selector="{{CmsDesignSection.LayoutDropdown}}" stepKey="waitForLayoutDropDown" />
42+
<seeOptionIsSelected selector="{{CmsDesignSection.LayoutDropdown}}" userInput="2 columns with right bar" stepKey="seeColumnsWithRightBar" />
43+
</test>
44+
</tests>

app/code/Magento/Cms/Test/Mftf/Test/AdminCreateCmsPageTest.xml

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -33,75 +33,4 @@
3333
<argument name="UrlKey" value="{{_defaultCmsPage.identifier}}"/>
3434
</actionGroup>
3535
</test>
36-
<test name="AdminConfigDefaultCMSPageLayoutFromConfigurationSettingTest">
37-
<annotations>
38-
<features value="Cms"/>
39-
<stories value="Default layout configuration MAGETWO-88793"/>
40-
<title value="Admin should be able to configure the default layout for CMS Page from System Configuration"/>
41-
<description value="Admin should be able to configure the default layout for CMS Page from System Configuration"/>
42-
<severity value="CRITICAL"/>
43-
<testCaseId value="MAGETWO-89025"/>
44-
<group value="Cms"/>
45-
</annotations>
46-
<before>
47-
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
48-
</before>
49-
<after>
50-
<actionGroup ref="RestoreLayoutSetting" stepKey="sampleActionGroup"/>
51-
<actionGroup ref="logout" stepKey="logout"/>
52-
</after>
53-
<amOnPage url="{{WebConfigurationPage.url}}" stepKey="navigateToWebConfigurationPage"/>
54-
<waitForPageLoad stepKey="waitForPageLoad"/>
55-
<conditionalClick stepKey="expandDefaultLayouts" selector="{{WebSection.DefaultLayoutsTab}}" dependentSelector="{{WebSection.CheckIfTabExpand}}" visible="true" />
56-
<waitForElementVisible selector="{{DefaultLayoutsSection.pageLayout}}" stepKey="DefaultProductLayout" />
57-
<seeOptionIsSelected selector="{{DefaultLayoutsSection.pageLayout}}" userInput="1 column" stepKey="seeOneColumnSelected" />
58-
<seeOptionIsSelected selector="{{DefaultLayoutsSection.productLayout}}" userInput="No layout updates" stepKey="seeNoLayoutUpdatesSelected1" />
59-
<seeOptionIsSelected selector="{{DefaultLayoutsSection.categoryLayout}}" userInput="No layout updates" stepKey="seeNoLayoutUpdatesSelected2" />
60-
<selectOption selector="{{DefaultLayoutsSection.pageLayout}}" userInput="2 columns with right bar" stepKey="selectColumnsWithRightBar"/>
61-
<click selector="{{ContentManagementSection.Save}}" stepKey="clickSaveConfig" />
62-
<amOnPage url="{{CmsNewPagePage.url}}" stepKey="amOnPagePagesGrid"/>
63-
<waitForPageLoad stepKey="waitForPageLoad1"/>
64-
<waitForLoadingMaskToDisappear stepKey="wait2" />
65-
<click selector="{{CmsDesignSection.DesignTab}}" stepKey="clickOnDesignTab"/>
66-
<waitForElementVisible selector="{{CmsDesignSection.LayoutDropdown}}" stepKey="waitForLayoutDropDown" />
67-
<seeOptionIsSelected selector="{{CmsDesignSection.LayoutDropdown}}" userInput="2 columns with right bar" stepKey="seeColumnsWithRightBar" />
68-
</test>
69-
<test name="AdminCreateDuplicatedCmsPageTest">
70-
<annotations>
71-
<features value="Cms"/>
72-
<stories value="CMS Page Duplication and Reset Removal MAGETWO-87096"/>
73-
<title value="Admin should be able to duplicate a CMS Page"/>
74-
<description value="Admin should be able to duplicate a CMS Page"/>
75-
<severity value="CRITICAL"/>
76-
<testCaseId value="MAGETWO-89184"/>
77-
<group value="Cms"/>
78-
</annotations>
79-
<before>
80-
<actionGroup ref="LoginActionGroup" stepKey="loginGetFromGeneralFile"/>
81-
<actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/>
82-
</before>
83-
<after>
84-
<actionGroup ref="logout" stepKey="logout"/>
85-
</after>
86-
<amOnPage url="{{CmsNewPagePage.url}}" stepKey="amOnPageCreationForm"/>
87-
<waitForPageLoad stepKey="waitForPageLoad1"/>
88-
<!--Verify Save&Duplicate button and Save&Close button-->
89-
<click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn1" />
90-
<see selector="{{CmsNewPagePageActionsSection.saveAndDuplicate}}" userInput="Save &amp; Duplicate" stepKey="seeSaveAndDuplicate"/>
91-
<see selector="{{CmsNewPagePageActionsSection.saveAndClose}}" userInput="Save &amp; Close" stepKey="seeSaveAndClose"/>
92-
<!--Create new CMS Page page-->
93-
<actionGroup ref="FillOutCMSPageContent" stepKey="FillOutBlockContent"/>
94-
<click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn2" />
95-
<click selector="{{CmsNewPagePageActionsSection.saveAndDuplicate}}" stepKey="clickSaveAndDuplicate" />
96-
<waitForPageLoad stepKey="waitForPageLoad3"/>
97-
<see userInput="You saved the page." stepKey="seeSavedPageMsgOnForm"/>
98-
<see userInput="You duplicated the page." stepKey="seeDuplicatedPageMsg"/>
99-
<!--Verify duplicated CMS Page-->
100-
<seeElement selector="{{BlockNewPageBasicFieldsSection.isActive('0')}}" stepKey="seeBlockNotEnable" />
101-
<actionGroup ref="AssertCMSPageContentActionGroup" stepKey="assertContent"/>
102-
<click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn3" />
103-
<click selector="{{CmsNewPagePageActionsSection.saveAndClose}}" stepKey="clickSaveAndClose"/>
104-
<see userInput="You saved the page." stepKey="seeSavedCMSPageMsgOnGrid"/>
105-
<seeElement selector="div[data-role='grid-wrapper']" stepKey="seeGridPage" />
106-
</test>
10736
</tests>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="AdminCreateDuplicatedCmsPageTest">
12+
<annotations>
13+
<features value="Cms"/>
14+
<stories value="CMS Page Duplication and Reset Removal MAGETWO-87096"/>
15+
<title value="Admin should be able to duplicate a CMS Page"/>
16+
<description value="Admin should be able to duplicate a CMS Page"/>
17+
<severity value="CRITICAL"/>
18+
<testCaseId value="MAGETWO-89184"/>
19+
<group value="Cms"/>
20+
</annotations>
21+
<before>
22+
<actionGroup ref="LoginActionGroup" stepKey="loginGetFromGeneralFile"/>
23+
<actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/>
24+
</before>
25+
<after>
26+
<actionGroup ref="logout" stepKey="logout"/>
27+
</after>
28+
<amOnPage url="{{CmsNewPagePage.url}}" stepKey="amOnPageCreationForm"/>
29+
<waitForPageLoad stepKey="waitForPageLoad1"/>
30+
<!--Verify Save&Duplicate button and Save&Close button-->
31+
<click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn1" />
32+
<see selector="{{CmsNewPagePageActionsSection.saveAndDuplicate}}" userInput="Save &amp; Duplicate" stepKey="seeSaveAndDuplicate"/>
33+
<see selector="{{CmsNewPagePageActionsSection.saveAndClose}}" userInput="Save &amp; Close" stepKey="seeSaveAndClose"/>
34+
<!--Create new CMS Page page-->
35+
<actionGroup ref="FillOutCMSPageContent" stepKey="FillOutBlockContent"/>
36+
<click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn2" />
37+
<click selector="{{CmsNewPagePageActionsSection.saveAndDuplicate}}" stepKey="clickSaveAndDuplicate" />
38+
<waitForPageLoad stepKey="waitForPageLoad3"/>
39+
<see userInput="You saved the page." stepKey="seeSavedPageMsgOnForm"/>
40+
<see userInput="You duplicated the page." stepKey="seeDuplicatedPageMsg"/>
41+
<!--Verify duplicated CMS Page-->
42+
<seeElement selector="{{BlockNewPageBasicFieldsSection.isActive('0')}}" stepKey="seeBlockNotEnable" />
43+
<actionGroup ref="AssertCMSPageContentActionGroup" stepKey="assertContent"/>
44+
<click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn3" />
45+
<click selector="{{CmsNewPagePageActionsSection.saveAndClose}}" stepKey="clickSaveAndClose"/>
46+
<see userInput="You saved the page." stepKey="seeSavedCMSPageMsgOnGrid"/>
47+
<seeElement selector="div[data-role='grid-wrapper']" stepKey="seeGridPage" />
48+
</test>
49+
</tests>

0 commit comments

Comments
 (0)