Add feature to release hand raised when the tile indicator is clicked. (#2721)
* Refactor to add support for lowering hand on indicator click. * Cleanup and lint. * fix icon being a little off
This commit is contained in:
@@ -40,4 +40,16 @@ describe("RaisedHandIndicator", () => {
|
||||
);
|
||||
expect(container.firstChild).toMatchSnapshot();
|
||||
});
|
||||
test("can be clicked", () => {
|
||||
const dateTime = new Date();
|
||||
let wasClicked = false;
|
||||
const { getByRole } = render(
|
||||
<RaisedHandIndicator
|
||||
raisedHandTime={dateTime}
|
||||
onClick={() => (wasClicked = true)}
|
||||
/>,
|
||||
);
|
||||
getByRole("button").click();
|
||||
expect(wasClicked).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user