- Refactored device button states so they can be tested.

- Added e2e test for Navigation.
This commit is contained in:
Gunther Brunner
2014-08-27 21:44:04 +09:00
parent 9a8fa2dd3e
commit ea27e1b549
10 changed files with 188 additions and 125 deletions

View File

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