Skip to content

Commit

Permalink
test(receiveModal): update tests to use new tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
escapedcat committed Oct 1, 2024
1 parent 65de1a6 commit 60ad899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Home/ReceiveModal/__tests__/ReceiveModal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("ReceiveModal", () => {
const user = userEvent.setup();
render(<ReceiveModal disclosure={mockedDisclosure} />);

const onChainBtn = await screen.findByText("wallet.on_chain");
const onChainBtn = screen.getByRole("tab", { name: "wallet.fund" });

await user.click(onChainBtn);

Expand All @@ -29,7 +29,7 @@ describe("ReceiveModal", () => {
const user = userEvent.setup();
render(<ReceiveModal disclosure={mockedDisclosure} />);

const onChainBtn = screen.getByRole("button", { name: "wallet.on_chain" });
const onChainBtn = screen.getByRole("tab", { name: "wallet.fund" });

await user.click(onChainBtn);

Expand Down

0 comments on commit 60ad899

Please sign in to comment.