mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:53:23 +02:00
- Refactored device button states so they can be tested.
- Added e2e test for Navigation.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
describe('Device Page', function () {
|
||||
describe('Icon View', function () {
|
||||
|
||||
var DeviceListPage = require('./')
|
||||
var deviceListPage = new DeviceListPage()
|
||||
var deviceListPage = require('./')
|
||||
|
||||
it('should go to Devices List page', function () {
|
||||
deviceListPage.get()
|
||||
@@ -25,7 +24,7 @@ describe('Device Page', function () {
|
||||
})
|
||||
|
||||
it('should have one device usable', function () {
|
||||
expect(deviceListPage.availableDevice().getText()).toBe('Use')
|
||||
expect(deviceListPage.availableDevice().getAttribute('class')).toMatch('state-available')
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user