mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 21:05:18 +02:00
- Refactored device button states so they can be tested.
- Added e2e test for Navigation.
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
module.exports = function DeviceListPage() {
|
||||
function DeviceListPage() {
|
||||
this.get = function () {
|
||||
// TODO: Let's get rid off the login first
|
||||
browser.get(protractor.getInstance().baseUrl + 'devices')
|
||||
}
|
||||
this.devices = element(by.model('tracker.devices'))
|
||||
this.devicesByCss = element.all(by.css('ul.devices-icon-view > li'))
|
||||
this.devicesUsable =
|
||||
element.all(by.css('button.device-status.btn-primary-outline'))
|
||||
this.devicesUsable = element.all(by.css('.state-available'))
|
||||
this.searchInput = element(by.model('search.deviceFilter'))
|
||||
this.filterAvailableDevices = function () {
|
||||
return this.searchInput.sendKeys('state: "available"')
|
||||
@@ -21,3 +20,5 @@ module.exports = function DeviceListPage() {
|
||||
return this.availableDevice().click()
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = new DeviceListPage()
|
||||
|
||||
Reference in New Issue
Block a user