test: assert loading UI in RoomPage loading tests

Agent-Logs-Url: https://github.com/element-hq/element-call/sessions/568f506e-069d-427d-af4d-99481de9cf22

Co-authored-by: BillCarsonFr <9841565+BillCarsonFr@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-15 09:47:48 +00:00
committed by GitHub
parent 4bf4aa9c84
commit 9042c29222

View File

@@ -205,6 +205,11 @@ describe("RoomPage", () => {
await waitFor(() => {
expect(mockRegisterPasswordlessUser).toHaveBeenCalledWith("Bob");
});
expect(
screen.getByRole("heading", { name: /loading|common\.loading/i }),
).toBeInTheDocument();
expect(screen.queryByText("RoomAuthView Mock")).not.toBeInTheDocument();
});
});
@@ -411,8 +416,9 @@ describe("RoomPage", () => {
</TestWrapper>,
);
// The loading state renders with the heading
expect(screen.getByRole("heading")).toBeInTheDocument();
expect(
screen.getByRole("heading", { name: /loading|common\.loading/i }),
).toBeInTheDocument();
});
test("shows GroupCallView when call is loaded", () => {