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

79 lines
3.4 KiB
Gherkin

@settings
Feature: General settings
In order configure my store SEO fields
As a store owner
I want to be able to edit general configuration
Background:
Given there are following currencies configured:
| code | exchange rate | enabled |
| USD | 0.76496 | yes |
| GBP | 1.16998 | no |
| EUR | 1.00000 | yes |
| AUD | 0.73986 | yes |
And there is default channel configured
And I am logged in as administrator
Scenario: Accessing the settings form
Given I am on the dashboard page
When I follow "General settings"
Then I should be on the general settings page
Scenario: Submitting empty parameter
Given I am on the general settings page
When I fill in "Page title" with ""
And I press "Save changes"
Then I should still be on the general settings page
And I should see "This value should not be blank."
Scenario: Saving the configuration
Given I am on the general settings page
When I press "Save changes"
Then I should still be on the general settings page
And I should see "Settings have been successfully updated."
Scenario: Editing the page title
Given I am on the general settings page
When I fill in "Page title" with "SuperStore.com - SALE!"
And I press "Save changes"
Then I should still be on the general settings page
And the "Page title" field should contain "SuperStore.com - SALE!"
And I should see "Settings have been successfully updated."
Scenario: Frontend store title changes after settings update
Given I am on the general settings page
And I fill in "Page title" with "FooShop.com - Sale!"
And I press "Save changes"
When I go to the website root
Then the page title should be "FooShop.com - Sale!"
Scenario: Editing the meta description
Given I am on the general settings page
When I fill in "Meta description" with "Best fashion store on the web."
And I press "Save changes"
Then I should still be on the general settings page
And the "Meta description" field should contain "Best fashion store on the web."
And I should see "Settings have been successfully updated."
Scenario: Editing the meta keywords
Given I am on the general settings page
When I fill in "Meta keywords" with "clothing, fashion, trends"
And I press "Save changes"
Then I should still be on the general settings page
And the "Meta keywords" field should contain "clothing, fashion, trends"
And I should see "Settings have been successfully updated."
Scenario: Changing default currency
Given I am on the general settings page
When I fill in "Default currency" with "USD"
And I press "Save changes"
Then I should still be on the general settings page
And the "Default currency" field should contain "USD"
And I should see "Settings have been successfully updated."
# Scenario: Changing language
# Given I am on the general settings page
# When I select "Polish" from "Language"
# And I press "Save changes"
# Then I should still be on the general settings page
# And I should see "Ustawienia ogólne"