コード例 #1
0
ファイル: Grid.php プロジェクト: whoople/magento2-testing
 /**
  * Check if specific row exists in grid.
  *
  * @param array $filter
  * @param bool $isSearchable
  * @param bool $isStrict
  * @return bool
  */
 public function isRowVisible(array $filter, $isSearchable = true, $isStrict = true)
 {
     if (isset($filter['options'])) {
         unset($filter['options']);
     }
     return parent::isRowVisible($filter, $isSearchable, $isStrict);
 }
コード例 #2
0
ファイル: Grid.php プロジェクト: aiesh/magento2
 /**
  * @param array $filter
  */
 public function searchAndSelect(array $filter)
 {
     $element = $this->_rootElement;
     $resetButton = $this->resetButton;
     $this->_rootElement->waitUntil(function () use($element, $resetButton) {
         return $element->find($resetButton)->isVisible() ? true : null;
     });
     parent::searchAndSelect($filter);
 }
コード例 #3
0
ファイル: DataGrid.php プロジェクト: rafaelstz/magento2
 /**
  * Search item using Data Grid Filter.
  *
  * @param array $filter
  * @return void
  */
 public function search(array $filter)
 {
     $this->openFilterBlock();
     parent::search($filter);
     $this->waitForElementNotVisible($this->searchButton);
     $this->waitLoader();
 }
コード例 #4
0
ファイル: Catalog.php プロジェクト: andrewhowdencom/m2onk8s
 /**
  * Check if specific row exists in grid.
  *
  * @param array $filter
  * @param bool $isSearchable
  * @param bool $isStrict
  * @return bool
  */
 public function isRowVisible(array $filter, $isSearchable = true, $isStrict = true)
 {
     $this->search(['name' => $filter['name']]);
     return parent::isRowVisible($filter, $isSearchable, $isStrict);
 }
コード例 #5
0
ファイル: Grid.php プロジェクト: aiesh/magento2
 /**
  * Initialize block elements
  */
 protected function _init()
 {
     parent::_init();
     $this->selectItem = "[data-column=entity_id] input";
 }
コード例 #6
0
ファイル: DataGrid.php プロジェクト: nja78/magento2
 /**
  * Search item using Data Grid Filter.
  *
  * @param array $filter
  * @return void
  */
 public function search(array $filter)
 {
     $this->openFilterBlock();
     parent::search($filter);
 }
コード例 #7
0
ファイル: Customer.php プロジェクト: andrewhowdencom/m2onk8s
 /**
  * Search item and open it.
  *
  * @param array $filter
  * @return void
  */
 public function searchAndOpen(array $filter)
 {
     parent::searchAndOpen($filter);
     $this->getTemplateBlock()->waitLoader();
 }
コード例 #8
0
ファイル: Grid.php プロジェクト: aiesh/magento2
 /**
  * Check if specific row exists in grid
  *
  * @param array $filter
  * @param bool $isSearchable
  * @param bool $isStrict
  * @return bool
  */
 public function isRowVisible(array $filter, $isSearchable = false, $isStrict = true)
 {
     $this->search(array('code' => $filter['code']));
     return parent::isRowVisible($filter, $isSearchable);
 }