Resolve conflicts between 2.0 and bootstrap-admin-panel

This commit is contained in:
Rafikooo 2024-03-08 10:00:12 +01:00
commit 4ce30bf2b6
No known key found for this signature in database
GPG key ID: 4A26D8327BC2442B
1314 changed files with 12912 additions and 9317 deletions

View file

@ -6,6 +6,7 @@ ARG NODE_VERSION=18
ARG ALPINE_VERSION=3.18
ARG COMPOSER_VERSION=2.6
ARG PHP_EXTENSION_INSTALLER_VERSION=latest
ARG DATABASE_URL
FROM composer:${COMPOSER_VERSION} AS composer
@ -13,6 +14,8 @@ FROM mlocati/php-extension-installer:${PHP_EXTENSION_INSTALLER_VERSION} AS php_e
FROM php:${PHP_VERSION}-fpm-alpine${ALPINE_VERSION} AS base
ENV DATABASE_URL=${DATABASE_URL}
# persistent / runtime deps
RUN apk add --no-cache \
acl \
@ -89,20 +92,23 @@ RUN set -eux; \
g++ \
gcc \
make \
git \
;
# prevent the reinstallation of vendors at every changes in the source code
COPY package.json yarn.* ./
RUN set -eux; \
yarn install; \
yarn cache clean
COPY package.json package-*.json ./
COPY --from=base /srv/sylius/src/Sylius/Bundle/UiBundle/Resources/private src/Sylius/Bundle/UiBundle/Resources/private/
COPY --from=base /srv/sylius/src/Sylius/Bundle/AdminBundle/Resources/private src/Sylius/Bundle/AdminBundle/Resources/private/
COPY --from=base /srv/sylius/src/Sylius/Bundle/AdminBundle src/Sylius/Bundle/AdminBundle/
COPY --from=base /srv/sylius/src/Sylius/Bundle/ShopBundle/Resources/private src/Sylius/Bundle/ShopBundle/Resources/private/
COPY --from=base /srv/sylius/vendor/symfony/ux-autocomplete/assets vendor/symfony/ux-autocomplete/assets/
COPY --from=base /srv/sylius/vendor/symfony/ux-live-component/assets vendor/symfony/ux-live-component/assets/
RUN set -eux; \
npm install;
COPY webpack.config.js ./
RUN yarn build:prod
RUN npm run build:prod
FROM base AS sylius_php_prod

View file

@ -43,6 +43,8 @@ components:
context: .
dockerfile: .bunnyshell/docker/php/Dockerfile
target: sylius_php_prod
args:
DATABASE_URL: 'mysql://{{ env.vars.MYSQL_USER }}:{{ env.vars.MYSQL_PASSWORD }}@database/{{ env.vars.MYSQL_DATABASE }}?serverVersion=8.0'
command: php-fpm
entrypoint: /usr/local/bin/php-entrypoint
environment:

View file

@ -60,6 +60,7 @@
"Psr\\Container\\ContainerInterface",
"Psr\\Http\\Message\\RequestFactoryInterface",
"Psr\\Http\\Message\\StreamFactoryInterface",
"Sylius\\Bundle\\UiBundle\\Registry\\TemplateBlockRegistryInterface",
"Symfony\\Component\\Security\\Core\\Encoder\\EncoderFactoryInterface"
],
"php-core-extensions" : [

View file

@ -87,6 +87,7 @@
"sylius/resource": "^1.10",
"sylius/resource-bundle": "^1.10",
"sylius/theme-bundle": "^2.3",
"sylius/twig-hooks": "dev-main",
"symfony/asset": "^6.4.0",
"symfony/clock": "^6.4.0",
"symfony/config": "^6.4.0",
@ -125,15 +126,20 @@
"symfony/security-http": "^6.4.0",
"symfony/serializer": "^6.4.0",
"symfony/service-contracts": "^2.5 || ^3.0",
"symfony/stimulus-bundle": "^2.12",
"symfony/string": "^6.4.0",
"symfony/templating": "^6.4.0",
"symfony/translation": "^6.4.0",
"symfony/translation-contracts": "^2.5.2",
"symfony/twig-bundle": "^6.4.0",
"symfony/ux-autocomplete": "^2.15",
"symfony/ux-live-component": "^2.12",
"symfony/ux-twig-component": "^2.11.2",
"symfony/validator": "^6.4.0",
"symfony/webpack-encore-bundle": "^1.17.1",
"symfony/workflow": "^6.4.0",
"symfony/yaml": "^6.4.0",
"symfonycasts/dynamic-forms": "v0.1.1",
"twig/intl-extra": "^2.12 || ^3.4",
"twig/twig": "^2.12 || ^3.3",
"webmozart/assert": "^1.9",
@ -187,7 +193,8 @@
"conflict": {
"doctrine/orm": ">= 2.16.0",
"lexik/jwt-authentication-bundle": "^2.18",
"stof/doctrine-extensions-bundle": "1.8.0"
"stof/doctrine-extensions-bundle": "1.8.0",
"symfony/ux-live-component": "2.15.0"
},
"require-dev": {
"behat/behat": "^3.6.1",

View file

@ -59,4 +59,9 @@ return [
SyliusLabs\DoctrineMigrationsExtraBundle\SyliusLabsDoctrineMigrationsExtraBundle::class => ['all' => true],
SyliusLabs\Polyfill\Symfony\Security\Bundle\SyliusLabsPolyfillSymfonySecurityBundle::class => ['all' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Symfony\UX\TwigComponent\TwigComponentBundle::class => ['all' => true],
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
Symfony\UX\LiveComponent\LiveComponentBundle::class => ['all' => true],
Sylius\TwigHooks\TwigHooksBundle::class => ['all' => true],
Symfony\UX\Autocomplete\AutocompleteBundle::class => ['all' => true],
];

View file

@ -1,12 +1,12 @@
imports:
- { resource: "@SyliusCoreBundle/Resources/config/app/config.yml" }
- { resource: "@SyliusAdminBundle/Resources/config/app/config.yml" }
- { resource: "@SyliusShopBundle/Resources/config/app/config.yml" }
- { resource: "@SyliusApiBundle/Resources/config/app/config.yaml" }
- { resource: "@SyliusAdminBundle/Resources/config/app/config.yml" }
- { resource: "../parameters.yaml" }
parameters:

View file

@ -0,0 +1,5 @@
live_component:
resource: '@LiveComponentBundle/config/routes.php'
prefix: '/_components'
# adjust prefix to add localization to your components
#prefix: '/{_locale}/_components'

View file

@ -7,7 +7,7 @@ Feature: Adding a new country
Background:
Given I am logged in as an administrator
@ui @api
@api @ui
Scenario: Adding country
When I want to add a new country
And I choose "United States"

View file

@ -7,7 +7,7 @@ Feature: Adding countries with provinces
Background:
Given I am logged in as an administrator
@ui @javascript @api
@api @ui @javascript
Scenario: Adding a country with a province
When I want to add a new country
And I choose "United Kingdom"
@ -17,7 +17,7 @@ Feature: Adding countries with provinces
And the country "United Kingdom" should appear in the store
And the country "United Kingdom" should have the "Scotland" province
@ui @javascript @api
@api @ui @javascript
Scenario: Adding a country with two provinces
When I want to add a new country
And I choose "United Kingdom"

View file

@ -8,7 +8,7 @@ Feature: Country validation
Given the store operates in "Norway"
And I am logged in as an administrator
@ui @api
@api @ui
Scenario: Trying to add a new country with used code
When I want to add a new country
Then I should not be able to choose "Norway"

View file

@ -7,7 +7,7 @@ Feature: Editing country
Background:
Given I am logged in as an administrator
@ui @api
@api @ui
Scenario: Disabling country
Given the store has country "United States"
When I want to edit this country
@ -16,7 +16,7 @@ Feature: Editing country
Then I should be notified that it has been successfully edited
And this country should be disabled
@ui @api
@api @ui
Scenario: Enabling country
Given the store has disabled country "United States"
When I want to edit this country
@ -25,7 +25,7 @@ Feature: Editing country
Then I should be notified that it has been successfully edited
And this country should be enabled
@ui @api
@api @ui
Scenario: Seeing disabled code field while editing country
Given the store has country "United States"
When I want to edit this country

View file

@ -8,7 +8,7 @@ Feature: Managing provinces of a country
Given the store has country "United Kingdom"
And I am logged in as an administrator
@ui @javascript @api
@api @ui @javascript
Scenario: Adding a province to an existing country
When I want to edit this country
And I add the "Scotland" province with "GB-SCT" code
@ -16,7 +16,7 @@ Feature: Managing provinces of a country
Then I should be notified that it has been successfully edited
And this country should have the "Scotland" province
@ui @javascript @api
@api @ui @javascript
Scenario: Removing a province from an existing country
Given this country has the "Northern Ireland" province with "GB-NIR" code
When I want to edit this country
@ -25,7 +25,7 @@ Feature: Managing provinces of a country
Then I should be notified that it has been successfully edited
And this country should not have the "Northern Ireland" province
@ui @javascript @api
@api @ui @javascript
Scenario: Removing a province that is a zone member should not be possible
Given this country has the "Northern Ireland" province with "GB-NIR" code
And this country also has the "Scotland" province with "GB-SCT" code
@ -43,7 +43,7 @@ Feature: Managing provinces of a country
And this country should still have the "Scotland" province
And this country should still have the "England" province
@ui @javascript @api
@api @ui @javascript
Scenario: Removing a province that is not a zone member anymore should be possible
Given this country has the "Northern Ireland" province with "GB-NIR" code
And this country also has the "Scotland" province with "GB-SCT" code
@ -60,18 +60,18 @@ Feature: Managing provinces of a country
And this country should not have the "England" province
And this country should still have the "Northern Ireland" and "Scotland" provinces
@ui @javascript @api
@api @ui @javascript
Scenario: Removing and adding a new province to an existing country
Given this country has the "Northern Ireland" province with "GB-NIR" code
When I want to edit this country
And I delete the "Northern Ireland" province of this country
And I add the "Scotland" province with "GB-SCT" code
And I delete the "Northern Ireland" province of this country
And I save my changes
Then I should be notified that it has been successfully edited
And this country should not have the "Northern Ireland" province
And this country should have the "Scotland" province
@ui @javascript @api
@api @ui @javascript
Scenario: Adding a province with an austrian province code
When I want to edit this country
And I add the "Wien" province with "AT-9" code

View file

@ -9,7 +9,7 @@ Feature: Province unique fields validation
And this country has the "Northern Ireland" province with "GB-NIR" code
And I am logged in as an administrator
@ui @javascript @api
@api @ui @javascript
Scenario: Trying to add a new province with a taken code
When I want to add a new country
And I choose "Gibraltar"
@ -17,14 +17,14 @@ Feature: Province unique fields validation
And I try to add it
Then I should be notified that province code must be unique
@ui @javascript @api
@api @ui @javascript
Scenario: Trying to add a new province with a taken name
When I want to edit this country
And I add the "Northern Ireland" province with "GB-NI" code
And I save my changes
Then I should be notified that province name must be unique
@ui @javascript @api
@api @ui @javascript
Scenario: Trying to add new provinces with duplicated codes
When I want to edit this country
And I add the "Scotland" province with "GB-SCO" code
@ -32,7 +32,7 @@ Feature: Province unique fields validation
And I save my changes
Then I should be notified that all province codes and names within this country need to be unique
@ui @javascript @api
@api @ui @javascript
Scenario: Trying to add new provinces with duplicated names
When I want to edit this country
And I add the "Scotland" province with "GB-SC" code

View file

@ -8,7 +8,7 @@ Feature: Province validation
Given the store has country "United Kingdom"
And I am logged in as an administrator
@ui @javascript @api
@api @ui @javascript
Scenario: Trying to add a new province without specifying its code
When I want to create a new province in country "United Kingdom"
And I name the province "Scotland"
@ -17,7 +17,7 @@ Feature: Province validation
Then I should be notified that code is required
And province with name "Scotland" should not be added in this country
@ui @javascript @api
@api @ui @javascript
Scenario: Trying to add a new province without specifying its name
When I want to create a new province in country "United Kingdom"
And I specify the province code as "GB-SCT"
@ -26,7 +26,7 @@ Feature: Province validation
Then I should be notified that name is required
And province with code "GB-SCT" should not be added in this country
@ui @javascript @api
@api @ui @javascript
Scenario: Trying to remove name from an existing province
Given this country has the "Northern Ireland" province with "GB-NIR" code
When I want to edit this country

View file

@ -12,7 +12,7 @@ Feature: Adding a new zone with country type members
And the store has a zone "North America" with code "NA"
And I am logged in as an administrator
@ui @javascript @api
@todo @ui @javascript @api
Scenario: Adding a zone with a country type member
When I want to create a new zone consisting of country
And I name it "European Union"
@ -22,7 +22,7 @@ Feature: Adding a new zone with country type members
Then I should be notified that it has been successfully created
And the zone named "European Union" with the "France" country member should appear in the registry
@ui @mink:chromedriver @api
@todo @ui @mink:chromedriver @api
Scenario: Adding a zone with province type member
When I want to create a new zone consisting of province
And I name it "United States"
@ -32,7 +32,7 @@ Feature: Adding a new zone with country type members
Then I should be notified that it has been successfully created
And the zone named "United States" with the "Alabama" province member should appear in the registry
@ui @javascript @api
@todo @ui @javascript @api
Scenario: Adding a zone with zone type member
When I want to create a new zone consisting of zone
And I name it "America"
@ -42,7 +42,7 @@ Feature: Adding a new zone with country type members
Then I should be notified that it has been successfully created
And the zone named "America" with the "North America" zone member should appear in the registry
@ui @javascript @api
@todo @ui @javascript @api
Scenario: Adding a zone with a country type member and a shipping scope
When I want to create a new zone consisting of country
And I name it "European Union"
@ -54,7 +54,7 @@ Feature: Adding a new zone with country type members
And the zone named "European Union" with the "France" country member should appear in the registry
And its scope should be "shipping"
@ui @javascript @api
@todo @ui @javascript @api
Scenario: Adding zone with disabled country
When I want to create a new zone consisting of country
And I name it "European Union"

View file

@ -9,7 +9,7 @@ Feature: Browsing zones
And the store also has a zone "South America" with code "SA"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Browsing zones in store
When I want to see all zones in store
Then I should see 2 zones in the list

View file

@ -8,7 +8,7 @@ Feature: Deleting multiple zones
Given the store has zones "North America", "South America" and "Europe"
And I am logged in as an administrator
@ui @mink:chromedriver @no-api
@todo @ui @mink:chromedriver @no-api
Scenario: Deleting multiple zones at once
When I browse zones
And I check the "North America" zone

View file

@ -14,19 +14,19 @@ Feature: Deleting a zone
And the store has "Sales Tax" tax rate of 20% for "Sports gear" within the "SA" zone
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Deleted zone should disappear from the registry
When I delete the zone named "North America"
Then I should be notified that it has been successfully deleted
And the zone named "North America" should no longer exist in the registry
@ui @api
@todo @ui @api
Scenario: Deleting zone with associated tax rates should not be possible
When I try to delete the zone named "South America"
Then I should be notified that the zone is in use and cannot be deleted
And I should still see the zone named "South America" in the list
@ui @api
@todo @ui @api
Scenario: Deleting zone that is a zone member should not be possible
When I try to delete the zone named "Central and Eastern Europe"
Then I should be notified that this zone cannot be deleted

View file

@ -14,7 +14,7 @@ Feature: Editing a zone
And the store has a zone "South America" with code "SA"
And I am logged in as an administrator
@ui @javascript @api
@todo @ui @javascript @api
Scenario: Removing a country from a zone
Given the store has a zone "European Union" with code "EU"
And it has the "France" country member
@ -25,7 +25,7 @@ Feature: Editing a zone
Then I should be notified that it has been successfully edited
And this zone should have only the "France" country member
@ui @javascript @api
@todo @ui @javascript @api
Scenario: Removing and adding countries to a zone
Given the store has a zone "European Union" with code "EU"
And it has the "Belgium", "France" and "Germany" country members
@ -36,7 +36,7 @@ Feature: Editing a zone
Then I should be notified that it has been successfully edited
And this zone should have only the "France" country member
@ui @javascript @api
@todo @ui @javascript @api
Scenario: Removing a province from a zone
Given the store has a zone "United States" with code "USA"
And it has the "Alabama" province member
@ -47,7 +47,7 @@ Feature: Editing a zone
Then I should be notified that it has been successfully edited
And this zone should have only the "Alabama" province member
@ui @javascript @api
@todo @ui @javascript @api
Scenario: Removing a zone from a zone
Given the store has a zone "America" with code "AM"
And it has the zone named "North America"
@ -58,7 +58,7 @@ Feature: Editing a zone
Then I should be notified that it has been successfully edited
And this zone should have only the "South America" zone member
@ui @api
@todo @ui @api
Scenario: Renaming a zone
Given the store has a zone "European Union" with code "EU"
And it has the "France" country member

View file

@ -10,7 +10,7 @@ Feature: Zone unique code validation
And this zone has the "United States" country member
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Trying to add zone with taken code
When I want to create a new zone consisting of country
And I specify its code as "US"

View file

@ -9,7 +9,7 @@ Feature: Zone validation
And the store has country "United States"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Trying to add a zone without specifying its code
When I want to create a new zone consisting of country
And I name it "European Union"
@ -18,7 +18,7 @@ Feature: Zone validation
Then I should be notified that code is required
And zone with name "European Union" should not be added
@ui @api
@todo @ui @api
Scenario: Trying to add a zone without specifying its name
When I want to create a new zone consisting of country
And I specify its code as "EU"
@ -27,7 +27,7 @@ Feature: Zone validation
Then I should be notified that name is required
And zone with code "EU" should not be added
@ui @api
@todo @ui @api
Scenario: Trying to add a zone without any countries
When I want to create a new zone consisting of country
And I name it "European Union"
@ -37,26 +37,26 @@ Feature: Zone validation
Then I should be notified that at least one zone member is required
And zone with name "European Union" should not be added
@ui @api
@todo @ui @api
Scenario: Being unable to edit code of an existing zone
Given the store has a zone "European Union" with code "EU"
And it has the "France" country member
When I want to modify the zone named "European Union"
Then I should not be able to edit its code
@ui @api
@todo @ui @api
Scenario: Being unable to add itself to members during editing an existing zone
Given the store has a zone "European Union" with code "EU"
When I want to modify the zone named "European Union"
Then I can not add a zone "European Union"
@ui
@todo @ui
Scenario: Seeing a disabled type field when adding country type zone
When I want to create a new zone consisting of country
Then I should not be able to edit its type
And it should be of country type
@ui
@todo @ui
Scenario: Seeing a disabled type field when adding province type zone
When I want to create a new zone consisting of province
Then I should not be able to edit its type

View file

@ -12,7 +12,7 @@ Feature: Being redirected to previous filtered page
And the store has a product "Znicz Pruszków T-Shirt"
And I am logged in as an administrator
@ui @no-api
@todo @ui @no-api
Scenario: Being redirected to previous filtered page after deleting a product
When I browse products
And I choose enabled filter
@ -20,7 +20,7 @@ Feature: Being redirected to previous filtered page
And I delete the "FC Barcelona T-Shirt" product on filtered page
Then I should be redirected to the previous page of only enabled products
@ui @no-api
@todo @ui @no-api
Scenario: Being redirected to previous filtered page after cancelling editing a product
When I browse products
And I choose enabled filter
@ -29,7 +29,7 @@ Feature: Being redirected to previous filtered page
And I cancel my changes
Then I should be redirected to the previous page of only enabled products
@ui @no-api
@todo @ui @no-api
Scenario: Being redirected to previous filtered page with pagination after cancelling editing a product
When I browse products
And I choose enabled filter
@ -39,7 +39,7 @@ Feature: Being redirected to previous filtered page
And I cancel my changes
Then I should be redirected to the 2nd page of only enabled products
@ui @no-api
@todo @ui @no-api
Scenario: Being redirected to previous filtered page after cancelling creating a new product
When I browse products
And I choose enabled filter

View file

@ -8,7 +8,7 @@ Feature: Blocking login for disabled administrators
Given the store operates on a single channel in "United States"
And there is an administrator "admin@example.com" identified by "sylius"
@ui @api
@todo @ui @api
Scenario: Sign in with email and password
Given this administrator account is disabled
And I want to log in
@ -17,7 +17,7 @@ Feature: Blocking login for disabled administrators
And I log in
Then I should not be logged in
@ui @api
@todo @ui @api
Scenario: Revoking the access while administrator is logged in
Given I am logged in as "admin@example.com" administrator
When this administrator account becomes disabled

View file

@ -11,14 +11,14 @@ Feature: Browsing administration panel in a proper locale
And I am logged in as an administrator
And I am using "Polish (Poland)" locale for my panel
@ui
@todo @ui
Scenario: Getting errors in my language
Given I am editing my details
When I change its email to "wrong-email"
And I save my changes
Then I should be notified that this email is not valid in "Polish (Poland)" locale
@ui
@todo @ui
Scenario: Seeing menu in my language
When I open administration dashboard
Then I should see sidebar catalog section configuration in "Polish (Poland)" locale

View file

@ -10,7 +10,7 @@ Feature: Adding a new channel
And the store operates in "United States" and "Poland"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Adding a new channel
When I want to create a new channel
And I specify its code as "MOBILE"
@ -23,7 +23,7 @@ Feature: Adding a new channel
Then I should be notified that it has been successfully created
And the channel "Mobile channel" should appear in the registry
@api @ui
@api @todo @ui
Scenario: Adding a new channel with additional fields
When I want to create a new channel
And I specify its code as "MOBILE"

View file

@ -10,7 +10,7 @@ Feature: Specifying the lowest price for discounted products checking period whi
And the store operates in "United States" and "Poland"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Adding a new channel without specifying the lowest price for discounted products checking period
When I want to create a new channel
And I specify its code as "MOBILE"
@ -23,7 +23,7 @@ Feature: Specifying the lowest price for discounted products checking period whi
Then I should be notified that it has been successfully created
And the "Mobile" channel should have the lowest price for discounted products checking period set to 30 days
@api @ui
@api @todo @ui
Scenario: Adding a new channel with a specified lowest price for discounted products checking period
When I want to create a new channel
And I specify its code as "MOBILE"
@ -37,7 +37,7 @@ Feature: Specifying the lowest price for discounted products checking period whi
Then I should be notified that it has been successfully created
And the "Mobile" channel should have the lowest price for discounted products checking period set to 15 days
@api @ui
@api @todo @ui
Scenario: Being prevented from creating a new channel with the lowest price for discounted products checking period equal to zero
When I want to create a new channel
And I specify its code as "MOBILE"
@ -50,7 +50,7 @@ Feature: Specifying the lowest price for discounted products checking period whi
And I try to add it
Then I should be notified that the lowest price for discounted products checking period must be greater than 0
@api @ui
@api @todo @ui
Scenario: Being prevented from creating a new channel with a negative lowest price for discounted products checking period
When I want to create a new channel
And I specify its code as "MOBILE"
@ -64,7 +64,7 @@ Feature: Specifying the lowest price for discounted products checking period whi
And I try to add it
Then I should be notified that the lowest price for discounted products checking period must be greater than 0
@api @ui
@api @todo @ui
Scenario: Being prevented from creating a new channel with a too big lowest price for discounted products checking period
When I want to create a new channel
And I specify its code as "MOBILE"

View file

@ -10,7 +10,7 @@ Feature: Adding a new channel with shop billing data
And the store operates in "United States"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Adding a new channel with shop billing data
When I want to create a new channel
And I specify its code as "MOBILE"

View file

@ -10,7 +10,7 @@ Feature: Choosing whether to show the lowest product price or not while creating
And the store operates in "United States" and "Poland"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Adding a new channel with lowest price before the product has been discounted enabled by default
When I want to create a new channel
And I specify its code as "MOBILE"
@ -23,7 +23,7 @@ Feature: Choosing whether to show the lowest product price or not while creating
Then I should be notified that it has been successfully created
And the "Mobile" channel should have the lowest price of discounted products prior to the current discount enabled
@api @ui
@api @todo @ui
Scenario: Adding a new channel with lowest price before the product has been discounted enabled
When I want to create a new channel
And I specify its code as "MOBILE"
@ -37,7 +37,7 @@ Feature: Choosing whether to show the lowest product price or not while creating
Then I should be notified that it has been successfully created
And the "Mobile" channel should have the lowest price of discounted products prior to the current discount enabled
@api @ui
@api @todo @ui
Scenario: Adding a new channel with lowest price before the product has been discounted disabled
When I want to create a new channel
And I specify its code as "MOBILE"

View file

@ -11,7 +11,7 @@ Feature: Adding a new channel with menu taxon
And the store classifies its products as "Clothes" and "Guns"
And I am logged in as an administrator
@ui @javascript @api
@todo @ui @javascript @api
Scenario: Adding a new channel with menu taxon
When I want to create a new channel
And I specify its code as "MOBILE"

View file

@ -9,7 +9,7 @@ Feature: Browsing channels
And the store operates on another channel named "Mobile Channel"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Browsing defined channels
When I want to browse channels
Then I should see 2 channels in the list

View file

@ -8,7 +8,7 @@ Feature: Channel unique code validation
Given the store operates on a channel identified by "WEB" code
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Trying to add channel with taken code
When I want to create a new channel
And I specify its code as "WEB"

View file

@ -7,7 +7,7 @@ Feature: Channel validation
Background:
Given I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Trying to add a new channel without specifying its code
When I want to create a new channel
And I name it "Mobile channel"
@ -16,7 +16,7 @@ Feature: Channel validation
Then I should be notified that code is required
And channel with name "Mobile channel" should not be added
@api @ui
@api @todo @ui
Scenario: Trying to add a new channel without specifying its name
When I want to create a new channel
And I specify its code as "MOBILE"
@ -25,7 +25,7 @@ Feature: Channel validation
Then I should be notified that name is required
And channel with code "MOBILE" should not be added
@api @ui
@api @todo @ui
Scenario: Trying to add a new channel without base currency
When I want to create a new channel
And I specify its code as "MOBILE"
@ -34,7 +34,7 @@ Feature: Channel validation
Then I should be notified that base currency is required
And channel with code "MOBILE" should not be added
@api @ui
@api @todo @ui
Scenario: Trying to add a new channel without default locale
When I want to create a new channel
And I specify its code as "MOBILE"
@ -43,7 +43,7 @@ Feature: Channel validation
Then I should be notified that default locale is required
And channel with code "MOBILE" should not be added
@api @ui
@api @todo @ui
Scenario: Trying to remove name from existing channel
Given the store operates on a channel named "Web Channel"
When I want to modify this channel

View file

@ -8,7 +8,7 @@ Feature: Choosing a required address in the checkout for a channel
Given the store operates on a single channel in "United States"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Adding a new channel with a required address in the checkout
When I want to create a new channel
And I specify its code as "MOBILE"
@ -22,7 +22,7 @@ Feature: Choosing a required address in the checkout for a channel
Then I should be notified that it has been successfully created
And the required address in the checkout for this channel should be shipping
@api @ui
@api @todo @ui
Scenario: Changing a required address in the checkout for an existing channel
Given the store operates on a channel named "Web Store"
When I want to modify this channel

View file

@ -9,7 +9,7 @@ Feature: Deleting a channel
And the store operates on another channel named "Mobile Store"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Deleted channel should disappear from the registry
When I delete channel "Web Store"
Then I should be notified that it has been successfully deleted

View file

@ -10,7 +10,7 @@ Feature: Deleting multiple channels
And the store operates on another channel named "DE Store"
And I am logged in as an administrator
@ui @mink:chromedriver @no-api
@todo @ui @mink:chromedriver @no-api
Scenario: Deleting multiple channels at once
When I browse channels
And I check the "PL Store" channel

View file

@ -8,12 +8,12 @@ Feature: Editing channel
Given the store operates on a channel named "Web Channel"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Being unable to change the code of an existing channel
When I want to modify a channel "Web Channel"
Then I should not be able to edit its code
@api @ui
@api @todo @ui
Scenario: Renaming the channel
When I want to modify a channel "Web Channel"
And I rename it to "Website store"
@ -21,7 +21,7 @@ Feature: Editing channel
Then I should be notified that it has been successfully edited
And this channel name should be "Website store"
@api @ui
@api @todo @ui
Scenario: Being unable to change base currency of an existing channel
When I want to modify a channel "Web Channel"
Then I should not be able to edit its base currency

View file

@ -9,7 +9,7 @@ Feature: Specifying the lowest price for discounted products checking period whi
And this channel has 15 days set as the lowest price for discounted products checking period
And I am logged in as an administrator
@no-api @ui
@no-api @todo @ui
Scenario: Changing the lowest price for discounted products checking period
When I want to modify a channel "EU"
And I specify 30 days as the lowest price for discounted products checking period
@ -17,21 +17,21 @@ Feature: Specifying the lowest price for discounted products checking period whi
Then I should be notified that it has been successfully edited
And its lowest price for discounted products checking period should be set to 30 days
@no-api @ui
@no-api @todo @ui
Scenario: Being prevented from changing the lowest price for discounted products checking period to zero
When I want to modify a channel "EU"
And I specify 0 days as the lowest price for discounted products checking period
And I try to save my changes
Then I should be notified that the lowest price for discounted products checking period must be greater than 0
@no-api @ui
@no-api @todo @ui
Scenario: Being prevented from changing the lowest price for discounted products checking period to a negative value
When I want to modify a channel "EU"
And I specify -10 days as the lowest price for discounted products checking period
And I try to save my changes
Then I should be notified that the lowest price for discounted products checking period must be greater than 0
@no-api @ui
@no-api @todo @ui
Scenario: Being prevented from changing the lowest price for discounted products checking period to a too big value
When I want to modify a channel "EU"
And I specify 99999999999 days as the lowest price for discounted products checking period

View file

@ -11,7 +11,7 @@ Feature: Choosing whether to show the lowest product price or not while editing
And the channel "US Channel" has showing the lowest price of discounted products disabled
And I am logged in as an administrator
@no-api @ui
@no-api @todo @ui
Scenario: Enabling showing the lowest price of discounted products on a channel
When I want to modify a channel "US Channel"
And I enable showing the lowest price of discounted products
@ -19,7 +19,7 @@ Feature: Choosing whether to show the lowest product price or not while editing
Then I should be notified that it has been successfully edited
And the "US Channel" channel should have the lowest price of discounted products prior to the current discount enabled
@no-api @ui
@no-api @todo @ui
Scenario: Disabling showing the lowest price of discounted products on a channel
When I want to modify a channel "EU Channel"
And I disable showing the lowest price of discounted products

View file

@ -11,7 +11,7 @@ Feature: Editing menu taxon on channel
And channel "Web Store" has menu taxon "Clothes"
And I am logged in as an administrator
@api @ui @javascript
@api @todo @ui @javascript
Scenario: Editing menu taxon on the channel
When I want to modify a channel "Web Store"
And I change its menu taxon to "Guns"

View file

@ -10,7 +10,7 @@ Feature: Editing shop billing data on channel
And channel "Web Store" billing data is "Ragnarok", "Pacific Coast Hwy", "90806" "Los Angeles", "United States" with "1100110011" tax ID
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Editing shop billing data on channel
When I want to modify a channel "Web Store"
And I specify shop billing data for this channel as "Götterdämmerung", "Valhalla", "123", "Asgard", "666777" tax ID and "United States" country

View file

@ -9,7 +9,7 @@ Feature: Excluding chosen taxons from displaying the lowest price of discounted
And the store classifies its products as "T-Shirts", "Caps" and "Sweaters"
And I am logged in as an administrator
@no-api @ui @javascript
@no-api @todo @ui @javascript
Scenario: Excluding a singular taxon from displaying the lowest price of discounted products
When I want to modify a channel "Poland"
And I exclude the "T-Shirts" taxon from showing the lowest price of discounted products
@ -17,7 +17,7 @@ Feature: Excluding chosen taxons from displaying the lowest price of discounted
Then I should be notified that it has been successfully edited
And this channel should have "T-Shirts" taxon excluded from displaying the lowest price of discounted products
@no-api @ui @mink:chromedriver
@no-api @todo @ui @mink:chromedriver
Scenario: Excluding multiple taxons from displaying the lowest price of discounted products
When I want to modify a channel "Poland"
And I exclude the "T-Shirts" and "Caps" taxons from showing the lowest price of discounted products
@ -25,7 +25,7 @@ Feature: Excluding chosen taxons from displaying the lowest price of discounted
Then I should be notified that it has been successfully edited
And this channel should have "T-Shirts" and "Caps" taxons excluded from displaying the lowest price of discounted products
@no-api @ui @mink:chromedriver
@no-api @todo @ui @mink:chromedriver
Scenario: Removing excluded taxon from displaying the lowest price of discounted products
Given the channel "Poland" has "T-Shirts" and "Caps" taxons excluded from showing the lowest price of discounted products
When I want to modify this channel

View file

@ -9,7 +9,7 @@ Feature: Not being able to add a disabled channel when no other exist
And the store has locale "English (United States)"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Trying to add a new disabled channel when no other exist
When I want to create a new channel
And I specify its code as "MOBILE"

View file

@ -8,7 +8,7 @@ Feature: Not being able to delete a last available channel
Given the store operates on a channel named "Web Store"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Preventing from deleting only channel
When I delete channel "Web Store"
Then I should be notified that it cannot be deleted

View file

@ -8,7 +8,7 @@ Feature: Toggling a channel
Given the store operates on a channel named "Web Channel"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Disabling the last available channel
Given the channel "Web Channel" is enabled
When I want to modify this channel

View file

@ -10,7 +10,7 @@ Feature: Selecting available currencies for a channel
And the store operates in "United States"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Adding a new channel with currencies
When I want to create a new channel
And I specify its code as MOBILE
@ -24,7 +24,7 @@ Feature: Selecting available currencies for a channel
Then I should be notified that it has been successfully created
And paying in Euro should be possible for the "Mobile store" channel
@api @ui
@api @todo @ui
Scenario: Adding currencies to an existing channel
Given the store operates on a channel named "Web store"
When I want to modify this channel

View file

@ -8,7 +8,7 @@ Feature: Selecting default tax zone for a channel
Given the store operates on a single channel in "United States"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Adding a new channel with default tax zone
When I want to create a new channel
And I specify its code as "MOBILE"
@ -22,7 +22,7 @@ Feature: Selecting default tax zone for a channel
Then I should be notified that it has been successfully created
And the default tax zone for the "Mobile store" channel should be "United States"
@api @ui
@api @todo @ui
Scenario: Selecting default tax zone for existing channel
Given the store operates on a channel named "Web store"
When I want to modify this channel
@ -31,7 +31,7 @@ Feature: Selecting default tax zone for a channel
Then I should be notified that it has been successfully edited
And the default tax zone for the "Web store" channel should be "United States"
@api @ui
@api @todo @ui
Scenario: Removing existing channel default tax zone
Given the store operates on a channel named "Web store"
And its default tax zone is zone "US"

View file

@ -9,7 +9,7 @@ Feature: Selecting available locales for a channel
And the store has locale "English (United States)"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Adding a new channel with locales
When I want to create a new channel
And I specify its code as "MOBILE"
@ -22,7 +22,7 @@ Feature: Selecting available locales for a channel
Then I should be notified that it has been successfully created
And the channel "Mobile Channel" should be available in "English (United States)"
@api @ui
@api @todo @ui
Scenario: Adding locales to an existing channel
Given the store operates on a channel named "Web Channel"
When I want to modify this channel
@ -31,7 +31,7 @@ Feature: Selecting available locales for a channel
Then I should be notified that it has been successfully edited
And the channel "Web Channel" should be available in "English (United States)"
@api @ui
@api @todo @ui
Scenario: Being unable to disable locale used as the default one for a channel
Given the store operates on a channel named "Web"
And this channel allows to shop using "English (United States)" and "Polish (Poland)" locales
@ -41,7 +41,7 @@ Feature: Selecting available locales for a channel
And I try to save my changes
Then I should be notified that the default locale has to be enabled
@api @ui
@api @todo @ui
Scenario: Being unable to set disabled locale as a default one for a channel
Given the store has locale "Polish (Poland)"
And the store operates on a channel named "Web"

View file

@ -9,7 +9,7 @@ Feature: Selecting tax calculation strategy for a channel
And the store has locale "English (United States)"
And I am logged in as an administrator
@ui
@todo @ui
Scenario: Adding a new channel with implicitly selected tax calculation strategy
When I want to create a new channel
And I specify its code as "MOBILE"
@ -20,7 +20,7 @@ Feature: Selecting tax calculation strategy for a channel
Then I should be notified that it has been successfully created
And the tax calculation strategy for the "Mobile store" channel should be "Order items based"
@api @ui
@api @todo @ui
Scenario: Adding a new channel with tax calculation strategy
When I want to create a new channel
And I specify its code as "MOBILE"
@ -33,7 +33,7 @@ Feature: Selecting tax calculation strategy for a channel
Then I should be notified that it has been successfully created
And the tax calculation strategy for the "Mobile store" channel should be "Order item units based"
@api @ui
@api @todo @ui
Scenario: Changing tax calculation strategy of existing channel
Given the store operates on a channel named "Web store"
When I want to modify this channel

View file

@ -9,7 +9,7 @@ Feature: Toggling a channel
And the store operates on another channel named "Mobile Channel"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Disabling the channel
Given the channel "Web Channel" is enabled
When I want to modify this channel
@ -18,7 +18,7 @@ Feature: Toggling a channel
Then I should be notified that it has been successfully edited
And this channel should be disabled
@api @ui
@api @todo @ui
Scenario: Enabling the channel
Given the channel "Web Channel" is disabled
When I want to modify this channel

View file

@ -9,17 +9,17 @@ Feature: Managing themes per channel
And the store has "maverick/meerkat" theme
And I am logged in as an administrator
@ui @no-api
@todo @ui @no-api
Scenario: None of the themes are used by default
When I create a new channel "Poland"
Then that channel should not use any theme
@ui @no-api
@todo @ui @no-api
Scenario: Setting a theme on a channel
When I set "United States" channel theme to "maverick/meerkat"
Then that channel should use that theme
@ui @no-api
@todo @ui @no-api
Scenario: Unsetting a channel theme
Given channel "United States" uses "maverick/meerkat" theme
When I unset theme on that channel

View file

@ -7,7 +7,7 @@ Feature: Adding a new currency
Background:
Given I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Adding a new currency
When I want to add a new currency
And I choose "Euro"

View file

@ -8,7 +8,7 @@ Feature: Browsing currencies
Given the store has currency "Euro", "British Pound"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Browsing currencies in store
When I want to browse currencies of the store
Then I should see 2 currencies in the list

View file

@ -8,7 +8,7 @@ Feature: Currency unique code validation
Given the store has currency "Euro"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Trying to add currency with taken code
When I want to add a new currency
And I choose "Euro"

View file

@ -7,7 +7,7 @@ Feature: Editing a currency
Background:
Given I am logged in as an administrator
@ui @no-api
@todo @ui @no-api
Scenario: Seeing disabled code field while editing currency
Given the store has currency "Euro"
When I want to edit this currency

View file

@ -8,7 +8,7 @@ Feature: Adding a new exchange rate
Given the store has currency "US Dollar" and "British Pound"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Adding a new exchange rate
When I want to add a new exchange rate
And I specify its ratio as 1.20

View file

@ -10,7 +10,7 @@ Feature: Browsing exchange rates
And the exchange rate of "British Pound" to "Bhutanese Ngultrum" is 2.37
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Browsing store's exchange rates
When I am browsing exchange rates of the store
Then I should see 2 exchange rates on the list

View file

@ -8,7 +8,7 @@ Feature: Deleting exchange rates
Given the store has currency "US Dollar", "British Pound" and "Bhutanese Ngultrum"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Deleted exchange rate should disappear from the list
Given the exchange rate of "US Dollar" to "British Pound" is 1.2
When I delete the exchange rate between "US Dollar" and "British Pound"

View file

@ -11,7 +11,7 @@ Feature: Deleting multiple exchange rates
And the exchange rate of "Polish Zloty" to "Euro" is 0.22
And I am logged in as an administrator
@ui @mink:chromedriver @no-api
@todo @ui @mink:chromedriver @no-api
Scenario: Deleting multiple exchange rates at once
When I browse exchange rates
And I check the exchange rate between "Euro" and "British Pound"

View file

@ -8,7 +8,7 @@ Feature: Editing exchange rate
Given the store has currency "US Dollar" and "British Pound"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Change exchange rate's ratio
Given the exchange rate of "US Dollar" to "British Pound" is 1.30
And I am editing this exchange rate
@ -17,7 +17,7 @@ Feature: Editing exchange rate
Then I should be notified that it has been successfully edited
And it should have a ratio of 3.21
@ui @api
@todo @ui @api
Scenario: Being unable to change currencies
Given the exchange rate of "US Dollar" to "British Pound" is 1.30
When I want to edit this exchange rate

View file

@ -8,7 +8,7 @@ Feature: Exchange rate validation
Given the store has currency "US Dollar" and "British Pound"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Trying to add a new exchange rate without ratio
When I want to add a new exchange rate
And I choose "US Dollar" as the source currency
@ -18,7 +18,7 @@ Feature: Exchange rate validation
Then I should be notified that ratio is required
And the exchange rate between "US Dollar" and "British Pound" should not be added
@ui @api
@todo @ui @api
Scenario: Trying to add a new exchange rate with negative ratio
When I want to add a new exchange rate
And I choose "US Dollar" as the source currency
@ -28,7 +28,7 @@ Feature: Exchange rate validation
Then I should be notified that the ratio must be greater than zero
And the exchange rate between "US Dollar" and "British Pound" should not be added
@ui @api
@todo @ui @api
Scenario: Trying to add a new exchange rate with same target currency as source
When I want to add a new exchange rate
And I specify its ratio as 1.23

View file

@ -11,7 +11,7 @@ Feature: Filtering exchange rates by a currency
And the exchange rate of "Polish Zloty" to "Euro" is 0.22
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Filtering exchange rates by a chosen currency
When I browse exchange rates of the store
And I choose "Euro" as a currency filter

View file

@ -9,7 +9,7 @@ Feature: Inability of adding exchange rates with the same currency pair
And the exchange rate of "Euro" to "British Pound" is 1.2
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Being prevented from adding an exchange rate for the same currency pair
When I want to add a new exchange rate
And I specify its ratio as 3.20
@ -20,7 +20,7 @@ Feature: Inability of adding exchange rates with the same currency pair
And I should still see one exchange rate on the list
And this exchange rate should have a ratio of 1.2
@ui @api
@todo @ui @api
Scenario: Being prevented from adding an exchange rate for a reversed currency pair
When I want to add a new exchange rate
And I specify its ratio as 3.20

View file

@ -10,32 +10,32 @@ Feature: Impersonating shop users
And there is a customer "Tanith Low" identified by an email "remnant@london.uk" and a password "swordlover1918"
And I am logged in as "teddy@roosevelt.com" administrator
@ui
@todo @ui
Scenario: Impersonating a customer
When I view details of the customer "remnant@london.uk"
And I impersonate them
And I visit the store
Then I should be logged in as "Tanith Low"
@ui
@todo @ui
Scenario: Impersonating a customer in new tab
When I impersonate the customer "remnant@london.uk"
And I visit the store
Then I should be logged in as "Tanith Low"
@ui
@todo @ui
Scenario: Inability to impersonate a customer with no account
Given the store has customer "harold@thrasher.ie" with first name "Harold"
When I view their details
Then I should be unable to impersonate them
@ui
@todo @ui
Scenario: Seeing the impersonation was successful
When I view details of the customer "remnant@london.uk"
And I impersonate them
Then I should see that impersonating "remnant@london.uk" was successful
@ui
@todo @ui
Scenario: Keeping the administrator access while impersonating a user
When I view details of the customer "remnant@london.uk"
And I impersonate them
@ -43,13 +43,13 @@ Feature: Impersonating shop users
Then I should be logged in as "Tanith Low"
But I should still be able to access the administration dashboard
@ui
@todo @ui
Scenario: Logging out the user doesn't log out my admin account
Given I am impersonating the customer "remnant@london.uk"
When I log out from the store
Then I should still be able to access the administration dashboard
@ui
@todo @ui
Scenario: Logging out from my admin account logs me off the user I'm impersonating
Given I am impersonating the customer "remnant@london.uk"
When I log out from my admin account

View file

@ -14,7 +14,7 @@ Feature: Holding inventory units during checkout
And there is a customer "sylius@example.com" that placed an order "#00000022"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Holding inventory units
Given the customer bought 3 "Iron Maiden T-Shirt" products
And the customer chose "Free" shipping method to "United States" with "Offline" payment
@ -22,7 +22,7 @@ Feature: Holding inventory units during checkout
Then 3 units of this product should be on hold
And 5 units of this product should be on hand
@ui @api
@todo @ui @api
Scenario: Release hold units after order has been paid
Given the customer bought 3 "Iron Maiden T-Shirt" products
And the customer chose "Free" shipping method to "United States" with "Offline" payment

View file

@ -10,12 +10,12 @@ Feature: Displaying inventory tab on simple product edit page
And the store has a "PHP T-Shirt" configurable product
And I am logged in as an administrator
@ui @no-api
@todo @ui @no-api
Scenario: Seeing inventory on simple product edit page
When I want to modify the "PHP Mug" product
Then I should see inventory of this product
@ui @no-api
@todo @ui @no-api
Scenario: Not seeing inventory on configurable product edit page
When I want to modify the "PHP T-Shirt" product
Then I should not see inventory of this product

View file

@ -13,12 +13,12 @@ Feature: Browsing inventory
And there are 5 units of product "Iron Maiden T-Shirt" available in the inventory
And I am logged in as an administrator
@ui @no-api
@todo @ui @no-api
Scenario: Browsing only tracked product variants in the store
When I want to browse inventory
Then I should see only one tracked variant in the list
@ui @no-api
@todo @ui @no-api
Scenario: Being informed about on hand quantity of a product variant
When I want to browse inventory
Then I should see that the "Iron Maiden T-Shirt" variant has 5 quantity on hand

View file

@ -17,7 +17,7 @@ Feature: Validation of decreasing inventory below on hold validation
And the customer chose "Free" shipping method to "United States" with "Cash on Delivery" payment
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Decreasing inventory when order was placed
When I want to modify the "Wyborowa Vodka Exquisite" product variant
And I change its quantity of inventory to 2
@ -25,7 +25,7 @@ Feature: Validation of decreasing inventory below on hold validation
Then I should be notified that on hand quantity must be greater than the number of on hold units
And this variant should have a 5 item currently in stock
@ui @api
@todo @ui @api
Scenario: Decreasing inventory when order was cancelled
Given the order "#00000023" was cancelled
When I want to modify the "Wyborowa Vodka Exquisite" product variant
@ -34,7 +34,7 @@ Feature: Validation of decreasing inventory below on hold validation
Then I should be notified that it has been successfully edited
And this variant should have a 2 item currently in stock
@ui @api
@todo @ui @api
Scenario: Decreasing inventory when order was paid
Given the order "#00000023" is already paid
When I want to modify the "Wyborowa Vodka Exquisite" product variant

View file

@ -14,7 +14,7 @@ Feature: Filtering inventory by code
And there are 25 units of product "RHCP T-Shirt" available in the inventory
And I am logged in as an administrator
@ui @no-api
@todo @ui @no-api
Scenario: Filtering tracked product variants by code
When I want to browse inventory
And I filter tracked variants with code containing "iron"

View file

@ -14,7 +14,7 @@ Feature: Filtering inventory by name
And there are 25 units of product "RHCP T-Shirt" available in the inventory
And I am logged in as an administrator
@ui @no-api
@todo @ui @no-api
Scenario: Filtering tracked product variants by name
When I want to browse inventory
And I filter tracked variants with name containing "RHCP"

View file

@ -18,7 +18,7 @@ Feature: Inventory releasing on order cancellation
And the store allows paying with "Cash on Delivery"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Verify the reserved inventory is back in stock after cancellation of a new order
Given there is a customer "john.doe@gmail.com" that placed an order "#00000022"
And the customer bought 3 units of "Green" variant of product "T-Shirt banana"
@ -28,7 +28,7 @@ Feature: Inventory releasing on order cancellation
Then the variant "Green" should have 5 items on hand
And the "Green" variant should have 0 items on hold
@ui @api
@todo @ui @api
Scenario: Verify the reserved inventory and quantity of product's items is back in stock after cancellation of paid order
Given there is a customer "john.doe@gmail.com" that placed an order "#00000022"
And the customer bought 3 units of "Green" variant of product "T-Shirt banana"
@ -39,7 +39,7 @@ Feature: Inventory releasing on order cancellation
Then the variant "Green" should have 5 items on hand
And the "Green" variant should have 0 items on hold
@ui @api
@todo @ui @api
Scenario: Verify the reserved inventory is back in stock after cancellation of a new order with two variants of product
Given there is a customer "john.doe@gmail.com" that placed an order "#00000023"
And the customer bought 3 units of "Green" variant of product "T-Shirt banana"
@ -52,7 +52,7 @@ Feature: Inventory releasing on order cancellation
And the variant "Red" should have 5 items on hand
And the "Red" variant should have 0 items on hold
@ui @api
@todo @ui @api
Scenario: Verify the reserved inventory and quantity of product's items is back in stock after cancellation of paid order with two variants of product
Given there is a customer "john.doe@gmail.com" that placed an order "#00000023"
And the customer bought 3 units of "Green" variant of product "T-Shirt banana"
@ -66,7 +66,7 @@ Feature: Inventory releasing on order cancellation
And the variant "Red" should have 5 items on hand
And the "Red" variant should have 0 items on hold
@ui @api
@todo @ui @api
Scenario: Verify the reserved inventory is back in stock after cancellation of a new order with two variants of different products
Given there is a customer "john.doe@gmail.com" that placed an order "#00000024"
And the customer bought 3 units of "Green" variant of product "T-Shirt banana"
@ -78,7 +78,7 @@ Feature: Inventory releasing on order cancellation
And the "Yellow" variant of "Skirt watermelon" product should have 5 items on hand
And the "Yellow" variant of "Skirt watermelon" product should have 0 items on hold
@ui @api
@todo @ui @api
Scenario: Verify the reserved inventory and quantity of product's items is back in stock after cancellation of paid order with two variants of different products
Given there is a customer "john.doe@gmail.com" that placed an order "#00000024"
And the customer bought 3 units of "Green" variant of product "T-Shirt banana"
@ -91,7 +91,7 @@ Feature: Inventory releasing on order cancellation
And the "Yellow" variant of "Skirt watermelon" product should have 5 items on hand
And the "Yellow" variant of "Skirt watermelon" product should have 0 items on hold
@ui @api
@todo @ui @api
Scenario: Verify the reserved inventory and quantity of product's items is back in stock after cancellation of a refunded order
Given there is a customer "john.doe@gmail.com" that placed an order "#00000022"
And the customer bought 3 units of "Green" variant of product "T-Shirt banana"

View file

@ -15,7 +15,7 @@ Feature: Seeing product's variant with specify quantity of items on hand
And the store allows paying with "Cash on Delivery"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Seeing decreased quantity of product's items in selected variant after order payment
Given there is a customer "lucy@teamlucifer.com" that placed an order "#00000666"
And the customer bought 3 units of "Green" variant of product "T-Shirt banana"
@ -25,7 +25,7 @@ Feature: Seeing product's variant with specify quantity of items on hand
When I view all variants of the product "T-Shirt banana"
Then the variant "Green" should have 2 items on hand
@ui @api
@todo @ui @api
Scenario: Seeing decreased quantity of product's items from different variants after order payment
Given there is a customer "lucy@teamlucifer.com" that placed an order "#00000666"
And the customer bought 3 units of "Yellow" variant of product "T-Shirt banana"

View file

@ -10,7 +10,7 @@ Feature: Channel independent translatable entities locales
And it uses the "English (United States)" locale by default
And I am logged in as an administrator
@ui
@todo @ui
Scenario: Using all locales to translate an entity
Given the store has locale "German (Germany)"
When I want to create a new translatable entity

View file

@ -7,7 +7,7 @@ Feature: Adding a new locale
Background:
Given I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Adding a new locale
When I want to create a new locale
And I choose Norwegian

View file

@ -8,7 +8,7 @@ Feature: Locale unique code validation
Given the store has locale "Norwegian (Norway)"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Trying to add new locale with used code
When I want to add a new locale
Then I should not be able to choose "Norwegian (Norway)"

View file

@ -10,7 +10,7 @@ Feature: Removing locales
And it uses the "English (United States)" locale by default
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Deleting unused locale
Given the store has a product "T-Shirt banana"
And this product is named "Banana T-Shirt with Minions" in the "English (United States)" locale
@ -19,7 +19,7 @@ Feature: Removing locales
Then I should be informed that locale "Polish (Poland)" has been deleted
And only the "English (United States)" locale should be present in the system
@ui @api
@todo @ui @api
Scenario: Deleting a locale in use
Given the store has a product "T-Shirt banana"
And this product is named "Banana T-Shirt with Minions" in the "English (United States)" locale

View file

@ -14,7 +14,7 @@ Feature: Browsing orders
And the customer chose "Free" shipping method to "United States" with "Cash on Delivery" payment
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Seeing a new order in the list
When I browse orders
Then I should see a single order from customer "john.doe@gmail.com"

View file

@ -17,7 +17,7 @@ Feature: Seeing the currency in which all orders have been placed
And there is a customer "Satin" identified by an email "satin@teamlucifer.com" and a password "pswd"
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Seeing an order placed in the base currency
Given there is a customer "lucy@teamlucifer.com" that placed an order "#00000666"
And the customer bought a single "Angel T-Shirt"

View file

@ -17,7 +17,7 @@ Feature: Seeing order's payment amount including all fees
And the customer chose "DHL" shipping method to "United States" with "Cash on Delivery" payment
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Seeing total payment
When I view the summary of the order "#00000666"
Then it should have 2 items

View file

@ -17,7 +17,7 @@ Feature: Seeing orders' total in their currency
And there is a customer account "customer@example.com" identified by "sylius"
And I am logged in as "customer@example.com"
@ui @api
@todo @ui @api
Scenario: List of orders from only one channel
Given I changed my current channel to "United States"
And I have product "Angel T-Shirt" in the cart
@ -26,7 +26,7 @@ Feature: Seeing orders' total in their currency
And I confirm my order
Then the administrator should see the order with total "$20.00" in order list
@ui @api
@todo @ui @api
Scenario: List of orders from different channels
Given I changed my current channel to "United States"
And I have product "Angel T-Shirt" in the cart

View file

@ -17,7 +17,7 @@ Feature: Sequential order number generation
And the customer chose "Free" shipping method to "United States" with "Offline" payment
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Verifying that orders has correct numbers
When I browse orders
Then I should see an order with "#000000001" number

View file

@ -20,13 +20,13 @@ Feature: Sorting orders by their number
And the customer chose "Free" shipping method to "United States" with "Offline" payment
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Orders are sorted by descending numbers by default
When I browse orders
Then I should see an order with "#000000001" number
But the first order should have number "#000000003"
@ui @api
@todo @ui @api
Scenario: Changing the number sorting order
Given I am browsing orders
When I switch the way orders are sorted by number

View file

@ -14,7 +14,7 @@ Feature: Cancelling orders
And the customer chose "Free" shipping method to "United States" with "Cash on Delivery" payment
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Cancelling an order
When I view the summary of the order "#00000022"
And I cancel this order
@ -24,13 +24,13 @@ Feature: Cancelling orders
And it should have payment state "Cancelled"
And there should be only 1 payment
@ui @api
@todo @ui @api
Scenario: Cannot cancel an order, which is already cancelled
Given the customer cancelled this order
When I view the summary of the order "#00000022"
Then I should not be able to cancel this order
@ui @api
@todo @ui @api
Scenario: Checking order payment state of a cancelled order
Given this order was cancelled
When I browse orders

View file

@ -17,7 +17,7 @@ Feature: Cancelling order with promotion applied
And the customer chose "Free" shipping method with "Cash on Delivery" payment
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Cancelling order when the applied promotion is no longer valid
Given the promotion was disabled for the channel "Web"
When I view the summary of the order "#00000001"

View file

@ -15,35 +15,35 @@ Feature: Order gets fulfilled after it's been paid and shipped
And I am logged in as an administrator
And I am viewing the summary of this order
@ui @api
@todo @ui @api
Scenario: An order can be fulfilled
When I mark this order as paid
And I ship this order
Then its state should be "Fulfilled"
@ui @api
@todo @ui @api
Scenario: An order which has been shipped gets fulfilled after paying
Given the order "#00000123" is already shipped
When I mark this order as paid
Then its state should be "Fulfilled"
@ui @api
@todo @ui @api
Scenario: An order which has been paid for gets fulfilled after shipping it
Given the order "#00000123" is already paid
When I ship this order
Then its state should be "Fulfilled"
@ui @api
@todo @ui @api
Scenario: A paid, but not shipped order is not fulfilled
When I mark this order as paid
Then its state should be "New"
@ui @api
@todo @ui @api
Scenario: A shipped, but not paid order is not fulfilled
When I ship this order
Then its state should be "New"
@ui @api
@todo @ui @api
Scenario: Fulfilled orders cannot be cancelled
When I mark this order as paid
And I ship this order

View file

@ -15,14 +15,14 @@ Feature: Finalizing order payment
And the customer chose "Free" shipping method with "Cash on Delivery" payment
And I am logged in as an administrator
@ui
@todo @ui
Scenario: Finalizing order's payment
Given I view the summary of the order "#00000666"
When I mark this order as paid
Then I should be notified that the order's payment has been successfully completed
And it should have payment state "Completed"
@ui
@todo @ui
Scenario: Finalizing order's payment when at least one item has become tracked after the purchase
Given I view the summary of the order "#00000666"
And the "Angel T-Shirt" product's inventory has become tracked with 2 items
@ -30,13 +30,13 @@ Feature: Finalizing order payment
Then I should be notified that the order's payment could not be finalized due to insufficient stock
And it should have payment state "New"
@ui
@todo @ui
Scenario: Unable to finalize completed order's payment
Given this order is already paid
When I view the summary of the order "#00000666"
Then I should not be able to mark this order as paid again
@ui
@todo @ui
Scenario: Checking the payment state of a completed order
Given this order is already paid
When I browse orders

View file

@ -15,12 +15,12 @@ Feature: Payments are in the state "new" after checkout
And the customer chose "Free" shipping method with "Cash on Delivery" payment
And I am logged in as an administrator
@ui
@todo @ui
Scenario: Checking payment state of a placed order
When I view the summary of the order "#00000666"
Then it should have payment state "New"
@ui
@todo @ui
Scenario: Checking order payment state of a placed order
When I browse orders
Then the order "#00000666" should have order payment state "Awaiting payment"

View file

@ -17,13 +17,13 @@ Feature: Refunding order's payment
And I am logged in as an administrator
And I am viewing the summary of this order
@ui
@todo @ui
Scenario: Marking order's payment as refunded
When I mark this order's payment as refunded
Then I should be notified that the order's payment has been successfully refunded
And it should have payment with state refunded
@ui
@todo @ui
Scenario: Marking an order as refunded after refunding all its payments
When I mark this order's payment as refunded
Then it should have payment with state refunded

View file

@ -15,7 +15,7 @@ Feature: Shipments are in the state "ready" after checkout
And the customer chose "Free" shipping method with "Cash on Delivery" payment
And I am logged in as an administrator
@ui @api
@api @ui
Scenario: Checking shipment state of a placed order
When I view the summary of the order "#00000666"
Then it should have shipment in state "Ready"

View file

@ -15,7 +15,7 @@ Feature: Shipping an order
And the customer chose "Free" shipping method with "Cash on Delivery" payment
And I am logged in as an administrator
@ui @api
@api @ui
Scenario: Finalizing order's shipment
Given I view the summary of the order "#00000666"
When specify its tracking code as "#00044"
@ -23,13 +23,13 @@ Feature: Shipping an order
Then I should be notified that the order has been successfully shipped
And it should have shipment in state shipped
@ui @api
@api @ui
Scenario: Unable to finalize shipped order's shipment
Given this order has already been shipped
When I view the summary of the order "#00000666"
Then I should not be able to ship this order
@ui @api
@api @ui
Scenario: Checking the shipment state of a completed order
Given this order has already been shipped
When I browse orders

View file

@ -24,6 +24,17 @@ Feature: Modifying a customer billing address after an order has been placed
Then I should be notified that it has been successfully edited
And this order should have "Lucifer Morningstar", "Seaside Fwy", "90802", "Los Angeles", "United States" as its billing address
@ui @mink:chromedriver @no-api
Scenario: Being able to choose only provinces of the selected country
Given the store also has country "Poland"
And this country has the "Malopolska" province with "ML" code
And this country has the "Slaskie" province with "SL" code
When I view the summary of the order "#00000001"
And I want to modify a customer's billing address of this order
And I change the billing country to "Poland"
Then I should be able to choose the "Malopolska" province for the billing address
And I should be able to choose the "Slaskie" province for the billing address
@api @ui
Scenario: Modifying a customer's billing address when a product's price has been changed
Given the product "Suit" changed its price to "$300.00"

View file

@ -25,6 +25,17 @@ Feature: Modifying a customer shipping address after an order has been placed
Then I should be notified that it has been successfully edited
And this order should be shipped to "Lucifer Morningstar", "Seaside Fwy", "90802", "Los Angeles", "United States"
@ui @mink:chromedriver @no-api
Scenario: Being able to choose only provinces of the selected country
Given the store also has country "Poland"
And this country has the "Malopolska" province with "ML" code
And this country has the "Slaskie" province with "SL" code
When I view the summary of the order "#00000001"
And I want to modify a customer's shipping address of this order
And I change the shipping country to "Poland"
Then I should be able to choose the "Malopolska" province for the shipping address
And I should be able to choose the "Slaskie" province for the shipping address
@api @ui
Scenario: Modifying a customer's shipping address when a product's price has been changed
Given the product "Suit" changed its price to "$300.00"

View file

@ -10,7 +10,7 @@ Feature: Being unable to see details of a cart
And the customer added "PHP T-Shirt" product to the cart
And I am logged in as an administrator
@ui @api
@todo @ui @api
Scenario: Being unable to see the details of a cart
When I try to view the summary of the customer's latest cart
Then I should be informed that the order does not exist

View file

@ -16,7 +16,7 @@ Feature: Seeing basic information about an order
And the customer chose "Free" shipping method with "Cash on Delivery" payment
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Seeing basic information about an order
When I view the summary of the order "#00000666"
Then it should have been placed by the customer "lucy@teamlucifer.com"

View file

@ -16,7 +16,7 @@ Feature: Seeing aggregated discounts of an order
And there is a customer "robin.hood@sherwood.com" that placed an order "#00000006"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Seeing shipping and order promotions, but the shipping promotion is not aggregated in summary's promotion total
Given the customer bought 2 "Longbow" products
And the customer chose "DHL" shipping method to "United States" with "Cash on Delivery" payment
@ -28,7 +28,7 @@ Feature: Seeing aggregated discounts of an order
And the order's shipping total should be "$5.00"
And the order's total should be "$285.00"
@api @ui
@api @todo @ui
Scenario: Seeing multiple order promotions aggregated in summary
Given there is a promotion "Big order discount"
And it gives "$70.00" discount to every order with quantity at least 3

View file

@ -20,7 +20,7 @@ Feature: Seeing aggregated taxes of an order
And there is a customer "charles.the.great@medieval.com" that placed an order "#00000001"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Seeing aggregated taxes of products and shipping
Given the customer bought a single "Composite bow"
And the customer chose "DHL" shipping method to "United States" with "Offline" payment
@ -31,7 +31,7 @@ Feature: Seeing aggregated taxes of an order
And the order's tax total should be "$25.30"
And the order's total should be "$135.30"
@api @ui
@api @todo @ui
Scenario: Seeing aggregated taxes of multiple products from different tax rates and shipping
Given the customer bought a single "Composite bow"
And the customer bought a "Claymore" and a "Bastard sword"

View file

@ -22,7 +22,7 @@ Feature: Seeing the currency an order has been placed in on it's details page
And there is a customer "Satin" identified by an email "satin@teamlucifer.com" and a password "pswd"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: All prices are in the base currency when the client haven't chosen any other
Given there is a customer "satin@teamlucifer.com" that placed an order "#00000666"
And the customer bought a single "Angel T-Shirt"

View file

@ -15,7 +15,7 @@ Feature: Seeing discounts of an order
And there is a customer "lucy@teamlucifer.com" that placed an order "#00000666"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Seeing promotion discount on order while buying at least 3 items
Given the promotion gives "$15.00" discount to every order with quantity at least 3
And the customer bought 4 "Angel T-Shirt" products
@ -26,7 +26,7 @@ Feature: Seeing discounts of an order
And the order's promotion discount should be "-$15.00" from "Holiday promotion" promotion
And the order's total should be "$141.00"
@api @ui
@api @todo @ui
Scenario: Seeing promotion discount on order's items while buying a product from a promoted taxon
Given the promotion gives "$10.00" off on every product classified as "T-Shirts"
And the customer bought a single "Angel T-Shirt"

View file

@ -23,7 +23,7 @@ Feature: Seeing order item detailed data
And the customer chose "Free" shipping method to "United States" with "Cash on Delivery" payment
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Seeing details of item in one row
Given I view the summary of the order "#00000666"
When I check "Marvel T-Shirt" data

View file

@ -15,7 +15,7 @@ Feature: Seeing included in price taxes of order items
And there is a customer "lucy@teamlucifer.com" that placed an order "#00000666"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Seeing included in price taxes of order items are not counted in taxes total
Given the customer bought 2 "Winchester M1866" products
And the customer chose "Free" shipping method to "United States" with "Offline" payment

View file

@ -15,7 +15,7 @@ Feature: Seeing taxes of order items
And there is a customer "lucy@teamlucifer.com" that placed an order "#00000666"
And I am logged in as an administrator
@api @ui
@api @todo @ui
Scenario: Seeing taxes of order items
Given the customer bought a "PHP T-Shirt" and a "Symfony2 T-Shirt"
And the customer chose "Free" shipping method to "United States" with "Offline" payment

Some files were not shown because too many files have changed in this diff Show more