allow specifying the browser in selenium

pull/1/head
Caleb James DeLisle 7 years ago
parent 6a2d79249d
commit e587e9cd57

@ -20,7 +20,9 @@ if (process.env.SAUCE_USERNAME !== undefined) {
"accessKey": process.env.SAUCE_ACCESS_KEY,
}).forBrowser(browserArray[0], browserArray[1], browserArray[2]).build();
} else {
driver = new WebDriver.Builder().withCapabilities({ browserName: "chrome" }).build();
driver = new WebDriver.Builder().withCapabilities({
browserName: process.env.BROWSER || "chrome"
}).build();
}
var SC_GET_DATA = "return (window.__CRYPTPAD_TEST__) ? window.__CRYPTPAD_TEST__.getData() : '[]'";

@ -291,11 +291,11 @@ define([
common.openTemplatePicker();
}
if (Test.testing) {
Test(function () {
cpNfInner.chainpad.onSettle(function () {
Test.passed();
});
}
});
};
var onConnectionChange = function (info) {
stateChange(info.state ? STATE.INITIALIZING : STATE.DISCONNECTED);

Loading…
Cancel
Save