@@ -52,8 +52,9 @@ public function __construct(
5252
5353 /**
5454 * @When /^I see the summary of my (?:|previous )cart$/
55+ * @When /^I check details of my cart$/
5556 */
56- public function iOpenCartSummaryPage ()
57+ public function iOpenCartSummaryPage (): void
5758 {
5859 $ this ->summaryPage ->open ();
5960 }
@@ -408,13 +409,30 @@ public function iShouldSeeWithQuantityInMyCart($productName, $quantity)
408409 }
409410
410411 /**
411- * @Then /^I should see "([^"]+)" with unit price ("[^"]+") in my cart$/
412+ * @Then /^I should see(?:| also) "([^"]+)" with unit price ("[^"]+") in my cart$/
412413 */
413- public function iShouldSeeProductWithUnitPriceInMyCart ($ productName , $ unitPrice )
414+ public function iShouldSeeProductWithUnitPriceInMyCart ($ productName , $ unitPrice ): void
414415 {
415416 Assert::same ($ this ->summaryPage ->getItemUnitPrice ($ productName ), $ unitPrice );
416417 }
417418
419+ /**
420+ * @Then /^I should see "([^"]+)" with original price ("[^"]+") in my cart$/
421+ */
422+ public function iShouldSeeWithOriginalPriceInMyCart (string $ productName , int $ originalPrice ): void
423+ {
424+ Assert::same ($ this ->summaryPage ->getItemUnitRegularPrice ($ productName ), $ originalPrice );
425+ }
426+
427+ /**
428+ * @Then /^I should see "([^"]+)" only with unit price ("[^"]+") in my cart$/
429+ */
430+ public function iShouldSeeOnlyWithUnitPriceInMyCart (string $ productName , int $ unitPrice ): void
431+ {
432+ $ this ->iShouldSeeProductWithUnitPriceInMyCart ($ productName , $ unitPrice );
433+ Assert::false ($ this ->summaryPage ->hasOriginalPrice ($ productName ));
434+ }
435+
418436 /**
419437 * @Given I use coupon with code :couponCode
420438 */
0 commit comments