Test InviteModal

This commit is contained in:
Robin
2024-09-06 13:15:34 -04:00
parent d9333d6829
commit 0c0be8a862
4 changed files with 55 additions and 8 deletions

View File

@@ -14,19 +14,13 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { expect, test, vi } from "vitest";
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";
global.matchMedia = vi.fn().mockReturnValue({
matches: true,
addEventListener: () => {},
removeEventListener: () => {},
});
test("RoomHeaderInfo is accessible", async () => {
const { container } = render(
<TooltipProvider>