This commit is contained in:
Half-Shot
2024-12-17 09:59:54 +00:00
parent 049df91b2f
commit 475ff920b7
6 changed files with 45 additions and 65 deletions

View File

@@ -53,8 +53,11 @@ test("Can open menu", async () => {
test("Can raise hand", async () => {
const user = userEvent.setup();
const { vm, rtcSession, handRaisedSubject } =
getBasicCallViewModelEnvironment([local, alice]);
const {
vm,
rtcSession,
handRaisedSubject$: handRaisedSubject,
} = getBasicCallViewModelEnvironment([local, alice]);
const { getByLabelText, container } = render(
<TestComponent vm={vm} rtcSession={rtcSession} />,
);
@@ -87,8 +90,11 @@ test("Can raise hand", async () => {
test("Can lower hand", async () => {
const reactionEventId = "$my-reaction-event:example.org";
const user = userEvent.setup();
const { vm, rtcSession, handRaisedSubject } =
getBasicCallViewModelEnvironment([local, alice]);
const {
vm,
rtcSession,
handRaisedSubject$: handRaisedSubject,
} = getBasicCallViewModelEnvironment([local, alice]);
const { getByLabelText, container } = render(
<TestComponent vm={vm} rtcSession={rtcSession} />,
);