Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
tests
app
Magento
Cms
Test
Block
Adminhtml
Block
CmsGrid.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Cms\Test\Block\Adminhtml\Block
;
8
9
use Magento\Mtf\Client\Element\SimpleElement;
10
use
Magento\Ui\Test\Block\Adminhtml\DataGrid
;
11
15
class
CmsGrid
extends
DataGrid
16
{
22
protected
$selectAction
=
'.action-select'
;
23
29
protected
$filters
= [
30
'block_id_from'
=> [
31
'selector'
=>
'[name="block_id[from]"]'
,
32
],
33
'block_id_to'
=> [
34
'selector'
=>
'[name="block_id[to]"]'
,
35
],
36
'title'
=> [
37
'selector'
=>
'[name="title"]'
,
38
],
39
'identifier'
=> [
40
'selector'
=>
'[name="identifier"]'
,
41
],
42
'store_id'
=> [
43
'selector'
=>
'[name="store_id"]'
,
44
'input'
=>
'simplifiedselect'
45
],
46
'is_active'
=> [
47
'selector'
=>
'//label[span[text()="Status"]]/following-sibling::div'
,
48
'strategy'
=>
'xpath'
,
49
'input'
=>
'dropdownmultiselect'
,
50
],
51
'creation_time_from'
=> [
52
'selector'
=>
'[name="creation_time[from]"]'
,
53
],
54
'creation_time_to'
=> [
55
'selector'
=>
'[name="creation_time[to]"]'
,
56
],
57
'update_time_from'
=> [
58
'selector'
=>
'[name="update_time[from]"]'
,
59
],
60
'update_time_to'
=> [
61
'selector'
=>
'[name="update_time[to]"]'
,
62
],
63
];
64
71
protected
function
clickEditLink
(SimpleElement
$rowItem
)
72
{
73
$rowItem
->find($this->
selectAction
)->click();
74
$rowItem->find($this->editLink)->click();
75
}
76
}
Magento\Cms\Test\Block\Adminhtml\Block\CmsGrid\$selectAction
$selectAction
Definition:
CmsGrid.php:22
Magento\Ui\Test\Block\Adminhtml\DataGrid\selectAction
selectAction($action)
Definition:
DataGrid.php:340
Magento\Backend\Test\Block\Widget\Grid\$rowItem
$rowItem
Definition:
Grid.php:56
Magento\Cms\Test\Block\Adminhtml\Block\CmsGrid
Definition:
CmsGrid.php:15
Magento\Cms\Test\Block\Adminhtml\Block
Definition:
CmsGrid.php:7
Magento\Cms\Test\Block\Adminhtml\Block\CmsGrid\$filters
$filters
Definition:
CmsGrid.php:29
Magento\Cms\Test\Block\Adminhtml\Block\CmsGrid\clickEditLink
clickEditLink(SimpleElement $rowItem)
Definition:
CmsGrid.php:71
Magento\Ui\Test\Block\Adminhtml\DataGrid
Definition:
DataGrid.php:18