From: Daniel Kutyła Date: Fri, 16 Apr 2021 22:32:19 +0000 (+0200) Subject: 17415: Download dir fix X-Git-Tag: 2.2.0~12^2~34 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/aa2fde93e604c3f04b3a228d68b9627d79e6ba76 17415: Download dir fix Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła --- 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 };