mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 08:28:14 +08:00
Adding comment count test.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user