17415: Another fix
authorDaniel Kutyła <daniel.kutyla@contractors.roche.com>
Mon, 19 Apr 2021 20:08:12 +0000 (22:08 +0200)
committerDaniel Kutyła <daniel.kutyla@contractors.roche.com>
Mon, 19 Apr 2021 20:08:12 +0000 (22:08 +0200)
Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla@contractors.roche.com>

cypress/integration/collection.spec.js
cypress/plugins/index.js

index ea5076e1e75e77460a1b37dbaad69b4fadf4b7f5..3813d02e9858cec11cf7131cb44945ffa7284562 100644 (file)
@@ -46,7 +46,7 @@ describe('Collection panel tests', function () {
             cy.get('[data-cy=context-menu]').contains('Open as network folder or S3 bucket').click();
             cy.get('[data-cy=download-button').click();
 
-            const filename = path.join(downloadsFolder, `${testCollection.name}.duck`);
+            const filename = path.resolve(path.join(downloadsFolder, `${testCollection.name}.duck`));
 
             cy.readFile(filename, { timeout: 15000 })
                 .then((body) => {
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