summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2018-01-24 17:41:40 +0000
committerLuke Bennett <lbennett@gitlab.com>2018-01-24 20:22:26 +0000
commit668d81a07231be584533ea043b76c675b113a1bb (patch)
tree166913f319cc3d2ba9d63bfd045c3eded9b6b5b1
parenta1f878b8456a8f6104805cf982b2234ed463f92a (diff)
downloadgitlab-ce-10-4-stable-patch-1.tar.gz
Merge branch '42361-workaround' into 'master'10-4-stable-patch-1
Resolve "Spec failure in ./spec/features/issues/spam_issues_spec.rb" Closes #42361 See merge request gitlab-org/gitlab-ce!16671 (cherry picked from commit a403011e4f7adae339a3a8584e22a75f4872c3c5) c0d7dd38 Workaround a recaptcha pop-up that cannot be tested
-rw-r--r--spec/features/issues/spam_issues_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/features/issues/spam_issues_spec.rb b/spec/features/issues/spam_issues_spec.rb
index 53706ef84bc..c7cfd01f588 100644
--- a/spec/features/issues/spam_issues_spec.rb
+++ b/spec/features/issues/spam_issues_spec.rb
@@ -34,6 +34,9 @@ describe 'New issue', :js do
click_button 'Submit issue'
+ # reCAPTCHA alerts when it can't contact the server, so just accept it and move on
+ page.driver.browser.switch_to.alert.accept
+
# it is impossible to test recaptcha automatically and there is no possibility to fill in recaptcha
# recaptcha verification is skipped in test environment and it always returns true
expect(page).not_to have_content('issue title')