Files
stf-DeviceFarmer/res/test/e2e/login/login-spec.js
2015-11-25 02:05:22 +09:00

17 lines
472 B
JavaScript

describe('Login Page', function () {
var LoginPage = require('./')
var loginPage = new LoginPage()
it('should have an url to login', function () {
expect(loginPage.login.url).toMatch('http')
})
it('should login with method: "' + loginPage.login.method + '"', function () {
loginPage.doLogin().then(function () {
browser.getLocationAbsUrl().then(function (newUrl) {
expect(newUrl).toBe(browser.baseUrl + 'devices')
})
})
})
})