Skip to content

Commit

Permalink
webcompat#272 label sent to github
Browse files Browse the repository at this point in the history
  • Loading branch information
karlcow committed Aug 14, 2015
1 parent 7b9ae68 commit 2bd7456
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/functional/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,25 @@ define([
assert.include(label_text, 'contactready', 'Label appears once it has been selected');
})
.end();
},

'Label has been sent to GitHub': function () {
return this.remote
.setFindTimeout(intern.config.wc.pageLoadTimeout)
.get(require.toUrl(url(2)))
.findByCssSelector('.LabelEditor-launcher').click()
.end()
.findByCssSelector('label.LabelEditor-item input[name="contactready"]').click()
.end()
.findByCssSelector('.LabelEditor-btn').click()
.end()
.refresh()
.findByCssSelector('.Label--badge')
.getVisibleText()
.then(function (label_text) {
assert.include(label_text, 'contactready', 'Label has been set on Github');
})
.end();
}
};
});
Expand Down

0 comments on commit 2bd7456

Please sign in to comment.