mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 12:53:31 +02:00
- `gulp protractor` now accepts a `--suite name` flag. - Removed warning bug in ChromeDriver. - ControlPage test now kicks the device.
33 lines
1013 B
JavaScript
33 lines
1013 B
JavaScript
describe('Device Page', function () {
|
|
describe('List', function () {
|
|
|
|
var DeviceListPage = require('./')
|
|
var deviceListPage = new DeviceListPage()
|
|
|
|
it('should go to Devices List page', function () {
|
|
deviceListPage.get()
|
|
browser.getLocationAbsUrl().then(function (newUrl) {
|
|
expect(newUrl).toBe(protractor.getInstance().baseUrl + 'devices')
|
|
})
|
|
})
|
|
|
|
it('should have more than 1 device in the list', function () {
|
|
expect(deviceListPage.numberOfDevices()).toBeGreaterThan(0)
|
|
})
|
|
|
|
it('should filter available devices', function () {
|
|
deviceListPage.filterAvailableDevices()
|
|
expect(deviceListPage.searchInput.getAttribute('value')).toBe('state: "available"')
|
|
})
|
|
|
|
it('should have more than 1 device available', function () {
|
|
expect(deviceListPage.devicesUsable.count()).toBeGreaterThan(0)
|
|
})
|
|
|
|
it('should have one device usable', function () {
|
|
expect(deviceListPage.availableDevice().getText()).toBe('Use')
|
|
})
|
|
|
|
})
|
|
})
|