Merge pull request #146 from oliverguenther/fix/fix_i18n_cuke

Fix broken cukes due to i18n changes.
pull/6827/head
ulferts 9 years ago
commit f718d6029a
  1. 2
      features/manage_budget.feature
  2. 6
      features/step_definitions/cost_object_steps.rb

@ -157,7 +157,7 @@ Feature: Managing Budgets
| 5 | labortestcomment2 | testuser |
And I go to the show page of the budget "budget1"
When I click on "Copy"
Then I should see "New Budget"
Then I should see "New budget"
And the planned material costs in row 1 should be "400.00 EUR"
And the planned labor costs in row 1 should be "296.00 EUR"
And the planned material costs in row 2 should be "240.00 EUR"

@ -22,7 +22,7 @@ When(/^I create a budget with the following:$/) do |table|
rows = table.rows_hash
steps %Q{And I toggle the "Budgets" submenu
And I follow "New Budget" within "#main-menu"
And I follow "New budget" within "#main-menu"
And I fill in "Subject" with "#{rows['subject']}"}
click_button(I18n.t(:button_create), :exact => true)
@ -37,7 +37,7 @@ When(/^I setup a budget with the following:$/) do |table|
rows = table.rows_hash
steps %Q{And I toggle the "Budgets" submenu
And I follow "New Budget" within "#main-menu"
And I follow "New budget" within "#main-menu"
And I fill in "Subject" with "#{rows['subject']}"}
end
@ -82,7 +82,7 @@ When(/^I (?:create|update) (?:a|the) (labor|material) item in row (\d+) with the
end
When(/^I add a new (labor|material) item$/) do | type|
steps %Q{ When I click on "Add Planned Costs" within "fieldset##{type}_budget_items_fieldset" }
steps %Q{ When I click on "Add planned costs" within "fieldset##{type}_budget_items_fieldset" }
end
Then (/^the planned (labor|material) costs in row (\d+) should be (.+)$/) do | type, row_nr, amount|

Loading…
Cancel
Save