Skip to content

Commit 8945185

Browse files
committed
update test
1 parent aeb384a commit 8945185

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

e2e/testcafe-devextreme/tests/editors/chat/data/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,5 @@ export const generateFileMessageWithoutText = (author: User): Message => ({
112112
text: '',
113113
timestamp,
114114
author,
115-
attachments: [attachments[0]],
115+
attachments,
116116
});

e2e/testcafe-devextreme/tests/editors/chat/messageBubble.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ test('Chat: messagebubble with images and files', async (t) => {
6262
const fileMessages = [
6363
generateFileMessage(user),
6464
generateFileMessage(user, true),
65-
generateFileMessageWithoutText(user),
6665
];
6766

6867
await chat.option({
@@ -72,6 +71,13 @@ test('Chat: messagebubble with images and files', async (t) => {
7271
});
7372
await testScreenshot(t, takeScreenshot, 'Bubbles with files.png', { element: '#chat' });
7473

74+
await chat.option({
75+
width: 600,
76+
height: 600,
77+
items: [generateFileMessageWithoutText(user)],
78+
});
79+
await testScreenshot(t, takeScreenshot, 'Bubble with files without text.png', { element: '#chat' });
80+
7581
await t.expect(compareResults.isValid()).ok(compareResults.errorMessages());
7682
}).before(async () => {
7783
await appendElementTo('#container', 'div', 'chat');

0 commit comments

Comments
 (0)