Skip to content

Commit

Permalink
Update page.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nortonandreev committed Feb 23, 2024
1 parent da56036 commit b589ff4
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions web-wallet/src/routes/(welcome)/setup/create/__tests__/page.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import Create from "../+page.svelte";
import { settingsStore, walletStore } from "$lib/stores";
import { setKey } from "lamb";
import { Wallet } from "@dusk-network/dusk-wallet-js";
import * as walletService from "$lib/services/wallet";
import { getSeedFromMnemonic } from "$lib/wallet";
import * as appNavigation from "$app/navigation";
import * as bip39 from "bip39"; // Import the bip39 library
import { encryptMnemonic, getSeedFromMnemonic } from "$lib/wallet";
import * as shuffleArray from "$lib/dusk/array"; // Import the bip39 library
import * as bip39 from "bip39";
import * as walletService from "$lib/services/wallet";
import * as shuffleArray from "$lib/dusk/array";
import { tick } from "svelte";
import loginInfoStorage from "$lib/services/loginInfoStorage";

Expand Down Expand Up @@ -214,8 +214,9 @@ describe("Create", async () => {
// Note: This type of test won't work for mnemonic with repeated words
mnemonicSplit.forEach(async word => {
const button = getByRole("button", { name: word });

await fireEvent.click(button);
})
});

await tick();

Expand Down Expand Up @@ -244,8 +245,9 @@ describe("Create", async () => {

mnemonicSplit.forEach(async word => {
const button = getByRole("button", { name: word });

await fireEvent.click(button);
})
});

await tick();

Expand Down Expand Up @@ -281,8 +283,9 @@ describe("Create", async () => {
// Note: This type of test won't work for mnemonic with repeated words
mnemonicSplit.forEach(async word => {
const button = getByRole("button", { name: word });

await fireEvent.click(button);
})
});

await tick();

Expand Down Expand Up @@ -312,8 +315,9 @@ describe("Create", async () => {
// Note: This type of test won't work for mnemonic with repeated words
mnemonicSplit.forEach(async word => {
const button = getByRole("button", { name: word });

await fireEvent.click(button);
})
});

await tick();

Expand Down Expand Up @@ -344,8 +348,9 @@ describe("Create", async () => {
// Note: This type of test won't work for mnemonic with repeated words
mnemonicSplit.forEach(async word => {
const button = getByRole("button", { name: word });

await fireEvent.click(button);
})
});

await tick();

Expand Down Expand Up @@ -379,8 +384,9 @@ describe("Create", async () => {

mnemonicSplit.forEach(async word => {
const button = getByRole("button", { name: word });

await fireEvent.click(button);
})
});

await tick();

Expand Down Expand Up @@ -430,8 +436,9 @@ describe("Create", async () => {

mnemonicSplit.forEach(async word => {
const button = getByRole("button", { name: word });

await fireEvent.click(button);
})
});

await tick();

Expand Down

0 comments on commit b589ff4

Please sign in to comment.