diff --git a/spec/features/admin/administrator_tasks_spec.rb b/spec/features/admin/administrator_tasks_spec.rb index bcba8bb5c..6e960c26b 100644 --- a/spec/features/admin/administrator_tasks_spec.rb +++ b/spec/features/admin/administrator_tasks_spec.rb @@ -13,7 +13,7 @@ describe 'Administrator tasks' do visit admin_administrator_tasks_path end - it 'informs that there are no pending tasks' do + scenario 'informs that there are no pending tasks' do expect(page).to have_content('There are no pending tasks') end end @@ -25,15 +25,15 @@ describe 'Administrator tasks' do visit admin_administrator_tasks_path end - it 'shows the related proposal title' do + scenario 'shows the related proposal title' do expect(page).to have_content(task.source.proposal.title) end - it 'shows the requested action title' do + scenario 'shows the requested action title' do expect(page).to have_content(task.source.proposal_dashboard_action.title) end - it 'has a link that allows solving the request' do + scenario 'has a link that allows solving the request' do expect(page).to have_link('Solve') end end @@ -47,15 +47,15 @@ describe 'Administrator tasks' do click_link 'Solve' end - it 'contains a link to the proposal' do + scenario 'contains a link to the proposal' do expect(page).to have_link('Check the proposal details') end - it 'contains a button that solves the request' do + scenario 'contains a button that solves the request' do expect(page).to have_button('Mark as solved') end - it 'shows the comments added by the user during the request' do + scenario 'shows the comments added by the user during the request' do expect(page).to have_content(task.source.comments) end @@ -64,7 +64,7 @@ describe 'Administrator tasks' do click_button 'Mark as solved' end - it 'The proposal dissapears from the list' do + scenario 'The proposal dissapears from the list' do expect(page).not_to have_content(task.source.proposal.title) end end diff --git a/spec/features/admin/proposal_dashboard_actions_spec.rb b/spec/features/admin/proposal_dashboard_actions_spec.rb index 07ca3a1de..b7c624632 100644 --- a/spec/features/admin/proposal_dashboard_actions_spec.rb +++ b/spec/features/admin/proposal_dashboard_actions_spec.rb @@ -13,7 +13,7 @@ feature 'Admin proposal dasboard actions' do visit admin_proposal_dashboard_actions_path end - it 'shows that there are no records available' do + scenario 'shows that there are no records available' do expect(page).to have_content('No records found') end end @@ -25,7 +25,7 @@ feature 'Admin proposal dasboard actions' do visit admin_proposal_dashboard_actions_path end - it 'shows the action data' do + scenario 'shows the action data' do expect(page).to have_content(action.title) end end @@ -39,7 +39,7 @@ feature 'Admin proposal dasboard actions' do click_link 'Create' end - it 'Creates a new action' do + scenario 'Creates a new action' do fill_in 'proposal_dashboard_action_title', with: action.title fill_in 'proposal_dashboard_action_description', with: action.description @@ -58,7 +58,7 @@ feature 'Admin proposal dasboard actions' do click_link 'Edit' end - it 'Updates the action' do + scenario 'Updates the action' do fill_in 'proposal_dashboard_action_title', with: title click_button 'Save' @@ -73,7 +73,7 @@ feature 'Admin proposal dasboard actions' do visit admin_proposal_dashboard_actions_path end - it 'deletes the action', js: true do + scenario 'deletes the action', js: true do page.accept_confirm do click_link 'Delete' end