Sylius/features/frontend/cart_inclusive_tax.feature
2015-05-21 10:57:22 +02:00

38 lines
1.6 KiB
Gherkin

@checkout
Feature: Tax included in price
In order to handle product taxation
As a store owner
I want to apply taxes during checkout
Background:
Given there are following taxonomies defined:
| name |
| Category |
And taxonomy "Category" has following taxons:
| Clothing > PHP T-Shirts |
And there is default currency configured
And there is default channel configured
And the following zones are defined:
| name | type | members |
| Germany | country | Germany |
And there are following tax categories:
| name |
| Taxable Goods |
And the following tax rates exist:
| category | zone | name | amount | included in price? |
| Taxable Goods | Germany | Germany VAT | 23% | yes |
And the following products exist:
| name | price | taxons | tax category |
| PHP Top | 85 | PHP T-Shirts | Taxable Goods |
And all products assigned to "DEFAULT-WEB" channel
And the default tax zone is "Germany"
Scenario: Correct amounts are displayed for inclusive taxes
Given I am on the store homepage
And I follow "PHP T-Shirts"
And I click "PHP Top"
When I fill in "Quantity" with "3"
And I press "Add to cart"
Then I should be on the cart summary page
And "Tax total: 47.68" should appear on the page
And "Grand total: 255.00" should appear on the page