Skip to content

Commit

Permalink
Fix editor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bulychev committed Nov 27, 2023
1 parent 7a7418f commit 609c423
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5909,7 +5909,7 @@ QUnit.module('focus policy', {
assert.strictEqual(focusStub.callCount, 1, 'FocusIn event has not been triggered');
assert.strictEqual(blurStub.callCount, 0, 'FocusOut event has not been triggered');

$(actionButton).trigger('click');
$(actionButton.element()).trigger('click');
assert.strictEqual(focusStub.callCount, 1, 'new FocusIn event has not been triggered');
assert.strictEqual(blurStub.callCount, 0, 'FocusOut event has not been triggered');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ QUnit.module('general', {}, () => {
assert.strictEqual(focusStub.callCount, 1, 'FocusIn event has been triggered');
assert.strictEqual(blurStub.callCount, 0, 'FocusOut event has not been triggered');

$(actionButton).trigger('click');
$(actionButton.element()).trigger('click');
assert.ok($textEditor.hasClass('dx-state-focused'), 'input is still focused');
assert.strictEqual(focusStub.callCount, 1, 'new FocusIn event has not been triggered');
assert.strictEqual(blurStub.callCount, 0, 'FocusOut event has not been triggered');
Expand Down

0 comments on commit 609c423

Please sign in to comment.