From 0e8c4277b74b1b49075af7c176aa9717d0c5d270 Mon Sep 17 00:00:00 2001 From: Norton Andreev Date: Fri, 23 Feb 2024 19:29:33 +0200 Subject: [PATCH] Update page.spec.js --- .../src/routes/(welcome)/setup/create/__tests__/page.spec.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web-wallet/src/routes/(welcome)/setup/create/__tests__/page.spec.js b/web-wallet/src/routes/(welcome)/setup/create/__tests__/page.spec.js index a09c68d626..6d278228db 100644 --- a/web-wallet/src/routes/(welcome)/setup/create/__tests__/page.spec.js +++ b/web-wallet/src/routes/(welcome)/setup/create/__tests__/page.spec.js @@ -219,9 +219,7 @@ describe("Create", async () => { const mnemonicSplit = mnemonic.split(" "); mnemonicSplit.forEach(async word => { - const button = getByRole("button", { name: word }); - - await fireEvent.click(button); + await fireEvent.click(getByRole("button", { name: word })); }); await tick();