Skip to content

Commit

Permalink
get rid of testcafe Selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ksercs committed Dec 10, 2024
1 parent 7eefeab commit 6b1b755
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/demos/testing/widgets/chat/Overview.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 CHAT_INPUT_SELECTOR = '.dx-chat .dx-texteditor-input';
const FIRST_CHAT_INPUT_SELECTOR = '.dx-chat:first-of-type .dx-texteditor-input';

fixture('Chat.Overview')
.page('http://localhost:8080/')
Expand All @@ -21,8 +21,7 @@ runManualTest('Chat', 'Overview', ['jQuery', 'React', 'Vue', 'Angular'], (test)

const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

const leftChatInput = Selector(CHAT_INPUT_SELECTOR);
await t.typeText(leftChatInput, 'left');
await t.typeText(FIRST_CHAT_INPUT_SELECTOR, 'left');

await testScreenshot(t, takeScreenshot, 'chat_typing_indicator.png');

Expand Down

0 comments on commit 6b1b755

Please sign in to comment.