diff --git a/tests/acceptance/editor-selections-test.js b/tests/acceptance/editor-selections-test.js index 9129de90b..e37e5e4fd 100644 --- a/tests/acceptance/editor-selections-test.js +++ b/tests/acceptance/editor-selections-test.js @@ -74,7 +74,7 @@ test('when editing is disabled, the selection detection code is disabled', (asse assert.equal(editor.activeSections.length, 0, 'no selection inside the editor'); // Edge and IE11 do not introduce newlines - assert.equal(Helpers.dom.getSelectedText().replace('\n', ''), "trick ponyoutside"); + assert.equal(Helpers.dom.getSelectedText().replace(/\n/g, ''), "trick ponyoutside"); }); test('selecting an entire section and deleting removes it', (assert) => {