Skip to content

Commit c495390

Browse files
author
Bohdan Shevchenko
committed
MC-37540: Create automated test for "[CMS Grids] Use quick search in Admin data grids"
1 parent 68315a2 commit c495390

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<data key="content">sales25off everything!</data>
1616
<data key="is_active">0</data>
1717
</entity>
18-
<entity name="TestBlock" type="block">
18+
<entity name="ActiveTestBlock" type="block">
1919
<data key="title" unique="suffix">Test Block</data>
20-
<data key="identifier" unique="suffix">TestBlock</data>
20+
<data key="identifier" unique="suffix">ActiveTestBlock</data>
2121
<data key="store_id">All Store Views</data>
2222
<data key="content">Test Block content</data>
2323
<data key="is_active">1</data>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<createData entity="_newDefaultCmsPage" stepKey="createSecondCMSPage" />
2424
<createData entity="_emptyCmsPage" stepKey="createThirdCMSPage" />
2525
<createData entity="Sales25offBlock" stepKey="createFirstCmsBlock"/>
26-
<createData entity="TestBlock" stepKey="createSecondCmsBlock"/>
26+
<createData entity="ActiveTestBlock" stepKey="createSecondCmsBlock"/>
2727
<createData entity="_emptyCmsBlock" stepKey="createThirdCmsBlock"/>
2828
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2929
</before>

app/code/Magento/Ui/Test/Mftf/Section/AdminGridControlsSection/AdminGridHeadersSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<element name="title" type="text" selector=".page-title-wrapper h1"/>
1212
<element name="headerByName" type="text" selector="//div[@data-role='grid-wrapper']//span[@class='data-grid-cell-content' and contains(text(), '{{var1}}')]/parent::*" parameterized="true"/>
1313
<element name="columnsNames" type="text" selector="[data-role='grid-wrapper'] .data-grid-th &gt; span"/>
14-
<element name="totalRecords" type="text" selector="div.admin__data-grid-header-row .row>div:nth-child(1)"/>
14+
<element name="totalRecords" type="text" selector="div.admin__data-grid-header-row.row.row-gutter div.row div.admin__control-support-text"/>
1515
</section>
1616
</sections>

0 commit comments

Comments
 (0)