mirror of
https://github.com/wassname/talk.git
synced 2026-08-14 12:50:17 +08:00
Adding comment count test.
This commit is contained in:
@@ -60,8 +60,7 @@ module.exports = {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
//Load Page
|
//Load Page
|
||||||
client.url(client.globals.baseUrl)
|
client.url(client.globals.baseUrl)
|
||||||
.frame('coralStreamIframe')
|
.frame('coralStreamIframe');
|
||||||
.pause(10000);
|
|
||||||
|
|
||||||
// Post a comment
|
// Post a comment
|
||||||
client.waitForElementVisible('#commentBox .coral-plugin-commentbox-button', 2000)
|
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 => {
|
after: client => {
|
||||||
utils.after();
|
utils.after();
|
||||||
client.end();
|
client.end();
|
||||||
|
|||||||
Reference in New Issue
Block a user