Skip to content

Commit

Permalink
Add BDD test for deleting currencies with short codes
Browse files Browse the repository at this point in the history
Tests deletion of a currency with a code of only a single character.
Previously this failed.
  • Loading branch information
nick-prater committed Feb 17, 2020
1 parent 9a92b8f commit 6ac7d73
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions xt/66-cucumber/05-settings/currency.feature
Expand Up @@ -41,8 +41,7 @@ Scenario: Delete a currency
Then I should see the Edit currencies screen
And I expect the report to contain 2 rows


Scenario: Delete an exchange rate containing query string characters
Scenario: Delete a currency containing query string characters
Given the following currency:
| currency | description |
| &&? | test currency |
Expand All @@ -53,3 +52,14 @@ Scenario: Delete an exchange rate containing query string characters
Then I should see the Edit currencies screen
And I expect the report to contain 3 rows

Scenario: Delete a currency with less than three characters
Given the following currency:
| currency | description |
| A | test currency |
When I navigate the menu and select the item at "System > Currency > Edit currencies"
Then I should see the Edit currencies screen
And I expect the report to contain 4 rows
When I click "[delete]" for the row with ID "A"
Then I should see the Edit currencies screen
And I expect the report to contain 3 rows

0 comments on commit 6ac7d73

Please sign in to comment.