forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewing_only_taxons_from_menu_taxon.feature
38 lines (34 loc) · 1.81 KB
/
viewing_only_taxons_from_menu_taxon.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@homepage
Feature: Viewing only taxons from the menu taxon
In order to be able to browse only products from the correct taxon
As a Visitor
I want to see taxon list based on the current channel's menu taxon
Background:
Given the store operates on a single channel in "United States"
And the store classifies its products as "Category", "Clothes" and "Guns"
And the "Category" taxon has children taxons "Pens" and "Pencils"
And the "Clothes" taxon has children taxons "T-Shirts" and "Caps"
And the "Guns" taxon has children taxons "Rifles" and "Revolvers"
@ui @api
Scenario: Viewing taxons list only from the channel menu taxon
Given this channel has menu taxon "Guns"
When I check available taxons
Then I should see "Rifles" and "Revolvers" in the menu
And I should not see "Pens" and "Pencils" in the menu
And I should not see "T-Shirts" and "Caps" in the menu
@ui @api
Scenario: Using general taxon if channel does not have a menu taxon specified
When I check available taxons
Then I should see "Pens" and "Pencils" in the menu
And I should not see "T-Shirts" and "Guns" in the menu
And I should not see "Rifles" and "Revolvers" in the menu
@ui @api
Scenario: Seeing correct taxons after switching the channel
Given the store also operates on a channel named "Poland" with hostname "pl.store.com"
And channel "United States" has menu taxon "Guns"
And channel "Poland" has menu taxon "Clothes"
When I change my current channel to "Poland"
And I check available taxons
Then I should see "T-Shirts" and "Caps" in the menu
And I should not see "Rifles" and "Revolvers" in the menu
And I should not see "Pens" and "Pencils" in the menu