Adding comment count test.

This commit is contained in:
David Jay
2016-11-30 17:49:08 -05:00
parent fe4e9c5ea9
commit 3f1f678fb2
+12 -2
View File
@@ -60,8 +60,7 @@ module.exports = {
.then(() => {
//Load Page
client.url(client.globals.baseUrl)
.frame('coralStreamIframe')
.pause(10000);
.frame('coralStreamIframe');
// Post a comment
client.waitForElementVisible('#commentBox .coral-plugin-commentbox-button', 2000)
@@ -156,6 +155,17 @@ module.exports = {
});
});
},
'Total comment count premod on': client => {
client.perform((client, done) => {
client.url(client.globals.baseUrl)
.frame('coralStreamIframe');
// Verify that comment count is correct
client.waitForElementVisible('.coral-plugin-comment-count-text', 2000)
.assert.containsText('.coral-plugin-comment-count-text', '5 Comments');
done();
});
},
after: client => {
utils.after();
client.end();