From 3d5dd7c53ea0ed8654f6247892c638ba775ec48b Mon Sep 17 00:00:00 2001 From: ksercs Date: Tue, 10 Dec 2024 17:08:33 +0400 Subject: [PATCH] retrieve selector back --- apps/demos/testing/widgets/chat/Overview.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/demos/testing/widgets/chat/Overview.test.js b/apps/demos/testing/widgets/chat/Overview.test.js index acf5b0ce7099..5375abcfd6ae 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:first-of-type .dx-texteditor-input'; +const FIRST_CHAT_INPUT_SELECTOR = '.dx-chat .dx-texteditor-input'; fixture('Chat.Overview') .page('http://localhost:8080/') @@ -21,7 +21,8 @@ runManualTest('Chat', 'Overview', ['jQuery', 'React', 'Vue', 'Angular'], (test) const { takeScreenshot, compareResults } = createScreenshotsComparer(t); - await t.typeText(FIRST_CHAT_INPUT_SELECTOR, 'left chat typing testing'); + const leftChatInput = Selector(FIRST_CHAT_INPUT_SELECTOR).nth(0); + await t.typeText(leftChatInput, 'left chat typing testing'); await testScreenshot(t, takeScreenshot, 'chat_typing_indicator.png');