Updates i18n on specs
This commit is contained in:
@@ -13,20 +13,20 @@ feature "Proposal's dashboard" do
|
|||||||
end
|
end
|
||||||
|
|
||||||
scenario 'My proposal has a link to edit the proposal' do
|
scenario 'My proposal has a link to edit the proposal' do
|
||||||
expect(page).to have_link('Edit')
|
expect(page).to have_link('Edit proposal')
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'My proposal has a link to retire the proposal' do
|
scenario 'My proposal has a link to retire the proposal' do
|
||||||
expect(page).to have_link('Retire')
|
expect(page).to have_link('Retire proposal')
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'My proposal has a link to publish the proposal' do
|
scenario 'My proposal has a link to publish the proposal' do
|
||||||
expect(page).to have_link('Publish')
|
expect(page).to have_link('Publish proposal')
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario "Publish link dissapears after proposal's publication" do
|
scenario "Publish link dissapears after proposal's publication" do
|
||||||
click_link 'Publish'
|
click_link 'Publish proposal'
|
||||||
expect(page).not_to have_link('Publish')
|
expect(page).not_to have_link('Publish proposal')
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'Dashboard progress shows current goal', js: true do
|
scenario 'Dashboard progress shows current goal', js: true do
|
||||||
|
|||||||
@@ -442,7 +442,7 @@ feature 'Proposals' do
|
|||||||
expect(page.html).not_to include "<script>alert('hey')</script>"
|
expect(page.html).not_to include "<script>alert('hey')</script>"
|
||||||
|
|
||||||
click_link 'Dashboard'
|
click_link 'Dashboard'
|
||||||
click_link 'Edit'
|
click_link 'Edit proposal'
|
||||||
|
|
||||||
expect(page).to have_current_path(edit_proposal_path(Proposal.last))
|
expect(page).to have_current_path(edit_proposal_path(Proposal.last))
|
||||||
expect(page).not_to have_link('click me')
|
expect(page).not_to have_link('click me')
|
||||||
@@ -518,8 +518,8 @@ feature 'Proposals' do
|
|||||||
click_link 'Dashboard'
|
click_link 'Dashboard'
|
||||||
end
|
end
|
||||||
|
|
||||||
click_link 'Retire'
|
click_link 'Retire proposal'
|
||||||
|
|
||||||
expect(page).to have_current_path(retire_form_proposal_path(proposal))
|
expect(page).to have_current_path(retire_form_proposal_path(proposal))
|
||||||
|
|
||||||
select 'Duplicated', from: 'proposal_retired_reason'
|
select 'Duplicated', from: 'proposal_retired_reason'
|
||||||
|
|||||||
Reference in New Issue
Block a user