DEV: Allow `CAPYBARA_REMOTE_DRIVER_URL` through webmock (#23476)

Why this change?

When using a remote capybara driver configured through the
`CAPYBARA_REMOTE_DRIVER_URL` env, webmock is thinking that is an
external request and blocking it. As such, we need to set the URL to the
allowlist for webmock.
This commit is contained in:
Alan Guo Xiang Tan 2023-09-08 11:17:08 +08:00 committed by GitHub
parent 6beed147cd
commit 8ce5b82aa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -294,7 +294,8 @@ RSpec.configure do |config|
allow: [
*MinioRunner.config.minio_urls,
URI(MinioRunner::MinioBinary.platform_binary_url).host,
],
ENV["CAPYBARA_REMOTE_DRIVER_URL"],
].compact,
)
if ENV["CAPYBARA_DEFAULT_MAX_WAIT_TIME"].present?