summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-01-12 14:31:48 +0000
committerFilipa Lacerda <filipa@gitlab.com>2018-01-12 14:31:48 +0000
commit8f55de749b353cad5b3f172afbfb82c083514eed (patch)
treed2b843472014c2adb3b70a95f54fa0d0fda3b59c
parentf765daa7b4f38c708fc710aa5df714620126ecb8 (diff)
downloadgitlab-ce-8f55de749b353cad5b3f172afbfb82c083514eed.tar.gz
Improve tests
-rw-r--r--spec/features/projects/jobs_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb
index e3dcab0fe8d..a662c0b9673 100644
--- a/spec/features/projects/jobs_spec.rb
+++ b/spec/features/projects/jobs_spec.rb
@@ -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