Update protractor jasmine tests

This commit is contained in:
Lukasz.Zeglinski
2019-09-17 21:58:49 +02:00
parent 345ba4d8a8
commit 2c811e07a5
10 changed files with 124 additions and 32 deletions

View File

@@ -6,8 +6,8 @@ describe('Device Page', function() {
it('should go to Devices List page', function() {
deviceListPage.get()
browser.getLocationAbsUrl().then(function(newUrl) {
expect(newUrl).toBe(protractor.getInstance().baseUrl + 'devices')
browser.getCurrentUrl().then(function(newUrl) {
expect(newUrl).toBe(browser.baseUrl + 'devices')
})
})

View File

@@ -1,7 +1,7 @@
module.exports = function DeviceListPage() {
this.get = function() {
// TODO: Let's get rid off the login first
browser.get(protractor.getInstance().baseUrl + 'devices')
browser.get(browser.baseUrl + 'devices')
}
this.devices = element(by.model('tracker.devices'))
this.devicesByCss = element.all(by.css('ul.devices-icon-view > li'))