mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-03 18:12:58 +00:00
update back arrow size
This commit is contained in:
@@ -130,12 +130,14 @@ describe("LobbyView", () => {
|
||||
// Check that the primary button uses ArrowLeftIcon (the back/return icon),
|
||||
// not the default CollapseIcon
|
||||
const { container: iconContainer } = render(<ArrowLeftIcon />);
|
||||
const expectedPath = iconContainer.querySelector("path")!.getAttribute("d");
|
||||
const primaryButtonPath = container
|
||||
const expectedSvgPath = iconContainer
|
||||
.querySelector("path")!
|
||||
.getAttribute("d");
|
||||
const primaryButtonSvgPath = container
|
||||
.querySelector(".leftNav button")
|
||||
?.querySelector("path")
|
||||
?.getAttribute("d");
|
||||
expect(primaryButtonPath).toBe(expectedPath);
|
||||
expect(primaryButtonSvgPath).toBe(expectedSvgPath);
|
||||
expect(container).toMatchSnapshot();
|
||||
expect(await axe(container)).toHaveNoViolations();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user