Skip to content

Commit

Permalink
refactor(ti): Use insertStylesheetRulesToPage && Remove masks
Browse files Browse the repository at this point in the history
  • Loading branch information
marker dao ® committed Oct 28, 2024
1 parent cf17206 commit 7cecd04
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 6 additions & 1 deletion e2e/testcafe-devextreme/tests/chat/typingIndicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { createUser, generateMessages } from './data';
import url from '../../helpers/getPageUrl';
import { createWidget } from '../../helpers/createWidget';
import { testScreenshot } from '../../helpers/themeUtils';
import { appendElementTo } from '../../helpers/domUtils';
import { appendElementTo, insertStylesheetRulesToPage } from '../../helpers/domUtils';

const CHAT_TYPINGINDICATOR_CIRCLE_CLASS = 'dx-chat-typingindicator-circle';

fixture.disablePageReloads`ChatTypingIndicator`
.page(url(__dirname, '../container.html'));
Expand All @@ -19,6 +21,7 @@ test('Chat: typing indicator with emptyview', async (t) => {
.ok(compareResults.errorMessages());
}).before(async () => {
await appendElementTo('#container', 'div', 'chat');
await insertStylesheetRulesToPage(`.${CHAT_TYPINGINDICATOR_CIRCLE_CLASS} { animation: none; }`);

const typingUsers = [
{ name: 'Elodie Montclair' },
Expand All @@ -41,6 +44,7 @@ test('Chat: typing indicator with a lot of items', async (t) => {
.ok(compareResults.errorMessages());
}).before(async () => {
await appendElementTo('#container', 'div', 'chat');
await insertStylesheetRulesToPage(`.${CHAT_TYPINGINDICATOR_CIRCLE_CLASS} { animation: none; }`);

const userFirst = createUser(1, 'Marie-Claire Dubois');
const userSecond = createUser(2, 'Jean-Pierre Martin');
Expand Down Expand Up @@ -90,6 +94,7 @@ test('Chat: typing indicator', async (t) => {
.ok(compareResults.errorMessages());
}).before(async () => {
await appendElementTo('#container', 'div', 'chat');
await insertStylesheetRulesToPage(`.${CHAT_TYPINGINDICATOR_CIRCLE_CLASS} { animation: none; }`);

const userFirst = createUser(1, 'Elise Moreau');
const userSecond = createUser(2, 'Pierre Martin');
Expand Down

0 comments on commit 7cecd04

Please sign in to comment.