/** * @Then this item should have variant :variantName */ public function thisItemShouldHaveVariant($variantName) { Assert::true($this->summaryPage->hasItemWithVariantNamed($variantName), sprintf('The product with variant %s should appear on the list, but it does not.', $variantName)); }