Sylius/features/admin/taxonomy/managing_taxons/reordering_taxon.feature
Jacob Tobiasz 60192b8807
Reorganize scenarios in the features/ directory
(cherry picked from commit 42598c52ae)
2024-01-11 17:27:04 +01:00

48 lines
1.9 KiB
Gherkin

@managing_taxons
Feature: Reordering taxons
In order to see all ordered taxons in the store
As an Administrator
I want to browse ordered taxons
Background:
Given the store classifies its products as "T-Shirts", "Watches", "Belts" and "Wallets"
And I am logged in as an administrator
@ui @javascript @no-api
Scenario: Moving up the taxon on list
When I want to see all taxons in store
And I move up "Watches" taxon
Then I should see 4 taxons on the list
And I should see the taxon named "T-Shirts" in the list
But the first taxon on the list should be "Watches"
@ui @javascript @no-api
Scenario: Moving down the taxon on list
When I want to see all taxons in store
And I move down "T-Shirts" taxon
Then I should see 4 taxons on the list
And I should see the taxon named "Watches" in the list
But the first taxon on the list should be "Watches"
@ui @javascript @no-api
Scenario: Moving up the first taxon on list
When I want to see all taxons in store
And I move up "T-Shirts" taxon
Then I should see 4 taxons on the list
And the first taxon on the list should be "T-Shirts"
@ui @javascript @no-api
Scenario: Moving down the last taxon on list
When I want to see all taxons in store
And I move down "Wallets" taxon
Then I should see 4 taxons on the list
And the last taxon on the list should be "Wallets"
@ui @javascript @no-api @todo
Scenario: Changing order of the taxon on list
When I want to see all taxons in store
And I move down "T-Shirts" taxon
And I move down "Belts" taxon
And I move up "Wallets" taxon
Then I should see 4 taxons on the list
And they should have order like "Watches", "Wallets", "T-Shirts" and "Belts"