public waitForValidationErrors ( integer $timeout ) | ||
$timeout | integer |
/** * @Then /^I should be notified that (this product) does not have sufficient stock$/ */ public function iShouldBeNotifiedThatThisProductDoesNotHaveSufficientStock(ProductInterface $product) { $this->showPage->waitForValidationErrors(3); Assert::true($this->showPage->hasProductOutOfStockValidationMessage($product), sprintf('I should see validation message for %s product', $product->getName())); }