fixes specs
This commit is contained in:
@@ -47,7 +47,7 @@ feature 'Admin budgets' do
|
||||
expect(page).to_not have_content(budget4.name)
|
||||
expect(page).to have_content(budget5.name)
|
||||
|
||||
click_link 'Current'
|
||||
click_link 'Open'
|
||||
expect(page).to have_content(budget1.name)
|
||||
expect(page).to have_content(budget2.name)
|
||||
expect(page).to have_content(budget3.name)
|
||||
@@ -55,8 +55,8 @@ feature 'Admin budgets' do
|
||||
expect(page).to_not have_content(budget5.name)
|
||||
end
|
||||
|
||||
scenario 'Current filter is properly highlighted' do
|
||||
filters_links = {'current' => 'Current', 'finished' => 'Finished'}
|
||||
scenario 'Open filter is properly highlighted' do
|
||||
filters_links = {'current' => 'Open', 'finished' => 'Finished'}
|
||||
|
||||
visit admin_budgets_path
|
||||
|
||||
@@ -110,7 +110,7 @@ feature 'Admin budgets' do
|
||||
visit admin_budgets_path
|
||||
|
||||
within("#budget_#{budget.id}") do
|
||||
click_link 'Info'
|
||||
click_link 'Edit headings groups'
|
||||
end
|
||||
|
||||
expect(page).to have_content 'No groups created yet.'
|
||||
@@ -124,7 +124,7 @@ feature 'Admin budgets' do
|
||||
expect(page).to_not have_content 'No groups created yet.'
|
||||
|
||||
visit admin_budgets_path
|
||||
click_link 'Yearly participatory budget'
|
||||
click_link 'Edit budget'
|
||||
|
||||
expect(page).to have_content 'Yearly participatory budget'
|
||||
expect(page).to_not have_content 'No groups created yet.'
|
||||
|
||||
@@ -262,7 +262,7 @@ feature 'Valuation budget investments' do
|
||||
scenario 'Edit dossier' do
|
||||
visit valuation_budget_budget_investments_path(@budget)
|
||||
within("#budget_investment_#{@investment.id}") do
|
||||
click_link "Edit"
|
||||
click_link "Edit dossier"
|
||||
end
|
||||
|
||||
fill_in 'budget_investment_price', with: '12345'
|
||||
@@ -381,7 +381,7 @@ feature 'Valuation budget investments' do
|
||||
scenario 'Validates price formats' do
|
||||
visit valuation_budget_budget_investments_path(@budget)
|
||||
within("#budget_investment_#{@investment.id}") do
|
||||
click_link "Edit"
|
||||
click_link "Edit dossier"
|
||||
end
|
||||
|
||||
fill_in 'budget_investment_price', with: '12345,98'
|
||||
|
||||
Reference in New Issue
Block a user