|
|
@ -1,8 +1,9 @@ |
|
|
|
|
|
|
|
const os = require('os'); |
|
|
|
|
|
|
|
|
|
|
|
module.exports = { |
|
|
|
module.exports = { |
|
|
|
src_folders: ['build-e2e/remixdesktop/test/tests/app'], |
|
|
|
src_folders: ['build-e2e/remixdesktop/test/tests/app'], |
|
|
|
output_folder: './reports/tests', |
|
|
|
output_folder: './reports/tests', |
|
|
|
custom_commands_path: ['build-e2e/remix-ide-e2e/src/commands'], |
|
|
|
custom_commands_path: ['build-e2e/remix-ide-e2e/src/commands'], |
|
|
|
custom_assertions_path: '', |
|
|
|
|
|
|
|
page_objects_path: '', |
|
|
|
page_objects_path: '', |
|
|
|
globals_path: '', |
|
|
|
globals_path: '', |
|
|
|
test_settings: { |
|
|
|
test_settings: { |
|
|
@ -22,101 +23,41 @@ module.exports = { |
|
|
|
webdriver: { |
|
|
|
webdriver: { |
|
|
|
start_process: true, |
|
|
|
start_process: true, |
|
|
|
timeout_options: { |
|
|
|
timeout_options: { |
|
|
|
timeout: 60000, // 15 seconds
|
|
|
|
timeout: 60000, |
|
|
|
retry_attempts: 3 |
|
|
|
retry_attempts: 3 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
maclocal: { |
|
|
|
|
|
|
|
desiredCapabilities: { |
|
|
|
desiredCapabilities: { |
|
|
|
browserName: 'chrome', |
|
|
|
browserName: 'chrome', |
|
|
|
javascriptEnabled: true, |
|
|
|
javascriptEnabled: true, |
|
|
|
acceptSslCerts: true, |
|
|
|
acceptSslCerts: true, |
|
|
|
'goog:chromeOptions': { |
|
|
|
'goog:chromeOptions': (() => { |
|
|
|
"binary": "release/mac/Remix-Desktop.app/Contents/MacOS/Remix-Desktop", |
|
|
|
const type = os.type(); |
|
|
|
"args": [ |
|
|
|
const arch = os.arch(); |
|
|
|
"--e2e-local", |
|
|
|
let binaryPath = ""; |
|
|
|
] |
|
|
|
// Check if running on CircleCI or locally
|
|
|
|
} |
|
|
|
let args = process.env.CIRCLECI ? ["--e2e"] : ["--e2e-local"]; |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
switch (type) { |
|
|
|
maclocalarm64: { |
|
|
|
case 'Windows_NT': |
|
|
|
desiredCapabilities: { |
|
|
|
binaryPath = "./release/win-unpacked/Remix-Desktop.exe"; |
|
|
|
browserName: 'chrome', |
|
|
|
break; |
|
|
|
javascriptEnabled: true, |
|
|
|
case 'Darwin': |
|
|
|
acceptSslCerts: true, |
|
|
|
binaryPath = arch === 'x64' ?
|
|
|
|
'goog:chromeOptions': { |
|
|
|
"release/mac/Remix-Desktop.app/Contents/MacOS/Remix-Desktop" : |
|
|
|
"binary": "release/mac-arm64/Remix-Desktop.app/Contents/MacOS/Remix-Desktop", |
|
|
|
"release/mac-arm64/Remix-Desktop.app/Contents/MacOS/Remix-Desktop"; |
|
|
|
"args": [ |
|
|
|
break; |
|
|
|
"--e2e-local", |
|
|
|
case 'Linux': |
|
|
|
] |
|
|
|
binaryPath = "release/linux-unpacked/remixdesktop"; |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
linuxlocal: { |
|
|
|
return { |
|
|
|
desiredCapabilities: { |
|
|
|
binary: binaryPath, |
|
|
|
browserName: 'chrome', |
|
|
|
args: args |
|
|
|
javascriptEnabled: true, |
|
|
|
}; |
|
|
|
acceptSslCerts: true, |
|
|
|
})() |
|
|
|
'goog:chromeOptions': { |
|
|
|
|
|
|
|
"binary": "release/linux-unpacked/remixdesktop", |
|
|
|
|
|
|
|
"args": [ |
|
|
|
|
|
|
|
"--e2e-local", |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
linux: { |
|
|
|
|
|
|
|
desiredCapabilities: { |
|
|
|
|
|
|
|
browserName: 'chrome', |
|
|
|
|
|
|
|
javascriptEnabled: true, |
|
|
|
|
|
|
|
acceptSslCerts: true, |
|
|
|
|
|
|
|
'goog:chromeOptions': { |
|
|
|
|
|
|
|
"binary": "release/linux-unpacked/remixdesktop", |
|
|
|
|
|
|
|
"args": [ |
|
|
|
|
|
|
|
"--e2e", |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
mac: { |
|
|
|
|
|
|
|
desiredCapabilities: { |
|
|
|
|
|
|
|
browserName: 'chrome', |
|
|
|
|
|
|
|
javascriptEnabled: true, |
|
|
|
|
|
|
|
acceptSslCerts: true, |
|
|
|
|
|
|
|
'goog:chromeOptions': { |
|
|
|
|
|
|
|
"binary": "release/mac-arm64/Remix-Desktop.app/Contents/MacOS/Remix-Desktop", |
|
|
|
|
|
|
|
"args": [ |
|
|
|
|
|
|
|
"--e2e", |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
winlocal: { |
|
|
|
|
|
|
|
desiredCapabilities: { |
|
|
|
|
|
|
|
browserName: 'chrome', |
|
|
|
|
|
|
|
javascriptEnabled: true, |
|
|
|
|
|
|
|
acceptSslCerts: true, |
|
|
|
|
|
|
|
'goog:chromeOptions': { |
|
|
|
|
|
|
|
"binary": "./release/win-unpacked/Remix-Desktop.exe", |
|
|
|
|
|
|
|
"args": [ |
|
|
|
|
|
|
|
"--e2e-local", |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
win: { |
|
|
|
|
|
|
|
desiredCapabilities: { |
|
|
|
|
|
|
|
browserName: 'chrome', |
|
|
|
|
|
|
|
javascriptEnabled: true, |
|
|
|
|
|
|
|
acceptSslCerts: true, |
|
|
|
|
|
|
|
'goog:chromeOptions': { |
|
|
|
|
|
|
|
"binary": "./release/win-unpacked/Remix-Desktop.exe", |
|
|
|
|
|
|
|
"args": [ |
|
|
|
|
|
|
|
"--e2e", |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|