mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[Behat] [DX] Renaming taxation tag
This commit is contained in:
parent
143ae0398f
commit
46a5c4097f
17 changed files with 28 additions and 31 deletions
|
|
@ -21,7 +21,7 @@
|
|||
<parameter key="sylius.behat.context.ui.admin.managing_payment_methods.class">Sylius\Behat\Context\Ui\Admin\ManagingPaymentMethodsContext</parameter>
|
||||
<parameter key="sylius.behat.context.ui.admin.managing_promotions.class">Sylius\Behat\Context\Ui\Admin\ManagingPromotionsContext</parameter>
|
||||
<parameter key="sylius.behat.context.ui.admin.managing_shipping_methods.class">Sylius\Behat\Context\Ui\Admin\ManagingShippingMethodsContext</parameter>
|
||||
<parameter key="sylius.behat.context.ui.admin.managing_tax_category.class">Sylius\Behat\Context\Ui\Admin\ManagingTaxCategoryContext</parameter>
|
||||
<parameter key="sylius.behat.context.ui.admin.managing_tax_categories.class">Sylius\Behat\Context\Ui\Admin\ManagingTaxCategoriesContext</parameter>
|
||||
<parameter key="sylius.behat.context.ui.admin.managing_tax_rate.class">Sylius\Behat\Context\Ui\Admin\ManagingTaxRateContext</parameter>
|
||||
<parameter key="sylius.behat.context.ui.admin.managing_zones.class">Sylius\Behat\Context\Ui\Admin\ManagingZonesContext</parameter>
|
||||
|
||||
|
|
@ -107,7 +107,7 @@
|
|||
<tag name="sylius.behat.context" />
|
||||
</service>
|
||||
|
||||
<service id="sylius.behat.context.ui.admin.managing_tax_category" class="%sylius.behat.context.ui.admin.managing_tax_category.class%" scope="scenario">
|
||||
<service id="sylius.behat.context.ui.admin.managing_tax_categories" class="%sylius.behat.context.ui.admin.managing_tax_categories.class%" scope="scenario">
|
||||
<argument type="service" id="sylius.behat.page.admin.tax_category.index" />
|
||||
<argument type="service" id="sylius.behat.page.admin.tax_category.create" />
|
||||
<argument type="service" id="sylius.behat.page.admin.tax_category.update" />
|
||||
|
|
|
|||
|
|
@ -3,32 +3,29 @@
|
|||
|
||||
default:
|
||||
suites:
|
||||
ui_cart:
|
||||
ui_applying_taxes:
|
||||
contexts_as_services:
|
||||
- sylius.behat.context.hook.doctrine_orm
|
||||
|
||||
- sylius.behat.context.transform.zone
|
||||
|
||||
- sylius.behat.context.transform.lexical
|
||||
- sylius.behat.context.transform.shared_storage
|
||||
- sylius.behat.context.transform.product
|
||||
- sylius.behat.context.transform.product_variant
|
||||
- sylius.behat.context.transform.shipping_method
|
||||
- sylius.behat.context.transform.shared_storage
|
||||
- sylius.behat.context.transform.tax_category
|
||||
|
||||
- sylius.behat.context.setup.channel
|
||||
- sylius.behat.context.setup.geographical
|
||||
- sylius.behat.context.setup.currency
|
||||
- sylius.behat.context.setup.payment
|
||||
- sylius.behat.context.setup.security
|
||||
- sylius.behat.context.setup.user
|
||||
- sylius.behat.context.setup.geographical
|
||||
- sylius.behat.context.setup.product
|
||||
- sylius.behat.context.setup.shipping
|
||||
- sylius.behat.context.setup.zone
|
||||
- sylius.behat.context.setup.taxation
|
||||
- sylius.behat.context.setup.user
|
||||
- sylius.behat.context.setup.zone
|
||||
- sylius.behat.context.setup.security
|
||||
|
||||
- sylius.behat.context.ui.checkout
|
||||
- sylius.behat.context.ui.cart
|
||||
- sylius.behat.context.ui.checkout
|
||||
- sylius.behat.context.ui.user
|
||||
|
||||
filters:
|
||||
tags: "@cart && @ui"
|
||||
tags: "@applying_taxes && @ui"
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
default:
|
||||
suites:
|
||||
ui_taxation:
|
||||
ui_managing_tax_categories:
|
||||
contexts_as_services:
|
||||
- sylius.behat.context.hook.doctrine_orm
|
||||
|
||||
|
|
@ -13,6 +13,6 @@ default:
|
|||
- sylius.behat.context.setup.security
|
||||
- sylius.behat.context.setup.taxation
|
||||
|
||||
- sylius.behat.context.ui.admin.managing_tax_category
|
||||
- sylius.behat.context.ui.admin.managing_tax_categories
|
||||
filters:
|
||||
tags: "@taxation && @ui"
|
||||
tags: "@managing_tax_categories && @ui"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@cart
|
||||
@applying_taxes
|
||||
Feature: Apply correct taxes based on customer data
|
||||
In order to pay proper amount when buying goods
|
||||
As a Customer
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@cart
|
||||
@applying_taxes
|
||||
Feature: Apply correct taxes for items with different tax rates
|
||||
In order to pay proper amount when buying goods from different tax categories
|
||||
As a Visitor
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@cart
|
||||
@applying_taxes
|
||||
Feature: Apply correct taxes for items with the same tax rate
|
||||
In order to pay proper amount when buying goods from the same tax category
|
||||
As a Visitor
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@cart
|
||||
@applying_taxes
|
||||
Feature: Apply correct taxes for products with different tax rates for different zones
|
||||
In order to pay proper amount when buying goods having different tax rates for different zones
|
||||
As a Customer
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@cart
|
||||
@applying_taxes
|
||||
Feature: Apply correct taxes on visitor cart
|
||||
In order to buy goods with correct taxes applied
|
||||
As a Visitor
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@cart
|
||||
@applying_taxes
|
||||
Feature: Apply different taxes for variants with different tax category
|
||||
In order to pay proper amount when buying goods with variants from different tax categories
|
||||
As a Visitor
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@cart
|
||||
@applying_taxes
|
||||
Feature: Not applying taxes for products without tax category
|
||||
In order to pay proper amount when buying goods without tax category
|
||||
As a Visitor
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@cart
|
||||
@applying_taxes
|
||||
Feature: Round taxes on order item level
|
||||
In order to avoid taxes amount inaccuracy
|
||||
As a Visitor
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@taxation
|
||||
@managing_tax_categories
|
||||
Feature: Adding a new tax category
|
||||
In order to apply different taxes to various products
|
||||
As an Administrator
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@taxation
|
||||
@managing_tax_categories
|
||||
Feature: Deleting a tax category
|
||||
In order to remove test, obsolete or incorrect tax categories
|
||||
As an Administrator
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@taxation
|
||||
@managing_tax_categories
|
||||
Feature: Editing tax category
|
||||
In order to change tax classification of my products
|
||||
As an Administrator
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@taxation
|
||||
@managing_tax_categories
|
||||
Feature: Tax category unique code validation
|
||||
In order to uniquely identify tax categories
|
||||
As an Administrator
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@taxation
|
||||
@managing_tax_categories
|
||||
Feature: Tax category validation
|
||||
In order to avoid making mistakes when managing a tax category
|
||||
As an Administrator
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ use Webmozart\Assert\Assert;
|
|||
/**
|
||||
* @author Łukasz Chruściel <lukasz.chrusciel@lakion.com>
|
||||
*/
|
||||
final class ManagingTaxCategoryContext implements Context
|
||||
final class ManagingTaxCategoriesContext implements Context
|
||||
{
|
||||
const RESOURCE_NAME = 'tax_category';
|
||||
|
||||
Loading…
Add table
Reference in a new issue