Updates i18n on specs

This commit is contained in:
decabeza
2018-10-08 11:26:53 +02:00
parent 775b4698be
commit 4ea1f7732b
2 changed files with 8 additions and 8 deletions

View File

@@ -13,20 +13,20 @@ feature "Proposal's dashboard" do
end
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
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
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
scenario "Publish link dissapears after proposal's publication" do
click_link 'Publish'
expect(page).not_to have_link('Publish')
click_link 'Publish proposal'
expect(page).not_to have_link('Publish proposal')
end
scenario 'Dashboard progress shows current goal', js: true do

View File

@@ -442,7 +442,7 @@ feature 'Proposals' do
expect(page.html).not_to include "<script>alert('hey')</script>"
click_link 'Dashboard'
click_link 'Edit'
click_link 'Edit proposal'
expect(page).to have_current_path(edit_proposal_path(Proposal.last))
expect(page).not_to have_link('click me')
@@ -518,8 +518,8 @@ feature 'Proposals' do
click_link 'Dashboard'
end
click_link 'Retire'
click_link 'Retire proposal'
expect(page).to have_current_path(retire_form_proposal_path(proposal))
select 'Duplicated', from: 'proposal_retired_reason'