Berichten: hele rij klikbaar om het bericht te openen (CMS-U12)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -696,3 +696,13 @@ describe('Dashboard tile', () => {
|
||||
expect(screen.queryByTestId('messages-tile')).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
describe('Clickable row', () => {
|
||||
it('opens the message when any cell of the row is clicked', async () => {
|
||||
await openPage();
|
||||
const row = await screen.findByTestId(`contact-row-${MSG_READ}`);
|
||||
await userEvent.click(within(row).getByText('Onderhoudspakket'));
|
||||
expect(await screen.findByTestId('contact-message-dialog')).toBeInTheDocument();
|
||||
expect(await screen.findByTestId('contact-message-body')).toHaveTextContent('Hallo');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user