1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00
This commit is contained in:
Brett Sun 2016-02-04 11:09:14 +01:00
parent 6c43a0e0a2
commit 2c2e90648b

View File

@ -11,7 +11,7 @@ chai.use(chaiAsPromised);
chai.should(); chai.should();
function testSuite(browserName, version, platform) { function testSuite(testName, browserName, version, platform, deviceName, deviceOrientation, deviceType) {
describe(`[${browserName} ${version} ${platform}] Login logs users in`, function() { describe(`[${browserName} ${version} ${platform}] Login logs users in`, function() {
// Set timeout to zero so Mocha won't time out. // Set timeout to zero so Mocha won't time out.
this.timeout(0); this.timeout(0);
@ -25,7 +25,7 @@ function testSuite(browserName, version, platform) {
// Start the browser, go to /login, and wait for the react app to render // Start the browser, go to /login, and wait for the react app to render
return browser return browser
.configureHttp({ baseUrl: config.APP_URL }) .configureHttp({ baseUrl: config.APP_URL })
.init({ browserName, version, platform }) .init({ browserName, version, platform, deviceName, deviceOrientation, deviceType, name: testName })
.get('/login') .get('/login')
.waitForElementByCss('.ascribe-default-app', asserters.isDisplayed, 10000) .waitForElementByCss('.ascribe-default-app', asserters.isDisplayed, 10000)
.catch(function (err) { .catch(function (err) {