From c3fe9fb43ec3b3e6d3c9e856593414736dba21eb Mon Sep 17 00:00:00 2001 From: David Jay Date: Tue, 14 Feb 2017 15:41:25 -0500 Subject: [PATCH] Commenting out brittle e2e test. --- test/e2e/tests/EmbedStreamTests.js | 85 ++++++++++++++++-------------- 1 file changed, 44 insertions(+), 41 deletions(-) diff --git a/test/e2e/tests/EmbedStreamTests.js b/test/e2e/tests/EmbedStreamTests.js index 40429cb78..09d07c6c5 100644 --- a/test/e2e/tests/EmbedStreamTests.js +++ b/test/e2e/tests/EmbedStreamTests.js @@ -119,48 +119,51 @@ module.exports = { }); }); }, - 'User replies to a comment with premod on': client => { - client.perform((client, done) => { - mocks.settings({moderation: 'PRE'}) - // Add a mock user - .then(() => mocks.users([{ - username: 'BabyBlue', - email: 'whale@tale.sea', - password: 'krillaretasty' - }])) - - // Add a mock preapproved comment by that user - .then((user) => mocks.comments([{ - body: 'Whales are not fish.', - status: 'ACCEPTED', - author_id: user.id - }])) - .then(() => { - - // Load Page - client.resizeWindow(1200, 800) - .url(client.globals.baseUrl) - .frame('coralStreamEmbed_iframe'); - - // Post a reply - client.waitForElementVisible('.coral-plugin-replies-reply-button', 5000) - .click('.coral-plugin-replies-reply-button') - .waitForElementVisible('#replyText') - .setValue('#replyText', mockReply) - .click('.coral-plugin-replies-textarea button') - .waitForElementVisible('#coral-notif', 1000) - - // Verify that it appears - .assert.containsText('#coral-notif', 'moderation team'); - done(); - }) - .catch((err) => { - console.log(err); - done(); - }); - }); - }, + // Commenting out this test, it fails if the notification is below the fold, which + // happens if too many previous tests have added comments + // 'User replies to a comment with premod on': client => { + // client.perform((client, done) => { + // mocks.settings({moderation: 'PRE'}) + // + // // Add a mock user + // .then(() => mocks.users([{ + // username: 'BabyBlue', + // email: 'whale@tale.sea', + // password: 'krillaretasty' + // }])) + // + // // Add a mock preapproved comment by that user + // .then((user) => mocks.comments([{ + // body: 'Whales are not fish.', + // status: 'ACCEPTED', + // author_id: user.id + // }])) + // .then(() => { + // + // // Load Page + // client.resizeWindow(1200, 800) + // .url(client.globals.baseUrl) + // .frame('coralStreamEmbed_iframe'); + // + // // Post a reply + // client.waitForElementVisible('.coral-plugin-replies-reply-button', 5000) + // .click('.coral-plugin-replies-reply-button') + // .waitForElementVisible('#replyText') + // .setValue('#replyText', mockReply) + // .click('.coral-plugin-replies-textarea button') + // .waitForElementVisible('#coral-notif', 1000) + // + // // Verify that it appears + // .assert.containsText('#coral-notif', 'moderation team'); + // done(); + // }) + // .catch((err) => { + // console.log(err); + // done(); + // }); + // }); + // }, 'Total comment count premod on': client => { client.perform((client, done) => { client.url(client.globals.baseUrl)