1 | <?php |
||
33 | final class ProductShowPageContext implements Context |
||
34 | { |
||
35 | /** @var IndexPageInterface */ |
||
36 | private $indexPage; |
||
37 | |||
38 | /** @var ShowPageInterface */ |
||
39 | private $productShowPage; |
||
40 | |||
41 | /** @var AssociationsElementInterface */ |
||
42 | private $associationsElement; |
||
43 | |||
44 | /** @var AttributesElementInterface */ |
||
45 | private $attributesElement; |
||
46 | |||
47 | /** @var DetailsElementInterface */ |
||
48 | private $detailsElement; |
||
49 | |||
50 | /** @var MediaElementInterface */ |
||
51 | private $mediaElement; |
||
52 | |||
53 | /** @var MoreDetailsElementInterface */ |
||
54 | private $moreDetailsElement; |
||
55 | |||
56 | /** @var PricingElementInterface */ |
||
57 | private $pricingElement; |
||
58 | |||
59 | /** @var ShippingElementInterface */ |
||
60 | private $shippingElement; |
||
61 | |||
62 | /** @var TaxonomyElementInterface */ |
||
63 | private $taxonomyElement; |
||
64 | |||
65 | /** @var OptionsElementInterface */ |
||
66 | private $optionsElement; |
||
67 | |||
68 | /** @var VariantsElementInterface */ |
||
69 | private $variantsElement; |
||
70 | |||
71 | public function __construct( |
||
98 | |||
99 | /** |
||
100 | * @Given I am browsing products |
||
101 | */ |
||
102 | public function iAmBrowsingProducts(): void |
||
106 | |||
107 | /** |
||
108 | * @When I access :product product page |
||
109 | */ |
||
110 | public function iAccessProductPage(ProductInterface $product): void |
||
114 | |||
115 | /** |
||
116 | * @When I show this product in the :channel channel |
||
117 | */ |
||
118 | public function iShowThisProductInTheChannel(string $channel): void |
||
122 | |||
123 | /** |
||
124 | * @When I show this product in this channel |
||
125 | */ |
||
126 | public function iShowThisProductInThisChannel(): void |
||
130 | |||
131 | /** |
||
132 | * @When I go to edit page |
||
133 | */ |
||
134 | public function iGoToEditPage(): void |
||
138 | |||
139 | /** |
||
140 | * @When I go to edit page of :variant variant |
||
141 | */ |
||
142 | public function iGoToEditPageOfVariant(ProductVariantInterface $variant): void |
||
146 | |||
147 | /** |
||
148 | * @Then I should see this product's product page |
||
149 | */ |
||
150 | public function iShouldSeeThisProductPage(ProductInterface $product): void |
||
154 | |||
155 | /** |
||
156 | * @Then I should see product show page without variants |
||
157 | */ |
||
158 | public function iShouldSeeProductShowPageWithoutVariants(): void |
||
162 | |||
163 | /** |
||
164 | * @Then I should see product show page with variants |
||
165 | */ |
||
166 | public function iShouldSeeProductShowPageWithVariants(): void |
||
170 | |||
171 | /** |
||
172 | * @Then I should see product name :productName |
||
173 | */ |
||
174 | public function iShouldSeeProductName(string $productName): void |
||
178 | |||
179 | /** |
||
180 | * @Then I should see price :price for channel :channelName |
||
181 | */ |
||
182 | public function iShouldSeePriceForChannel(string $price, string $channelName): void |
||
186 | |||
187 | /** |
||
188 | * @Then I should not see price for channel :channelName |
||
189 | */ |
||
190 | public function iShouldNotSeePriceForChannel(string $channelName): void |
||
194 | |||
195 | /** |
||
196 | * @Then I should see original price :price for channel :channelName |
||
197 | */ |
||
198 | public function iShouldSeeOrginalPriceForChannel(string $orginalPrice, string $channelName): void |
||
202 | |||
203 | /** |
||
204 | * @Then I should see product's code is :code |
||
205 | */ |
||
206 | public function iShouldSeeProductCodeIs(string $code): void |
||
210 | |||
211 | /** |
||
212 | * @Then I should see the product is enabled for channel :channel |
||
213 | */ |
||
214 | public function iShouldSeeProductIsEnabledForChannels(string $channel): void |
||
218 | |||
219 | /** |
||
220 | * @Then I should see the product in neither channel |
||
221 | */ |
||
222 | public function iShouldSeeTheProductInNeitherChannel(): void |
||
226 | |||
227 | /** |
||
228 | * @Then I should see :currentStock as a current stock of this product |
||
229 | */ |
||
230 | public function iShouldSeeAsACurrentStockOfThisProduct(int $currentStock): void |
||
234 | |||
235 | /** |
||
236 | * @Then I should see product's tax category is :taxCategory |
||
237 | */ |
||
238 | public function iShouldSeeProductTaxCategoryIs(string $taxCategory): void |
||
242 | |||
243 | /** |
||
244 | * @Then I should see main taxon is :mainTaxonName |
||
245 | */ |
||
246 | public function iShouldSeeMainTaxonIs(string $mainTaxonName): void |
||
250 | |||
251 | /** |
||
252 | * @Then I should see product taxon is :taxonName |
||
253 | */ |
||
254 | public function iShouldSeeProductTaxonIs(string $taxonName): void |
||
258 | |||
259 | /** |
||
260 | * @Then I should see product's shipping category is :shippingCategory |
||
261 | */ |
||
262 | public function iShouldSeeProductShippingCategoryIs(string $shippingCategory): void |
||
266 | |||
267 | /** |
||
268 | * @Then I should see product's width is :width |
||
269 | */ |
||
270 | public function iShouldSeeProductWidthIs(float $width): void |
||
274 | |||
275 | /** |
||
276 | * @Then I should see product's height is :height |
||
277 | */ |
||
278 | public function iShouldSeeProductHeightIs(float $height): void |
||
282 | |||
283 | /** |
||
284 | * @Then I should see product's depth is :depth |
||
285 | */ |
||
286 | public function iShouldSeeProductDepthIs(float $depth): void |
||
290 | |||
291 | /** |
||
292 | * @Then I should see product's weight is :weight |
||
293 | */ |
||
294 | public function iShouldSeeProductWeightIs(float $weight): void |
||
298 | |||
299 | /** |
||
300 | * @Then I should see an image related to this product |
||
301 | */ |
||
302 | public function iShouldSeeImageRelatedToThisProduct(): void |
||
306 | |||
307 | /** |
||
308 | * @Then I should see product name is :name |
||
309 | */ |
||
310 | public function iShouldSeeProductNameIs(string $name): void |
||
314 | |||
315 | /** |
||
316 | * @Then I should see product slug is :slug |
||
317 | */ |
||
318 | public function iShouldSeeProductSlugIs(string $slug): void |
||
322 | |||
323 | /** |
||
324 | * @Then I should see product's description is :description |
||
325 | */ |
||
326 | public function iShouldSeeProductSDescriptionIs(string $description): void |
||
330 | |||
331 | /** |
||
332 | * @Then I should see product's meta keyword(s) is/are :metaKeywords |
||
333 | */ |
||
334 | public function iShouldSeeProductMetaKeywordsAre(string $metaKeywords): void |
||
338 | |||
339 | /** |
||
340 | * @Then I should see product's short description is :shortDescription |
||
341 | */ |
||
342 | public function iShouldSeeProductShortDescriptionIs(string $shortDescription): void |
||
346 | |||
347 | /** |
||
348 | * @Then I should see product association :association with :productName |
||
349 | */ |
||
350 | public function iShouldSeeProductAssociationWith(string $association, string $productName): void |
||
354 | |||
355 | /** |
||
356 | * @Then I should see option :optionName |
||
357 | */ |
||
358 | public function iShouldSeeOption(string $optionName): void |
||
362 | |||
363 | /** |
||
364 | * @Then I should see :count variants |
||
365 | */ |
||
366 | public function iShouldSeeVariants(int $count): void |
||
370 | |||
371 | /** |
||
372 | * @Then I should see :variantName variant with code :code, priced :price and current stock :currentStock |
||
373 | */ |
||
374 | public function iShouldSeeVariantWithCodePriceAndCurrentStock(string $variantName, string $code, string $price, string $currentStock): void |
||
378 | |||
379 | /** |
||
380 | * @Then I should see attribute :attribute with value :value in :locale locale |
||
381 | */ |
||
382 | public function iShouldSeeAttributeWithValueInLocale(string $attribute, string $value, string $locale): void |
||
386 | |||
387 | /** |
||
388 | * @Then I should not be able to show this product in shop |
||
389 | */ |
||
390 | public function iShouldNotBeAbleToShowThisProductInShop(): void |
||
394 | } |
||
395 |