test
This commit is contained in:
parent
012d101dbe
commit
73824fe7d9
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue