Skip to content

Instantly share code, notes, and snippets.

@ldusan84
Created October 19, 2013 10:59
Show Gist options
  • Save ldusan84/7054450 to your computer and use it in GitHub Desktop.
Save ldusan84/7054450 to your computer and use it in GitHub Desktop.
Feature: Exchange rates update
In order to have correct exchange rates
As a store owner
I need to be able to update them from external web service
Background:
Given I am logged in as administrator
And there are following exchange rates:
| currency | rate |
| USD | 0.76496 |
| GBP | 1.16998 |
| AUD | 0.73986 |
Scenario: Seeing "update exchange rates" button
Given I am on the exchange rate index page
Then I should see "update exchange rates" button
Scenario: Seeing "configure exchange rates settings" button
Given I am on the exchange rate index page
Then I should see "configure exchange rates settings" button
Scenario: Updating exchange rates
Given I am on the exchange rate index page
When I click "update exchange rates"
Then exchange rates should be updated
And I should see "Exchange rate has been successfully created."
Scenario: Accessing exchange rates configuration
Given I am on the exchange rate index page
When I click "configure exchange rates settings"
Then I should be on the exchange rates configuration index page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment