Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla@contractors.roche.com>
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
on("before:browser:launch", (browser = {}, launchOptions) => {
// `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");
+ const downloadDirectory = path.resolve(path.join(__dirname, "..", "downloads"));
if (browser.family === 'chromium' && browser.name !== 'electron') {
launchOptions.preferences.default["download"] = {
default_directory: downloadDirectory
if (browser.family === 'chromium' && browser.name !== 'electron') {
launchOptions.preferences.default["download"] = {
default_directory: downloadDirectory