blob: 1a89644ccca8c52175671b3176ab93fba982e7bd [file] [log] [blame]
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(protractor.getInstance().baseUrl + 'devices')
})
})
})
})