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')
})
})