summaryrefslogtreecommitdiff
path: root/spec/features/issues
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-04-06 14:25:08 -0700
committerStan Hu <stanhu@gmail.com>2018-04-06 14:25:08 -0700
commitc527eadb74493528d415b34e4dcde91ada8b0ae6 (patch)
tree517336d48126266cc0674e10de164bf662bf0fc9 /spec/features/issues
parentfe96152d8beab2f7f9fe8bdf1a8552fb0d98ebae (diff)
downloadgitlab-ce-c527eadb74493528d415b34e4dcde91ada8b0ae6.tar.gz
Fix the reCAPTCHA spec failures by not rendering the widget in test mode
We've seen changes in behavior in the reCAPTCHA widget that led to test failures. To avoid these issues, don't render the widget at all in test mode. Closes #45138
Diffstat (limited to 'spec/features/issues')
-rw-r--r--spec/features/issues/spam_issues_spec.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/spec/features/issues/spam_issues_spec.rb b/spec/features/issues/spam_issues_spec.rb
index a75ca1d42b3..73022afbda2 100644
--- a/spec/features/issues/spam_issues_spec.rb
+++ b/spec/features/issues/spam_issues_spec.rb
@@ -34,9 +34,6 @@ 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')