finnish notation

This commit is contained in:
Half-Shot
2024-12-17 10:07:42 +00:00
parent 475ff920b7
commit 4164e0a61f
17 changed files with 151 additions and 129 deletions

View File

@@ -53,11 +53,8 @@ test("Can open menu", async () => {
test("Can raise hand", async () => {
const user = userEvent.setup();
const {
vm,
rtcSession,
handRaisedSubject$: handRaisedSubject,
} = getBasicCallViewModelEnvironment([local, alice]);
const { vm, rtcSession, handRaisedSubject$ } =
getBasicCallViewModelEnvironment([local, alice]);
const { getByLabelText, container } = render(
<TestComponent vm={vm} rtcSession={rtcSession} />,
);
@@ -76,7 +73,7 @@ test("Can raise hand", async () => {
);
act(() => {
// Mock receiving a reaction.
handRaisedSubject.next({
handRaisedSubject$.next({
[localIdent]: {
time: new Date(),
reactionEventId: "",
@@ -90,18 +87,15 @@ 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$: handRaisedSubject,
} = getBasicCallViewModelEnvironment([local, alice]);
const { vm, rtcSession, handRaisedSubject$ } =
getBasicCallViewModelEnvironment([local, alice]);
const { getByLabelText, container } = render(
<TestComponent vm={vm} rtcSession={rtcSession} />,
);
await user.click(getByLabelText("common.reactions"));
await user.click(getByLabelText("action.raise_hand"));
act(() => {
handRaisedSubject.next({
handRaisedSubject$.next({
[localIdent]: {
time: new Date(),
reactionEventId,
@@ -117,7 +111,7 @@ test("Can lower hand", async () => {
);
act(() => {
// Mock receiving a redacted reaction.
handRaisedSubject.next({});
handRaisedSubject$.next({});
});
expect(container).toMatchSnapshot();
});