Improve tests

This commit is contained in:
Filipa Lacerda 2018-01-12 14:31:48 +00:00
parent f765daa7b4
commit 8f55de749b
No known key found for this signature in database
GPG Key ID: 9CA3FDE4D1E2F1C8
1 changed files with 6 additions and 2 deletions

View File

@ -384,9 +384,13 @@ feature 'Jobs' do
expect(page).to have_link('Trigger this manual action')
end
it 'plays manual action' do
it 'plays manual action', :js do
click_link 'Trigger this manual action'
expect(page).not_to have_link('Trigger this manual action')
wait_for_requests
expect(page).to have_content('This job has not been triggered')
expect(page).to have_content('This job is stuck, because the project doesn\'t have any runners online assigned to it.')
expect(page).to have_content('pending')
end
end