Support BrowserStack in UI testing

This commit is contained in:
Kazuhito Yokoi
2020-01-21 09:49:19 +09:00
committed by GitHub
parent ee6f6ae391
commit b49835c72f
4 changed files with 101 additions and 23 deletions

View File

@@ -27,6 +27,12 @@ var shortCutKeyMapForMac = {
};
function getShortCutKey(type) {
if (process.env.BROWSERSTACK) {
if (browser.desiredCapabilities.os === 'OS X') {
return shortCutKeyMapForMac[type];
}
return shortCutKeyMap[type];
}
if (os.type() === 'Darwin') {
return shortCutKeyMapForMac[type];
}