/* Copyright 2024 New Vector Ltd. SPDX-License-Identifier: AGPL-3.0-only Please see LICENSE in the repository root for full details. */ import { expect, test } from "vitest"; import { render, screen } from "@testing-library/react"; import { axe } from "vitest-axe"; import { TooltipProvider } from "@vector-im/compound-web"; import { RoomHeaderInfo } from "./Header"; test("RoomHeaderInfo is accessible", async () => { const { container } = render( , ); expect(await axe(container)).toHaveNoViolations(); // Check that the room name acts as a heading screen.getByRole("heading", { name: "Mission Control" }); });