/**
  * @Then the product named :productName should be in the items list
  */
 public function theProductShouldBeInTheItemsList($productName)
 {
     Assert::true($this->orderShowPage->isProductInTheList($productName), sprintf('Product %s is not in the item list.', $productName));
 }
Exemple #2
0
 /**
  * @Then I should see :provinceName as province in the billing address
  */
 public function iShouldSeeAsProvinceInTheBillingAddress($provinceName)
 {
     Assert::true($this->orderShowPage->hasBillingProvinceName($provinceName), sprintf('Cannot find shipping address with province %s', $provinceName));
 }
 /**
  * @Then I should see :itemPrice as item price
  */
 public function iShouldSeeAsItemPrice($itemPrice)
 {
     Assert::same($this->orderShowPage->getItemPrice(), $itemPrice, 'Item price is %s, but should be %s.');
 }