Skip to content

Commit

Permalink
webcompat#272 remove a label
Browse files Browse the repository at this point in the history
  • Loading branch information
karlcow committed Aug 14, 2015
1 parent 2bd7456 commit 2d800f9
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 @@ -89,6 +89,25 @@ define([
assert.include(label_text, 'contactready', 'Label has been set on Github');
})
.end();
},

'Removes a label': 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()
.get(require.toUrl(url(2)))
.findByCssSelector('.Label--badge')
.getVisibleText()
.then(function (label_text) {
assert.include(label_text, 'contactready', 'Label has been removed');
})
.end();
}
};
});
Expand Down

0 comments on commit 2d800f9

Please sign in to comment.