17415: Download dir fix
[arvados-workbench2.git] / cypress / plugins / index.js
index 67262bcbef5da9daeab036bd634742c87a7f9369..132f9b0d1f402dbbf3b7fd865e39be4e3feb8877 100644 (file)
@@ -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
      };