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');