diff options
author | Rémy Coutable <remy@rymai.me> | 2018-01-24 16:48:02 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-01-24 19:54:09 +0300 |
commit | c0d7dd38f918dc1ee1975d9bf5e2b61e90a87cf0 (patch) | |
tree | 2c4e1a7807a8fa13ec9ca0dc85d60c344d0b7fe3 /spec/features/issues | |
parent | 09da89e634c197919b129ad0f781c3cec9b93c37 (diff) |
Workaround a recaptcha pop-up that cannot be tested
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/features/issues')
-rw-r--r-- | spec/features/issues/spam_issues_spec.rb | 3 |
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') |