Skip to content

Commit b48baca

Browse files
author
Stas Puga
committed
MC-3269: Admin should be able to create Single Future Update with no end date from CMS Block Page
1 parent 3495a05 commit b48baca

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="AdminOpenCmsBlockActionGroup">
11+
<arguments>
12+
<argument name="block_id" type="string"/>
13+
</arguments>
14+
<amOnPage url="{{AdminEditBlockPage.url(block_id)}}" stepKey="openEditCmsBlock"/>
15+
</actionGroup>
16+
</actionGroups>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
1111
<entity name="_defaultBlock" type="block">
12-
<data key="title">Default Block</data>
12+
<data key="title" unique="suffix">Default Block</data>
1313
<data key="identifier" unique="suffix" >block</data>
1414
<data key="content">Here is a block test. Yeah!</data>
1515
<data key="active">true</data>

app/code/Magento/Cms/Test/Mftf/Page/AdminCmsEditBlockPage.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
11-
<page name="AdminEditBlockPage" url="cms/block/edit/block_id" area="admin" module="Magento_Cms">
11+
<page name="AdminEditBlockPage" url="cms/block/edit/block_id/{{id}}" area="admin" module="Magento_Cms" parameterized="true">
1212
<section name="AdminUpdateBlockSection"/>
1313
</page>
1414
</pages>

0 commit comments

Comments
 (0)