diff options
author | Stan Hu <stanhu@gmail.com> | 2018-04-06 14:25:08 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-04-06 14:25:08 -0700 |
commit | c527eadb74493528d415b34e4dcde91ada8b0ae6 (patch) | |
tree | 517336d48126266cc0674e10de164bf662bf0fc9 /app | |
parent | fe96152d8beab2f7f9fe8bdf1a8552fb0d98ebae (diff) | |
download | gitlab-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 'app')
-rw-r--r-- | app/views/shared/_recaptcha_form.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_recaptcha_form.html.haml b/app/views/shared/_recaptcha_form.html.haml index 93a4301f366..a0ba1afc284 100644 --- a/app/views/shared/_recaptcha_form.html.haml +++ b/app/views/shared/_recaptcha_form.html.haml @@ -10,7 +10,7 @@ = hidden_field(resource_name, field, value: value) = hidden_field_tag(:spam_log_id, spammable.spam_log.id) = hidden_field_tag(:recaptcha_verification, true) - = recaptcha_tags script: script, callback: 'recaptchaDialogCallback' + = recaptcha_tags script: script, callback: 'recaptchaDialogCallback' unless Rails.env.test? -# Yields a block with given extra params. = yield |