From 609c423d43488fa922a57b4d4b687d69194e8533 Mon Sep 17 00:00:00 2001 From: Alexander Bulychev Date: Mon, 27 Nov 2023 16:29:35 +0400 Subject: [PATCH] Fix editor tests --- .../tests/DevExpress.ui.widgets.editors/selectBox.tests.js | 2 +- .../textEditorParts/common.tests.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/selectBox.tests.js b/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/selectBox.tests.js index 1ba3d3c11518..469882ffa986 100644 --- a/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/selectBox.tests.js +++ b/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/selectBox.tests.js @@ -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'); }); diff --git a/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/textEditorParts/common.tests.js b/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/textEditorParts/common.tests.js index 6cab6edc2e92..30401712d94f 100644 --- a/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/textEditorParts/common.tests.js +++ b/packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/textEditorParts/common.tests.js @@ -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');