Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CustomerGroupGrid.php
Go to the documentation of this file.
1 <?php
8 
9 use \Magento\Ui\Test\Block\Adminhtml\DataGrid;
10 use Magento\Mtf\Client\Element\SimpleElement;
11 
17 {
23  protected $selectAction = '.action-select';
24 
30  protected $filters = [
31  'code' => [
32  'selector' => '.admin__data-grid-filters input[name*=customer_group_code]',
33  ],
34  'tax_class_id' => [
35  'selector' => '.admin__data-grid-filters select[name*=tax_class_id]',
36  'input' => 'select'
37  ],
38  ];
39 
46  protected function clickEditLink(SimpleElement $rowItem)
47  {
48  if ($rowItem->find($this->selectAction)->isVisible()) {
49  $rowItem->find($this->selectAction)->click();
50  }
51  $rowItem->find($this->editLink)->click();
52  }
53 }