Skip to content

Commit

Permalink
try test with old approached
Browse files Browse the repository at this point in the history
  • Loading branch information
ksercs committed Dec 11, 2024
1 parent 8d389a9 commit 2d1e909
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions apps/demos/testing/widgets/chat/Overview.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { createScreenshotsComparer } from 'devextreme-screenshot-comparer';
import { ClientFunction } from 'testcafe';
// import { ClientFunction } from 'testcafe';
import { runManualTest } from '../../../utils/visual-tests/matrix-test-helper';
import { testScreenshot } from '../../../utils/visual-tests/helpers/theme-utils';

const USER_CHAT_INPUT_SELECTOR = '#user-chat .dx-texteditor-input';
// const USER_CHAT_INPUT_SELECTOR = '#user-chat .dx-texteditor-input';

fixture('Chat.Overview')
.page('http://localhost:8080/')
Expand All @@ -13,15 +13,15 @@ fixture('Chat.Overview')

runManualTest('Chat', 'Overview', ['jQuery', 'React', 'Vue', 'Angular'], (test) => {
test('Overview', async (t) => {
await ClientFunction(() => {
const styleElement = document.createElement('style');
styleElement.innerHTML = '.dx-chat-typingindicator-circle { animation: none !important; }';
document.head.appendChild(styleElement);
})();
// await ClientFunction(() => {
// const styleElement = document.createElement('style');
// styleElement.innerHTML = '.dx-chat-typingindicator-circle { animation: none !important; }';
// document.head.appendChild(styleElement);
// })();

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

await t.typeText(USER_CHAT_INPUT_SELECTOR, 'testing');
await t.typeText('#user-chat .dx-texteditor-input', 'testing');

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

Expand Down

0 comments on commit 2d1e909

Please sign in to comment.