tests: disabled checks shouldnt change behavior

list-test-fix
John McLear 2021-02-07 20:16:43 +00:00
parent 1c9afa5168
commit 58604a0824
1 changed files with 2 additions and 3 deletions

View File

@ -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) {