Skip to content

Commit 353beee

Browse files
Test is moved to seperate file
1 parent 6722577 commit 353beee

File tree

2 files changed

+41
-30
lines changed

2 files changed

+41
-30
lines changed

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

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,4 @@
4242
<actionGroup ref="SaveAndCloseCMSBlockWithSplitButtonActionGroup" stepKey="saveAndCloseAction" />
4343
<seeElement selector="div[data-role='grid-wrapper']" stepKey="seeGridPage" />
4444
</test>
45-
<test name="AdminCreateCmsBlockWithMarginalSpaceTest">
46-
<annotations>
47-
<features value="Cms"/>
48-
<stories value="CMS Block Identifier with marginal space"/>
49-
<title value="Admin can not able create a CMS block with marginal space in identifier field"/>
50-
<description value="Admin can not able create a CMS block with marginal space in identifier field"/>
51-
<severity value="CRITICAL"/>
52-
<group value="Cms"/>
53-
</annotations>
54-
<before>
55-
<actionGroup ref="LoginActionGroup" stepKey="loginGetFromGeneralFile"/>
56-
<actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/>
57-
</before>
58-
<amOnPage url="{{CmsNewBlock.url}}" stepKey="amOnBlocksCreationForm"/>
59-
<waitForPageLoad stepKey="waitForPageLoad1"/>
60-
<!--Verify Save&Duplicate button and Save&Close button-->
61-
<click selector="{{BlockNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn1" />
62-
<see selector="{{BlockNewPagePageActionsSection.saveAndDuplicate}}" userInput="Save &amp; Duplicate" stepKey="seeSaveAndDuplicate"/>
63-
<see selector="{{BlockNewPagePageActionsSection.saveAndClose}}" userInput="Save &amp; Close" stepKey="seeSaveAndClose"/>
64-
<!--Create new CMS Block page with marginal space in identifier field-->
65-
<actionGroup ref="AdminFillCmsBlockFormActionGroup" stepKey="FillOutBlockContent">
66-
<argument name="cmsBlockDataTitle" value="Default Block" />
67-
<argument name="cmsBlockDataIdentifier" value=" block " />
68-
<argument name="cmsBlockDataContent" value="Here is a block test. Yeah!" />
69-
</actionGroup>
70-
<click selector="{{BlockNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn2" />
71-
<click selector="{{BlockNewPagePageActionsSection.saveAndClose}}" stepKey="clicksaveAndClose" />
72-
<waitForPageLoad stepKey="waitForPageLoad3"/>
73-
<see userInput="No marginal white space please" stepKey="seeNoMarginalSpaceMsgOnIdentifierField"/>
74-
</test>
7545
</tests>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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="AdminCreateCmsBlockWithMarginalSpaceTest">
12+
<annotations>
13+
<features value="Cms"/>
14+
<stories value="CMS Block Identifier with marginal space"/>
15+
<title value="Admin can not able create a CMS block with marginal space in identifier field"/>
16+
<description value="Admin can not able create a CMS block with marginal space in identifier field"/>
17+
<severity value="CRITICAL"/>
18+
<group value="Cms"/>
19+
</annotations>
20+
<before>
21+
<actionGroup ref="LoginActionGroup" stepKey="loginGetFromGeneralFile"/>
22+
<actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/>
23+
</before>
24+
<amOnPage url="{{CmsNewBlock.url}}" stepKey="amOnBlocksCreationForm"/>
25+
<waitForPageLoad stepKey="waitForPageLoad1"/>
26+
<!--Verify Save&Duplicate button and Save&Close button-->
27+
<click selector="{{BlockNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn1" />
28+
<see selector="{{BlockNewPagePageActionsSection.saveAndDuplicate}}" userInput="Save &amp; Duplicate" stepKey="seeSaveAndDuplicate"/>
29+
<see selector="{{BlockNewPagePageActionsSection.saveAndClose}}" userInput="Save &amp; Close" stepKey="seeSaveAndClose"/>
30+
<!--Create new CMS Block page with marginal space in identifier field-->
31+
<actionGroup ref="AdminFillCmsBlockFormActionGroup" stepKey="FillOutBlockContent">
32+
<argument name="cmsBlockDataTitle" value="Default Block" />
33+
<argument name="cmsBlockDataIdentifier" value=" block " />
34+
<argument name="cmsBlockDataContent" value="Here is a block test. Yeah!" />
35+
</actionGroup>
36+
<click selector="{{BlockNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn2" />
37+
<click selector="{{BlockNewPagePageActionsSection.saveAndClose}}" stepKey="clicksaveAndClose" />
38+
<waitForPageLoad stepKey="waitForPageLoad3"/>
39+
<see userInput="No marginal white space please" stepKey="seeNoMarginalSpaceMsgOnIdentifierField"/>
40+
</test>
41+
</tests>

0 commit comments

Comments
 (0)