diff --git a/client/coral-admin/src/components/ui/Header.js b/client/coral-admin/src/components/ui/Header.js index 4a2314926..6425507d0 100644 --- a/client/coral-admin/src/components/ui/Header.js +++ b/client/coral-admin/src/components/ui/Header.js @@ -14,28 +14,35 @@ const CoralHeader = ({handleLogout, restricted = false}) => (
{lang.t('configure.dashboard')} {lang.t('configure.moderate')} - {lang.t('configure.streams')} - {lang.t('configure.community')} diff --git a/client/coral-embed-stream/src/Comment.css b/client/coral-embed-stream/src/Comment.css index 09a94aa55..7bc1a21f4 100644 --- a/client/coral-embed-stream/src/Comment.css +++ b/client/coral-embed-stream/src/Comment.css @@ -1,3 +1,7 @@ .Reply { position: relative; } + +.Comment { + +} diff --git a/client/coral-embed-stream/src/Stream.js b/client/coral-embed-stream/src/Stream.js index 9d24d7f42..bd471338e 100644 --- a/client/coral-embed-stream/src/Stream.js +++ b/client/coral-embed-stream/src/Stream.js @@ -56,7 +56,7 @@ class Stream extends React.Component { } = this.props; return ( -
+
{ 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(); }); },