mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
[saas-e2e] initial revision of SaaS E2E tests running in the dev-env (#24311)
* [saas-e2e] initial revision of SaaS E2E tests running in the dev-env * [v1] make rubocop happy * [v1] make rubocop happy * [saas-e2e] more retries for webpack startup check Co-authored-by: Alf Eaton <alf.eaton@overleaf.com> * [web] restrict e2e_test_setup.mjs to running in the dev-env Co-authored-by: Mathias Jakobsen <mathias.jakobsen@overleaf.com> * [saas-e2e] import latest split-tests from production --------- Co-authored-by: Alf Eaton <alf.eaton@overleaf.com> Co-authored-by: Mathias Jakobsen <mathias.jakobsen@overleaf.com> GitOrigin-RevId: 034343ee56b8d059090d8a5de74eaac24429b527
This commit is contained in:
committed by
Copybot
co-authored by
Alf Eaton
Mathias Jakobsen
parent
13bf214a3c
commit
7b69d61540
@@ -21,6 +21,9 @@ export function ReCaptcha2({
|
||||
if (site && recaptchaDisabled[site]) {
|
||||
return null
|
||||
}
|
||||
if (process.env.NODE_ENV === 'development' && window.Cypress) {
|
||||
return null // Disable captcha for E2E tests in dev-env.
|
||||
}
|
||||
return (
|
||||
<ReCAPTCHA
|
||||
ref={recaptchaRef}
|
||||
|
||||
Reference in New Issue
Block a user