Skip to content

Commit

Permalink
fix: participants modal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmuniz1994 committed Oct 28, 2023
1 parent ab83eea commit 5ba2817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/participants/ParticipantsModal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe("ParticipantsModal", () => {
preloadedState: { call },
});
expect(
screen.getByText(window.location.href + "join?callUid=" + call.uid)
screen.getByText(`${window.location.origin}${window.location.pathname}`)
).toBeVisible();
});

Expand All @@ -51,7 +51,7 @@ describe("ParticipantsModal", () => {
await act(() => fireEvent.click(copyButton));

expect(navigator.clipboard.writeText).toHaveBeenCalledWith(
window.location.href + "join?callUid=" + call.uid
`${window.location.origin}${window.location.pathname}`
);

const successSnackbar = await waitFor(() => screen.getByRole("alert"));
Expand Down

0 comments on commit 5ba2817

Please sign in to comment.