17415: Fixed failing test
[arvados-workbench2.git] / cypress / plugins / index.js
index 67262bcbef5da9daeab036bd634742c87a7f9369..18ce9ba20a8938ec09a7ef15d7f95d40515d8fa8 100644 (file)
@@ -26,8 +26,8 @@ module.exports = (on, config) => {
   // `on` is used to hook into various events Cypress emits
   // `config` is the resolved Cypress config
   on("before:browser:launch", (browser = {}, launchOptions) => {
-    const downloadDirectory = path.join(__dirname, "..", "downloads");
-    if (browser.family === "chromium") {
+    const downloadDirectory = path.resolve(path.join(__dirname, "..", "downloads"));
+    if (browser.family === 'chromium' && browser.name !== 'electron') {
      launchOptions.preferences.default["download"] = {
       default_directory: downloadDirectory
      };