Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Test for left/right on non sub menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc authored and bsclifton committed Jan 17, 2017
1 parent 4aa4d72 commit 813d605
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/components/contextMenuTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,32 @@ describe('ContextMenu', function () {
.tabByUrl(this.formfill)
.getValue(this.input).should.eventually.be.equal(this.values[3])
})

it('check left/right on non sub menu item', function *() {
yield this.app.client
.tabByIndex(0)
.loadUrl(this.formfill)
.waitForVisible('<form>')
.click(this.input)
.windowByUrl(Brave.browserWindowUrl)
.keys('\uE015')
.waitForVisible('.contextMenu')
.keys('\uE012') // left
.pause(10)
.keys('\uE014') // right
.pause(10)
.keys('\uE014') // right
.pause(10)
.keys('\uE012') // left
.pause(10)
.keys('\uE015')
.pause(10)
.keys('\uE015')
.pause(10)
.keys('\uE007')
.pause(10)
.tabByUrl(this.formfill)
.getValue(this.input).should.eventually.be.equal(this.values[2])
})
})
})

0 comments on commit 813d605

Please sign in to comment.