|
49 | 49 | <see userInput="You saved the block." stepKey="seeSavedBlockMsgOnGrid"/>
|
50 | 50 | <seeElement selector="div[data-role='grid-wrapper']" stepKey="seeGridPage" />
|
51 | 51 | </test>
|
| 52 | + <test name="AdminCreateCmsBlockWithMarginalSpaceTest"> |
| 53 | + <annotations> |
| 54 | + <features value="Cms"/> |
| 55 | + <stories value="CMS Block Identifier with marginal space"/> |
| 56 | + <title value="Admin can not able create a CMS block with marginal space in identifier field"/> |
| 57 | + <description value="Admin can not able create a CMS block with marginal space in identifier field"/> |
| 58 | + <severity value="CRITICAL"/> |
| 59 | + <group value="Cms"/> |
| 60 | + </annotations> |
| 61 | + <before> |
| 62 | + <actionGroup ref="LoginActionGroup" stepKey="loginGetFromGeneralFile"/> |
| 63 | + <actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/> |
| 64 | + </before> |
| 65 | + <amOnPage url="{{CmsNewBlock.url}}" stepKey="amOnBlocksCreationForm"/> |
| 66 | + <waitForPageLoad stepKey="waitForPageLoad1"/> |
| 67 | + <!--Verify Save&Duplicate button and Save&Close button--> |
| 68 | + <click selector="{{BlockNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn1" /> |
| 69 | + <see selector="{{BlockNewPagePageActionsSection.saveAndDuplicate}}" userInput="Save & Duplicate" stepKey="seeSaveAndDuplicate"/> |
| 70 | + <see selector="{{BlockNewPagePageActionsSection.saveAndClose}}" userInput="Save & Close" stepKey="seeSaveAndClose"/> |
| 71 | + <!--Create new CMS Block page with marginal space in identifier field--> |
| 72 | + <actionGroup ref="AdminFillCmsBlockFormActionGroup" stepKey="FillOutBlockContent"> |
| 73 | + <argument name="cmsBlockDataTitle" value="Default Block" /> |
| 74 | + <argument name="cmsBlockDataIdentifier" value=" block " /> |
| 75 | + <argument name="cmsBlockDataContent" value="Here is a block test. Yeah!" /> |
| 76 | + </actionGroup> |
| 77 | + <click selector="{{BlockNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn2" /> |
| 78 | + <click selector="{{BlockNewPagePageActionsSection.saveAndClose}}" stepKey="clicksaveAndClose" /> |
| 79 | + <waitForPageLoad stepKey="waitForPageLoad3"/> |
| 80 | + <see userInput="No marginal white space please" stepKey="seeNoMarginalSpaceMsgOnIdentifierField"/> |
| 81 | + </test> |
52 | 82 | </tests>
|
0 commit comments