diff --git a/tests/frontend/specs/change_user_color.js b/tests/frontend/specs/change_user_color.js index 3b4b3d20e..e8c16db37 100644 --- a/tests/frontend/specs/change_user_color.js +++ b/tests/frontend/specs/change_user_color.js @@ -93,7 +93,7 @@ describe('change user color', function () { $chatInput.sendkeys('{enter}'); // simulate a keypress of enter actually does evt.which = 10 not 13 // check if chat shows up - helper.waitFor(() => chrome$('#chattext').children('p').length !== 0, // wait until the chat message shows up + helper.waitFor(() => chrome$('#chattext').children('p').length !== 0 // wait until the chat message shows up ).done(() => { const $firstChatMessage = chrome$('#chattext').children('p'); expect($firstChatMessage.css('background-color')).to.be(testColorRGB); // expect the first chat message to be of the user's color diff --git a/tests/frontend/specs/change_user_name.js b/tests/frontend/specs/change_user_name.js index d0d9b763c..e144a2340 100644 --- a/tests/frontend/specs/change_user_name.js +++ b/tests/frontend/specs/change_user_name.js @@ -60,7 +60,7 @@ describe('change username value', function () { $chatInput.sendkeys('{enter}'); // simulate a keypress of enter actually does evt.which = 10 not 13 // check if chat shows up - helper.waitFor(() => chrome$('#chattext').children('p').length !== 0, // wait until the chat message shows up + helper.waitFor(() => chrome$('#chattext').children('p').length !== 0 // wait until the chat message shows up ).done(() => { const $firstChatMessage = chrome$('#chattext').children('p'); const containsJohnMcLear = $firstChatMessage.text().indexOf('John McLear') !== -1; // does the string contain John McLear diff --git a/tests/frontend/specs/clear_authorship_colors.js b/tests/frontend/specs/clear_authorship_colors.js index 0be189625..f622e912a 100644 --- a/tests/frontend/specs/clear_authorship_colors.js +++ b/tests/frontend/specs/clear_authorship_colors.js @@ -28,7 +28,7 @@ describe('clear authorship colors button', function () { $firstTextElement.sendkeys(sentText); $firstTextElement.sendkeys('{rightarrow}'); - helper.waitFor(() => inner$('div span').first().attr('class').indexOf('author') !== -1, // wait until we have the full value available + helper.waitFor(() => inner$('div span').first().attr('class').indexOf('author') !== -1 // wait until we have the full value available ).done(() => { // IE hates you if you don't give focus to the inner frame bevore you do a clearAuthorship inner$('div').first().focus(); @@ -80,7 +80,7 @@ describe('clear authorship colors button', function () { $firstTextElement.sendkeys(sentText); $firstTextElement.sendkeys('{rightarrow}'); - helper.waitFor(() => inner$('div span').first().attr('class').indexOf('author') !== -1, // wait until we have the full value available + helper.waitFor(() => inner$('div span').first().attr('class').indexOf('author') !== -1 // wait until we have the full value available ).done(() => { // IE hates you if you don't give focus to the inner frame bevore you do a clearAuthorship inner$('div').first().focus(); diff --git a/tests/frontend/specs/importexport.js b/tests/frontend/specs/importexport.js index 7f3e4c415..0be2a0744 100644 --- a/tests/frontend/specs/importexport.js +++ b/tests/frontend/specs/importexport.js @@ -136,7 +136,7 @@ describe('import functionality', function () { const htmlWithBullets = '