This commit is contained in:
anirbanpaulcom 2024-04-19 21:31:37 +05:30
parent 012d101dbe
commit 73824fe7d9
1 changed files with 2 additions and 0 deletions

View File

@ -100,8 +100,10 @@ describe('MessageComposer', () => {
const onSendMessage = jest.fn();
render(<Render context={{ onSendMessage }} />);
expect(screen.getByTestId('message-composer-send-audio')).toBeOnTheScreen();
expect(screen.getByTestId('message-composer-send')).not.toBeOnTheScreen();
await user.type(screen.getByTestId('message-composer-input'), 'test');
expect(screen.getByTestId('message-composer-input').props.value.trim()).not.toBe("");
expect(screen.queryByTestId('message-composer-send-audio')).not.toBeOnTheScreen();
expect(screen.getByTestId('message-composer-send')).toBeOnTheScreen();