Skip to content

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Oct 18, 2024
1 parent 21c4ddc commit 8bd3f5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ describe("<PollListItemEnded />", () => {
await setupRoomWithPollEvents([pollStartEvent], responses, [pollEndEvent], mockClient, room);
const poll = room.polls.get(pollId)!;

const { getByText } = getComponent({ event: pollStartEvent, poll });
const { findByText } = getComponent({ event: pollStartEvent, poll });
// fetch relations
await flushPromises();

// invalid vote excluded
expect(getByText("Final result based on 2 votes")).toBeInTheDocument();
await expect(findByText("Final result based on 2 votes")).resolves.toBeInTheDocument();
});

it("updates on new responses", async () => {
Expand All @@ -158,7 +158,7 @@ describe("<PollListItemEnded />", () => {
// fetch relations
await flushPromises();

expect(getByText("Final result based on 2 votes")).toBeInTheDocument();
await expect(findByText("Final result based on 2 votes")).resolves.toBeInTheDocument();

await room.processPollEvents([
makePollResponseEvent(pollId, [answerOne.id], "@han:domain.org", roomId, timestamp + 1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ exports[`RoomHeader dm does not show the face pile for DMs 1`] = `
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: var(--cpd-space-2x);"
>
<button
aria-labelledby=":r158:"
aria-labelledby=":r154:"
class="_icon-button_bh2qc_17"
role="button"
style="--cpd-icon-button-size: 32px;"
Expand All @@ -73,7 +73,7 @@ exports[`RoomHeader dm does not show the face pile for DMs 1`] = `
<button
aria-disabled="true"
aria-label="There's no one here to call"
aria-labelledby=":r15d:"
aria-labelledby=":r159:"
class="_icon-button_bh2qc_17"
role="button"
style="--cpd-icon-button-size: 32px;"
Expand All @@ -98,7 +98,7 @@ exports[`RoomHeader dm does not show the face pile for DMs 1`] = `
</button>
<button
aria-label="Room info"
aria-labelledby=":r15i:"
aria-labelledby=":r15e:"
class="_icon-button_bh2qc_17"
role="button"
style="--cpd-icon-button-size: 32px;"
Expand All @@ -123,7 +123,7 @@ exports[`RoomHeader dm does not show the face pile for DMs 1`] = `
</button>
<button
aria-label="Threads"
aria-labelledby=":r15n:"
aria-labelledby=":r15j:"
class="_icon-button_bh2qc_17"
role="button"
style="--cpd-icon-button-size: 32px;"
Expand Down

0 comments on commit 8bd3f5a

Please sign in to comment.