tests: disabled checks shouldnt change behavior
parent
1c9afa5168
commit
58604a0824
|
@ -32,13 +32,12 @@ describe('ordered_list.js', function () {
|
||||||
.done(done);
|
.done(done);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
context('and pad shortcut is disabled', function () {
|
context('and pad shortcut is disabled', function () {
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
const originalHTML = helper.padInner$('body').html();
|
const originalHTML = helper.padInner$('body').html();
|
||||||
makeSureShortcutIsDisabled('cmdShiftN');
|
makeSureShortcutIsDisabled('cmdShiftN');
|
||||||
triggerCtrlShiftShortcut('N');
|
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) {
|
it('does not insert unordered list', function (done) {
|
||||||
|
@ -73,7 +72,7 @@ describe('ordered_list.js', function () {
|
||||||
const originalHTML = helper.padInner$('body').html();
|
const originalHTML = helper.padInner$('body').html();
|
||||||
makeSureShortcutIsDisabled('cmdShift1');
|
makeSureShortcutIsDisabled('cmdShift1');
|
||||||
triggerCtrlShiftShortcut('1');
|
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) {
|
it('does not insert unordered list', function (done) {
|
||||||
|
|
Loading…
Reference in New Issue