mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 15:43:25 +02:00
17 lines
472 B
JavaScript
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')
|
|
})
|
|
})
|
|
})
|
|
})
|