Skip to content

Commit

Permalink
Remove V1Backup test
Browse files Browse the repository at this point in the history
  • Loading branch information
OKendigelyan committed Nov 26, 2024
1 parent 9ffce0a commit 2718cce
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 26 deletions.
1 change: 0 additions & 1 deletion apps/desktop-e2e/src/features/onboarding.feature
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,4 @@ Feature: User Onboarding

Examples:
| fileName | password |
| V1Backup.json | asdfasdf |
| V2Backup.json | 123123123 |
20 changes: 0 additions & 20 deletions apps/desktop-e2e/src/helpers/backedupAccountGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,6 @@ import { DEFAULT_DERIVATION_PATH_TEMPLATE } from "@umami/tezos";

import { type AccountGroup, AccountGroupBuilder } from "./AccountGroup";

export const v1BackedupAccountGroups = async () => {
const expectedGroups: AccountGroup[] = [];

let accountGroupBuilder = new AccountGroupBuilder("mnemonic", 1);
accountGroupBuilder.setAllAccountNames("Account");
accountGroupBuilder.setSeedPhrase(mnemonic1.split(" "));
accountGroupBuilder.setDerivationPathTemplate(DEFAULT_DERIVATION_PATH_TEMPLATE.value);
expectedGroups.push(await accountGroupBuilder.build());

const mnemonic =
"top skirt fan helmet ankle pave original ivory push song bridge broom hawk food parade nation involve sunny rely security ladder beach gown imitate";
accountGroupBuilder = new AccountGroupBuilder("mnemonic", 1);
accountGroupBuilder.setAllAccountNames("Account");
accountGroupBuilder.setSeedPhrase(mnemonic.split(" "));
accountGroupBuilder.setDerivationPathTemplate(DEFAULT_DERIVATION_PATH_TEMPLATE.value);
expectedGroups.push(await accountGroupBuilder.build());
// TODO: add related multisig accounts.
return expectedGroups;
};

export const v2BackedupAccountGroups = async () => {
const expectedGroups: AccountGroup[] = [];
// Seedphrase 5fd091e1
Expand Down
6 changes: 2 additions & 4 deletions apps/desktop-e2e/src/steps/onboarding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { DEFAULT_DERIVATION_PATH_TEMPLATE } from "@umami/tezos";

import { type CustomWorld } from "./world";
import { type AccountGroup, AccountGroupBuilder } from "../helpers/AccountGroup";
import { v1BackedupAccountGroups, v2BackedupAccountGroups } from "../helpers/backedupAccountGroups";
import { v2BackedupAccountGroups } from "../helpers/backedupAccountGroups";
import { AccountsPage } from "../pages/AccountsPage";

export const BASE_URL = "http://127.0.0.1:3000";
Expand Down Expand Up @@ -116,9 +116,7 @@ Then(
"I have groups matching {string} backup file",
async function (this: CustomWorld, backupFileName) {
let expectedGroups: AccountGroup[] = [];
if (backupFileName === "V1Backup.json") {
expectedGroups = await v1BackedupAccountGroups();
} else if (backupFileName === "V2Backup.json") {
if (backupFileName === "V2Backup.json") {
expectedGroups = await v2BackedupAccountGroups();
} else {
throw new Error(`Unknown backup file: ${backupFileName}`);
Expand Down
1 change: 0 additions & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"files": [
"src/fixtures/backups/V1Backup.json",
"src/fixtures/backups/V2Backup.json",
"src/fixtures/backups/V21Backup.json"
],
Expand Down

1 comment on commit 2718cce

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title Lines Statements Branches Functions
apps/desktop Coverage: 84%
83.88% (1764/2103) 79.35% (838/1056) 78.45% (448/571)
apps/web Coverage: 84%
83.88% (1764/2103) 79.35% (838/1056) 78.45% (448/571)
packages/components Coverage: 97%
97.84% (182/186) 96.51% (83/86) 87.03% (47/54)
packages/core Coverage: 81%
81.91% (222/271) 71.22% (99/139) 81.96% (50/61)
packages/crypto Coverage: 100%
100% (43/43) 90.9% (10/11) 100% (7/7)
packages/data-polling Coverage: 97%
95.27% (141/148) 87.5% (21/24) 92.85% (39/42)
packages/multisig Coverage: 98%
98.47% (129/131) 85.71% (18/21) 100% (36/36)
packages/social-auth Coverage: 100%
100% (21/21) 100% (11/11) 100% (3/3)
packages/state Coverage: 85%
84.73% (805/950) 80.63% (179/222) 78.89% (299/379)
packages/tezos Coverage: 89%
88.72% (118/133) 94.59% (35/37) 86.84% (33/38)
packages/tzkt Coverage: 89%
87.32% (62/71) 87.5% (14/16) 80.48% (33/41)

Please sign in to comment.