mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
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:
committed by
GitHub
parent
4bf4aa9c84
commit
9042c29222
@@ -205,6 +205,11 @@ describe("RoomPage", () => {
|
|||||||
await waitFor(() => {
|
await waitFor(() => {
|
||||||
expect(mockRegisterPasswordlessUser).toHaveBeenCalledWith("Bob");
|
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>,
|
</TestWrapper>,
|
||||||
);
|
);
|
||||||
|
|
||||||
// The loading state renders with the heading
|
expect(
|
||||||
expect(screen.getByRole("heading")).toBeInTheDocument();
|
screen.getByRole("heading", { name: /loading|common\.loading/i }),
|
||||||
|
).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("shows GroupCallView when call is loaded", () => {
|
test("shows GroupCallView when call is loaded", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user