/** * @Then /^I should see "([^"]+)" with quantity (\d+) in my cart$/ */ public function iShouldSeeWithQuantityInMyCart($productName, $quantity) { Assert::same($this->summaryPage->getQuantity($productName), $quantity, 'The quantity of product should be %2$s, but it is %s'); }
/** * @Then my cart's total should be :total */ public function myCartSTotalShouldBe($total) { Assert::same($total, $this->summaryPage->getCartTotal(), 'Cart should have %s total, but it has %2$s.'); }
/** * @Then total price of :productName item should be :productPrice */ public function thisItemPriceShouldBe($productName, $productPrice) { $this->summaryPage->open(); Assert::same($this->summaryPage->getItemTotal($productName), $productPrice); }