From 60ad899e9b8b5d468c5955a931fe437e33d10502 Mon Sep 17 00:00:00 2001 From: escapedcat Date: Tue, 1 Oct 2024 13:04:50 +0200 Subject: [PATCH] test(receiveModal): update tests to use new tabs --- src/pages/Home/ReceiveModal/__tests__/ReceiveModal.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Home/ReceiveModal/__tests__/ReceiveModal.test.tsx b/src/pages/Home/ReceiveModal/__tests__/ReceiveModal.test.tsx index 44f060ee..5763f34a 100644 --- a/src/pages/Home/ReceiveModal/__tests__/ReceiveModal.test.tsx +++ b/src/pages/Home/ReceiveModal/__tests__/ReceiveModal.test.tsx @@ -18,7 +18,7 @@ describe("ReceiveModal", () => { const user = userEvent.setup(); render(); - const onChainBtn = await screen.findByText("wallet.on_chain"); + const onChainBtn = screen.getByRole("tab", { name: "wallet.fund" }); await user.click(onChainBtn); @@ -29,7 +29,7 @@ describe("ReceiveModal", () => { const user = userEvent.setup(); render(); - const onChainBtn = screen.getByRole("button", { name: "wallet.on_chain" }); + const onChainBtn = screen.getByRole("tab", { name: "wallet.fund" }); await user.click(onChainBtn);