mirror of
https://github.com/ascribe/onion.git
synced 2024-06-30 05:31:58 +02:00
37 lines
863 B
JavaScript
37 lines
863 B
JavaScript
'use strict';
|
|
|
|
require('dotenv').load();
|
|
|
|
const wd = require('wd');
|
|
const chai = require('chai');
|
|
const chaiAsPromised = require('chai-as-promised');
|
|
chai.use(chaiAsPromised);
|
|
chai.should();
|
|
|
|
|
|
describe('Login logs users in', function() {
|
|
let browser;
|
|
|
|
before(function() {
|
|
browser = wd.promiseChainRemote('ondemand.saucelabs.com', 80,
|
|
process.env.ONION_SAUCELABS_USER,
|
|
process.env.ONION_SAUCELABS_APIKEY);
|
|
|
|
return browser.init({ browserName: 'chrome' });
|
|
});
|
|
|
|
beforeEach(function() {
|
|
return browser.get('http://www.ascribe.ninja/app/login');
|
|
});
|
|
|
|
after(function() {
|
|
return browser.quit();
|
|
});
|
|
|
|
it('should contain "Log in" in the title', function() {
|
|
return browser.title().should.become('Log in');
|
|
});
|
|
|
|
});
|
|
|