diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-11-12 05:40:16 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-11-12 05:40:16 +0300 |
commit | e6c9ed6b3166343626083e02dcfd31541d6a0709 (patch) | |
tree | 58bff22a5345adaacf64eba4350a5871a20b99ca /tests | |
parent | da230cbb8518a70b8c396024a5c7a7147fc916bf (diff) |
Ignore SSL errors in UI tests (#15148)
Most of our UI tests are running on http but sometimes some actions may require HTTPS and redirect to HTTPS automatically.
I had this issue locally and got ` Error: net::ERR_CERT_AUTHORITY_INVALID at http://example.com/tests/PHPUnit/proxy/?idSite=1&period=day&date=2010-01-03&module=MobileMessaging&action=inde`
I reckon there shouldn't be a down side to ignoring SSL errors in our tests?
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/screenshot-testing/run-tests.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/screenshot-testing/run-tests.js b/tests/lib/screenshot-testing/run-tests.js index c365d43669..6625ba4908 100644 --- a/tests/lib/screenshot-testing/run-tests.js +++ b/tests/lib/screenshot-testing/run-tests.js @@ -20,7 +20,7 @@ require('./support/fs-extras'); main(); async function main() { - const browser = await puppeteer.launch({ args: ['--no-sandbox'] }); + const browser = await puppeteer.launch({ args: ['--no-sandbox', '--ignore-certificate-errors'] }); const webpage = await browser.newPage(); await webpage._client.send('Animation.setPlaybackRate', { playbackRate: 50 }); // make animations run 50 times faster, so we don't have to wait as much |