You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.1 KiB
84 lines
2.1 KiB
4 years ago
|
import * as fs from 'fs'
|
||
|
|
||
|
const crxFile = fs.readFileSync('apps/remix-ide/test-browser/extensions/chrome/metamask.crx')
|
||
|
const metamaskExtension = Buffer.from(crxFile).toString('base64')
|
||
|
|
||
|
module.exports = {
|
||
|
'src_folders': ['apps/remix-ide-e2e/src/tests'],
|
||
|
'output_folder': 'apps/remix-ide-e2e/src/reports',
|
||
|
'custom_commands_path': ['apps/remix-ide-e2e/src/commands'],
|
||
|
'custom_assertions_path': '',
|
||
|
'page_objects_path': '',
|
||
|
'globals_path': '',
|
||
|
|
||
|
'test_settings': {
|
||
|
'default': {
|
||
|
'selenium_port': 4444,
|
||
|
'selenium_host': 'localhost',
|
||
|
'globals': {
|
||
|
'waitForConditionTimeout': 10000,
|
||
|
'asyncHookTimeout': 100000
|
||
|
},
|
||
|
'screenshots': {
|
||
|
'enabled': true,
|
||
|
'path': 'apps/remix-ide-e2e/reports/screenshots',
|
||
|
'on_failure': true,
|
||
|
'on_error': true
|
||
|
},
|
||
|
'desiredCapabilities': {
|
||
|
'browserName': 'firefox',
|
||
|
'javascriptEnabled': true,
|
||
|
'acceptSslCerts': true
|
||
|
},
|
||
|
'exclude': ['apps/remix-ide-e2e/test-browser/tests/runAndDeploy.js']
|
||
|
},
|
||
|
|
||
|
'chrome': {
|
||
|
'desiredCapabilities': {
|
||
|
'browserName': 'chrome',
|
||
|
'javascriptEnabled': true,
|
||
|
'acceptSslCerts': true,
|
||
|
'goog:chromeOptions': {
|
||
|
'args': ['window-size=2560,1440', 'start-fullscreen']
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
|
||
|
'chrome-runAndDeploy': {
|
||
|
'desiredCapabilities': {
|
||
|
'browserName': 'chrome',
|
||
|
'javascriptEnabled': true,
|
||
|
'acceptSslCerts': true,
|
||
|
'goog:chromeOptions': {
|
||
|
'args': ['window-size=2560,1440', 'start-fullscreen'],
|
||
|
'extensions': [metamaskExtension]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
|
||
|
'safari': {
|
||
|
'desiredCapabilities': {
|
||
|
'browserName': 'safari',
|
||
|
'javascriptEnabled': true,
|
||
|
'acceptSslCerts': true
|
||
|
}
|
||
|
},
|
||
|
|
||
|
'ie': {
|
||
|
'desiredCapabilities': {
|
||
|
'browserName': 'internet explorer',
|
||
|
'javascriptEnabled': true,
|
||
|
'acceptSslCerts': true
|
||
|
}
|
||
|
},
|
||
|
|
||
|
'firefox': {
|
||
|
'desiredCapabilities': {
|
||
|
'browserName': 'firefox',
|
||
|
'javascriptEnabled': true,
|
||
|
'acceptSslCerts': true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|