diff --git a/src/tests/frontend/specs/ordered_list.js b/src/tests/frontend/specs/ordered_list.js index d20c8138c..fa3840c9d 100644 --- a/src/tests/frontend/specs/ordered_list.js +++ b/src/tests/frontend/specs/ordered_list.js @@ -32,13 +32,12 @@ describe('ordered_list.js', function () { .done(done); }); }); - context('and pad shortcut is disabled', function () { beforeEach(async function () { const originalHTML = helper.padInner$('body').html(); makeSureShortcutIsDisabled('cmdShiftN'); triggerCtrlShiftShortcut('N'); - await helper.waitForPromise(() => helper.padInner$('body').html() !== originalHTML); + await helper.waitForPromise(() => helper.padInner$('body').html() === originalHTML); }); it('does not insert unordered list', function (done) { @@ -73,7 +72,7 @@ describe('ordered_list.js', function () { const originalHTML = helper.padInner$('body').html(); makeSureShortcutIsDisabled('cmdShift1'); triggerCtrlShiftShortcut('1'); - await helper.waitForPromise(() => helper.padInner$('body').html() !== originalHTML); + await helper.waitForPromise(() => helper.padInner$('body').html() === originalHTML); }); it('does not insert unordered list', function (done) {