Skip to content

Commit efa00c4

Browse files
committed
test: adjust test to stream-chat changes
1 parent dbcc3f8 commit efa00c4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/MessageInput/__tests__/EditMessageForm.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,8 @@ describe(`EditMessageForm`, () => {
11771177

11781178
await act(() => submit());
11791179

1180+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1181+
const { mutes, ...userWithoutMutes } = mainListMessage.user;
11801182
expect(editMock.mock.calls[1]).toEqual([
11811183
customChannel.cid,
11821184
expect.objectContaining({
@@ -1199,6 +1201,8 @@ describe(`EditMessageForm`, () => {
11991201
quoted_message: null,
12001202
reaction_groups: null,
12011203
text: '@mention-name ',
1204+
user: userWithoutMutes,
1205+
user_id: 'userId',
12021206
}),
12031207
{},
12041208
]);

src/components/Poll/__tests__/PollCreationDialog.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('PollCreationDialog', () => {
100100
await fireEvent.blur(nameInput);
101101
});
102102
expect(screen.getByTestId(NAME_INPUT_FIELD_ERROR_TEST_ID)).toHaveTextContent(
103-
'Name is required',
103+
'Question is required',
104104
);
105105
expect(nameInput).toHaveValue('');
106106
expect(screen.getByText(CANCEL_BUTTON_TEXT)).toBeEnabled();

0 commit comments

Comments
 (0)