diff --git a/apps/desktop-e2e/src/features/onboarding.feature b/apps/desktop-e2e/src/features/onboarding.feature
index 6996e6fc81..c80edd4780 100644
--- a/apps/desktop-e2e/src/features/onboarding.feature
+++ b/apps/desktop-e2e/src/features/onboarding.feature
@@ -170,6 +170,7 @@ Feature: User Onboarding
| |
| TestAccount |
+ @focus
Scenario: User imports a backup file
Given I am on the welcome page
diff --git a/apps/desktop-e2e/src/fixtures/backups/backedupAccountGroups.ts b/apps/desktop-e2e/src/helpers/backedupAccountGroups.ts
similarity index 97%
rename from apps/desktop-e2e/src/fixtures/backups/backedupAccountGroups.ts
rename to apps/desktop-e2e/src/helpers/backedupAccountGroups.ts
index d04e44573f..2f3e1e0755 100644
--- a/apps/desktop-e2e/src/fixtures/backups/backedupAccountGroups.ts
+++ b/apps/desktop-e2e/src/helpers/backedupAccountGroups.ts
@@ -1,7 +1,7 @@
import { mnemonic1 } from "@umami/test-utils";
import { DEFAULT_DERIVATION_PATH_TEMPLATE } from "@umami/tezos";
-import { type AccountGroup, AccountGroupBuilder } from "../../helpers/AccountGroup";
+import { type AccountGroup, AccountGroupBuilder } from "./AccountGroup";
export const v1BackedupAccountGroups = async () => {
const expectedGroups: AccountGroup[] = [];
diff --git a/apps/desktop-e2e/src/steps/onboarding.ts b/apps/desktop-e2e/src/steps/onboarding.ts
index 85a07c9d3a..2455d985c3 100644
--- a/apps/desktop-e2e/src/steps/onboarding.ts
+++ b/apps/desktop-e2e/src/steps/onboarding.ts
@@ -6,11 +6,8 @@ import { mnemonic1 as existingSeedphrase } from "@umami/test-utils";
import { DEFAULT_DERIVATION_PATH_TEMPLATE } from "@umami/tezos";
import { type CustomWorld } from "./world";
-import {
- v1BackedupAccountGroups,
- v2BackedupAccountGroups,
-} from "../fixtures/backups/backedupAccountGroups";
import { type AccountGroup, AccountGroupBuilder } from "../helpers/AccountGroup";
+import { v1BackedupAccountGroups, v2BackedupAccountGroups } from "../helpers/backedupAccountGroups";
import { AccountsPage } from "../pages/AccountsPage";
export const BASE_URL = "http://127.0.0.1:3000";
@@ -83,7 +80,12 @@ When("I upload {string} backup file", async function (this: CustomWorld, backupF
const fileChooserPromise = this.page.waitForEvent("filechooser");
await this.page.getByTestId("file-input").click();
const fileChooser = await fileChooserPromise;
- await fileChooser.setFiles(path.join(__dirname, `../fixtures/backups/${backupFileName}`));
+ await fileChooser.setFiles(
+ path.resolve(
+ __dirname,
+ `../../../../packages/test-utils/src/fixtures/backups/${backupFileName}`
+ )
+ );
});
Then(/I am on an? (\w+) page/, async function (this: CustomWorld, pageName) {
diff --git a/apps/desktop/src/components/ErrorPage.tsx b/apps/desktop/src/components/ErrorPage.tsx
index 4027b4c6a5..08b98ecd0c 100644
--- a/apps/desktop/src/components/ErrorPage.tsx
+++ b/apps/desktop/src/components/ErrorPage.tsx
@@ -1,11 +1,11 @@
import { Box, Button, Center, Heading, Link, VStack } from "@chakra-ui/react";
-import { downloadBackupFile } from "@umami/state";
import { useOffboardingModal } from "./Offboarding/useOffboardingModal";
import { ModalContentWrapper } from "./Onboarding/ModalContentWrapper";
import { NoticeIcon, ReloadIcon } from "../assets/icons";
import BackgroundImage from "../assets/onboarding/background_image.png";
import colors from "../style/colors";
+import { useSaveBackup } from "../utils/useSaveBackup";
const feedbackEmailBodyTemplate =
"What is it about? (if a bug report please consider including your account address) %0A PLEASE FILL %0A%0A What is the feedback? %0A PLEASE FILL";
@@ -16,9 +16,11 @@ const refresh = () => {
export const ErrorPage = () => {
const { modalElement: OffboardingModal, onOpen: onOpenOffboardingModal } = useOffboardingModal();
+ const { content: saveBackupModal, onOpen: saveBackup } = useSaveBackup();
return (
+ {saveBackupModal}
{
title="Oops! Something went wrong!"
>
-