summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-01-24 14:48:02 +0100
committerRémy Coutable <remy@rymai.me>2018-01-24 14:48:02 +0100
commit93e2876f0fa95209b629c69da5cb9d52f9552f37 (patch)
tree55ba065dc4628fc5af0d05eb0dbc4e1f8c0e66f4
parent09da89e634c197919b129ad0f781c3cec9b93c37 (diff)
downloadgitlab-ce-42361-workaround.tar.gz
Workaround a recaptcha pop-up that cannot be tested42361-workaround
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--spec/features/issues/spam_issues_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/features/issues/spam_issues_spec.rb b/spec/features/issues/spam_issues_spec.rb
index 53706ef84bc..12b3992656a 100644
--- a/spec/features/issues/spam_issues_spec.rb
+++ b/spec/features/issues/spam_issues_spec.rb
@@ -34,6 +34,8 @@ describe 'New issue', :js do
click_button 'Submit issue'
+ 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')