/** * Test create tax rule. * * @param TaxRule $taxRule * @return void */ public function test(TaxRule $taxRule) { // Steps $this->taxRuleIndexPage->open(); $this->taxRuleIndexPage->getPageActionsBlock()->addNew(); $this->taxRuleNewPage->getTaxRuleForm()->fill($taxRule); $this->taxRuleNewPage->getFormPageActions()->save(); }
/** * Delete all Tax Rules on backend. * * @return array */ public function run() { $this->taxRuleIndexPage->open(); $this->taxRuleIndexPage->getTaxRuleGrid()->resetFilter(); while ($this->taxRuleIndexPage->getTaxRuleGrid()->isFirstRowVisible()) { $this->taxRuleIndexPage->getTaxRuleGrid()->openFirstRow(); $this->taxRuleNewPage->getFormPageActions()->delete(); } }