/** * @Then I should be notified that a percentage discount value must be at least 0% */ public function iShouldBeNotifiedThatAPercentageDiscountValueMustBeAtLeast0() { Assert::same($this->createPage->getValidationMessageForAction(), 'The value of a percentage discount must be at least 0%.'); }
/** * @Then I should be notified that promotion with this code already exists */ public function iShouldBeNotifiedThatPromotionWithThisCodeAlreadyExists() { Assert::same($this->createPage->getValidationMessage('code'), 'The promotion with given code already exists.'); }
/** * @When I specify that this action should be applied to the :productName product */ public function iSpecifyThatThisActionShouldBeAppliedToTheProduct($productName) { $this->createPage->selectFilterOption('Products filter', $productName); }
/** * @Then I should be notified that promotion with this code already exists */ public function iShouldBeNotifiedThatPromotionWithThisCodeAlreadyExists() { Assert::true($this->createPage->checkValidationMessageFor('code', 'The promotion with given code already exists.'), 'Unique code violation message should appear on page, but it does not.'); }