17415: Another fix
[arvados-workbench2.git] / cypress / plugins / index.js
index 18ce9ba20a8938ec09a7ef15d7f95d40515d8fa8..132f9b0d1f402dbbf3b7fd865e39be4e3feb8877 100644 (file)
@@ -26,7 +26,7 @@ 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.resolve(path.join(__dirname, "..", "downloads"));
+    const downloadDirectory = path.join(__dirname, "..", "downloads");
     if (browser.family === 'chromium' && browser.name !== 'electron') {
      launchOptions.preferences.default["download"] = {
       default_directory: downloadDirectory