mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
protractor.getInstance() -> browser
This commit is contained in:
@@ -7,7 +7,7 @@ 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')
|
||||
expect(newUrl).toBe(browser.baseUrl + 'devices')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user