From aa2fde93e604c3f04b3a228d68b9627d79e6ba76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kuty=C5=82a?= Date: Sat, 17 Apr 2021 00:32:19 +0200 Subject: [PATCH] 17415: Download dir fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła --- cypress/plugins/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index 67262bcb..132f9b0d 100644 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -27,7 +27,7 @@ module.exports = (on, config) => { // `config` is the resolved Cypress config on("before:browser:launch", (browser = {}, launchOptions) => { const downloadDirectory = path.join(__dirname, "..", "downloads"); - if (browser.family === "chromium") { + if (browser.family === 'chromium' && browser.name !== 'electron') { launchOptions.preferences.default["download"] = { default_directory: downloadDirectory }; -- 2.30.2