/**
  * Run create search term test.
  *
  * @param CatalogSearchQuery $searchTerm
  * @return void
  */
 public function test(CatalogSearchQuery $searchTerm)
 {
     // Steps
     $this->indexPage->open();
     $this->indexPage->getGridPageActions()->addNew();
     $this->editPage->getForm()->fill($searchTerm);
     $this->editPage->getFormPageActions()->save();
 }
 /**
  * Run delete search term entity test
  *
  * @param CatalogSearchQuery $searchTerm
  * @return void
  */
 public function test(CatalogSearchQuery $searchTerm)
 {
     // Preconditions
     $searchTerm->persist();
     $searchText = $searchTerm->getQueryText();
     // Steps
     $this->indexPage->open();
     $this->indexPage->getGrid()->searchAndOpen(['search_query' => $searchText]);
     $this->editPage->getFormPageActions()->delete();
 }
 /**
  * Run update search term test.
  *
  * @param CatalogSearchQuery $searchTerm
  * @return void
  */
 public function test(CatalogSearchQuery $searchTerm)
 {
     // Preconditions
     $searchText = $searchTerm->getQueryText();
     // Steps
     $this->cmsIndex->open()->getSearchBlock()->search($searchText);
     $this->indexPage->open()->getGrid()->searchAndOpen(['search_query' => $searchText]);
     $this->editPage->getForm()->fill($searchTerm);
     $this->editPage->getFormPageActions()->save();
 }
Пример #4
0
 /**
  * Run create search term test
  *
  * @param CatalogSearchQuery $searchTerm
  * @return void
  */
 public function test(CatalogSearchQuery $searchTerm)
 {
     $this->markTestIncomplete('MAGETWO-26170');
     // Steps
     $this->indexPage->open();
     $this->indexPage->getGridPageActions()->addNew();
     $this->editPage->getForm()->fill($searchTerm);
     $this->editPage->getFormPageActions()->save();
 }