Add test for issue #1076

Add tests for device icon view
This commit is contained in:
Lukasz.Zeglinski
2019-09-19 16:40:26 +02:00
parent 8bba7f4558
commit 7d593cdb51
8 changed files with 220 additions and 16 deletions

View File

@@ -7,14 +7,21 @@ describe('Control Page', function() {
this.get = function() {
browser.get(localhost + 'control')
}
this.kickDeviceButton = element.all(by.css('.kick-device')).first()
this.kickDeviceButton = element.all(by.css('.kick-device'))
this.devicesDropDown = element(by.css('.device-name-text'))
this.openDevicesDropDown = function() {
return this.devicesDropDown.click()
}
this.getFirstKickDeviceButton = function() {
return this.kickDeviceButton.first()
}
this.kickDevice = function() {
this.openDevicesDropDown()
this.kickDeviceButton.click()
}
this.devicesDropDown = element(by.css('.device-name-text'))
this.openDevicesDropDown = function() {
this.devicesDropDown.click()
this.getFirstKickDeviceButton().click()
}
}