mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 18:59:17 +00:00
Device manager - device tile main click target (#9409)
* change device tile click to toggle details instead of selection * lint * test current device section click * stuck cypress
This commit is contained in:
@@ -46,6 +46,14 @@ describe('<DeviceTile />', () => {
|
||||
expect(container).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('applies interactive class when tile has click handler', () => {
|
||||
const onClick = jest.fn();
|
||||
const { getByTestId } = render(getComponent({ onClick }));
|
||||
expect(
|
||||
getByTestId('device-tile-123').className.includes('mx_DeviceTile_interactive'),
|
||||
).toBeTruthy();
|
||||
});
|
||||
|
||||
it('renders a verified device with no metadata', () => {
|
||||
const { container } = render(getComponent());
|
||||
expect(container).toMatchSnapshot();
|
||||
|
||||
Reference in New Issue
Block a user