Skip to content

Commit

Permalink
webcompat#272 remove label
Browse files Browse the repository at this point in the history
dependency on the previous test.
  • Loading branch information
karlcow committed Aug 13, 2015
1 parent 4bfa1b1 commit a4cf13d
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 @@ -100,6 +100,25 @@ define([
.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();
},

};
});
});

0 comments on commit a4cf13d

Please sign in to comment.