From 04d645eac67486504ec8e5f69fa48eed62d95361 Mon Sep 17 00:00:00 2001 From: ksercs Date: Tue, 10 Dec 2024 18:05:09 +0400 Subject: [PATCH] . --- apps/demos/testing/widgets/chat/Overview.test.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/demos/testing/widgets/chat/Overview.test.js b/apps/demos/testing/widgets/chat/Overview.test.js index 5375abcfd6a..d8f460c52d9 100644 --- a/apps/demos/testing/widgets/chat/Overview.test.js +++ b/apps/demos/testing/widgets/chat/Overview.test.js @@ -3,7 +3,7 @@ import { ClientFunction, Selector } from 'testcafe'; import { runManualTest } from '../../../utils/visual-tests/matrix-test-helper'; import { testScreenshot } from '../../../utils/visual-tests/helpers/theme-utils'; -const FIRST_CHAT_INPUT_SELECTOR = '.dx-chat .dx-texteditor-input'; +const CHAT_INPUT_SELECTOR = '.dx-chat .dx-texteditor-input'; fixture('Chat.Overview') .page('http://localhost:8080/') @@ -21,8 +21,7 @@ runManualTest('Chat', 'Overview', ['jQuery', 'React', 'Vue', 'Angular'], (test) const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - const leftChatInput = Selector(FIRST_CHAT_INPUT_SELECTOR).nth(0); - await t.typeText(leftChatInput, 'left chat typing testing'); + await t.typeText(CHAT_INPUT_SELECTOR, 'left chat typing testing'); await testScreenshot(t, takeScreenshot, 'chat_typing_indicator.png');