From: Daniel Kutyła Date: Mon, 19 Apr 2021 20:08:12 +0000 (+0200) Subject: 17415: Another fix X-Git-Tag: 2.2.0~12^2~32 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/927b67520cb7fafada0fdbb756ae9639a4ac79d8 17415: Another fix Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła --- diff --git a/cypress/integration/collection.spec.js b/cypress/integration/collection.spec.js index ea5076e1..3813d02e 100644 --- a/cypress/integration/collection.spec.js +++ b/cypress/integration/collection.spec.js @@ -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) => { diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index 18ce9ba2..132f9b0d 100644 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -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