Skip to content

Commit

Permalink
webcompat#272 widget opened on a click
Browse files Browse the repository at this point in the history
  • Loading branch information
karlcow committed Aug 13, 2015
1 parent 9744c95 commit fa03203
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/functional/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,20 @@ define([
.end();
},

'label widget is opening on click': function () {
return this.remote
.setFindTimeout(intern.config.wc.pageLoadTimeout)
.get(require.toUrl(url(2)))
.findByCssSelector('.LabelEditor-launcher').click()
.end()
.findByCssSelector('.LabelEditor')
.isDisplayed()
.then(function (displayed) {
assert.isTrue(displayed, 'The label editor widget is open');
})
.end();
},

'Label appears once selected': function () {
return this.remote
.setFindTimeout(intern.config.wc.pageLoadTimeout)
Expand Down

0 comments on commit fa03203

Please sign in to comment.