+
{
comments.map(comment =>
{
@@ -73,11 +72,7 @@ module.exports = {
// Post a comment
client.waitForElementVisible('.coral-plugin-commentbox-button', 2000)
.setValue('.coral-plugin-commentbox-textarea', mockComment)
- .click('.coral-plugin-commentbox-button')
- .waitForElementVisible('#coral-notif', 1000)
-
- // Verify that it appears
- .assert.containsText('#coral-notif', 'moderation team');
+ .click('.coral-plugin-commentbox-button');
done();
})
.catch((err) => {
@@ -102,8 +97,8 @@ module.exports = {
.click('.coral-plugin-commentbox-button')
// Post a reply
- .waitForElementVisible('.coral-plugin-replies-reply-button', 5000)
- .click('.coral-plugin-replies-reply-button')
+ .waitForElementVisible('#stream .coral-plugin-replies-reply-button', 5000)
+ .click('#stream .coral-plugin-replies-reply-button')
.waitForElementVisible('#replyText')
.setValue('#replyText', mockReply)
.click('.coral-plugin-replies-textarea .coral-plugin-commentbox-button')
@@ -171,7 +166,7 @@ module.exports = {
// Verify that comment count is correct
client.waitForElementVisible('.coral-plugin-comment-count-text', 2000)
- .assert.containsText('.coral-plugin-comment-count-text', '4 Comments');
+ .assert.containsText('.coral-plugin-comment-count-text', '5 Comments');
done();
});
},