Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c3caba4
Fix and expand ProposalPage.test.tsx
ancorgs Dec 15, 2025
fdeeb0a
web: Adapt BootSelection.test.tsx to the new API
ancorgs Dec 16, 2025
91c8465
web: Adapt DeviceSelectorModal.tsx to the new API
ancorgs Dec 16, 2025
ceb3300
web: Adapt DeviceSelectorModal.test.tsx to the new API
ancorgs Dec 16, 2025
3ed8ad1
web: Adapt ConnectedDevicesMenu.test.tsx to the new API
ancorgs Dec 16, 2025
ff1ed17
web: Adapt ConfigureDeviceMenu.test.tsx to new API
ancorgs Dec 16, 2025
cb32a91
web: Adapt ConfigEditor.test.tsx to the new API
ancorgs Dec 16, 2025
1b56219
Fix types of adapted tests
joseivanlopez Dec 17, 2025
3b3ca54
web: Adapt EncryptionSection.test.tsx to the new API
joseivanlopez Dec 17, 2025
cf4eb37
web: Adapt EncryptionSettingsPage.test.tsx to the new API
joseivanlopez Dec 17, 2025
f734739
web: Adapt PartitionsSection.test.tsx to the new API
joseivanlopez Dec 17, 2025
f6daf5e
web: Adapt ProposalActions.test.tsx to the new API
joseivanlopez Dec 18, 2025
2dc565e
web: Adapt FormattableDevicePage.test.tsx to the new API
ancorgs Dec 18, 2025
9f715fc
web: Adapt ProposalFailedInfo.test.tsx to the new behavior
ancorgs Dec 18, 2025
a262c83
web: Adapt ProposalResultSection.test.tsx to the new API
joseivanlopez Dec 18, 2025
a05f3ab
web: small fixes
joseivanlopez Dec 18, 2025
4def187
web: Adapt ProposalTransactionalInfo.test.tsx to the new API
joseivanlopez Dec 18, 2025
4f5fe9a
web: remove unused file
joseivanlopez Dec 18, 2025
e31712f
web: Adapt LvmPage.test.tsx to the new API
ancorgs Dec 18, 2025
41defb5
web: Adapt SpaceActionsTable.test.tsx to the new API
ancorgs Dec 18, 2025
e541c82
Simplify mock
ancorgs Dec 18, 2025
dc7e1ce
web: Adapt UnsupportedModelInfo.test.tsx to the new API
joseivanlopez Dec 19, 2025
a7ce37d
web: Adapt PartitionPage.test.tsx to the new API
ancorgs Dec 19, 2025
63b48bd
web: Adapt DriveEditor.test.tsx to the new API
joseivanlopez Dec 19, 2025
b7760ba
web: fix types from core components
joseivanlopez Dec 19, 2025
0d9632c
web: Fix types for the tests of the storage components
ancorgs Dec 19, 2025
f0f7486
web: fix types from overview components
joseivanlopez Dec 19, 2025
5f20268
web: fix eslint complaints
joseivanlopez Dec 19, 2025
1adc683
web: Fix types for the tests of the questions components
ancorgs Dec 19, 2025
ea20ebe
Merge branch 'api-v2' into api-v2-fix-storage-tests
joseivanlopez Dec 19, 2025
959b473
web: fix types and eslint
joseivanlopez Dec 19, 2025
6badbc4
web: remove AlertOutOfSync
joseivanlopez Dec 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { useIssuesChanges } from "~/hooks/model/issue";
import { useProduct } from "~/hooks/model/config";
import { ROOT } from "~/routes/paths";
import { useQueryClient } from "@tanstack/react-query";
import AlertOutOfSync from "~/components/core/AlertOutOfSync";

/**
* Content guard and flow control component.
Expand Down Expand Up @@ -59,13 +58,7 @@ const Content = () => {
return <Navigate to={ROOT.installationFinished} />;
}

return (
<>
{/* So far, only the storage backend is able to detect external changes.*/}
<AlertOutOfSync scope={"Storage"} />
<Outlet />
</>
);
return <Outlet />;
};

/**
Expand Down
152 changes: 0 additions & 152 deletions web/src/components/core/AlertOutOfSync.test.tsx

This file was deleted.

89 changes: 0 additions & 89 deletions web/src/components/core/AlertOutOfSync.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion web/src/components/core/ChangeProductOption.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import React from "react";
import { screen } from "@testing-library/react";
import { installerRender } from "~/test-utils";
import { useSystem } from "~/hooks/api";
import { useSystem } from "~/hooks/model/system";
import { PRODUCT as PATHS } from "~/routes/paths";
import { Product } from "~/types/software";
import ChangeProductOption from "./ChangeProductOption";
Expand Down
33 changes: 15 additions & 18 deletions web/src/components/core/InstallButton.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,20 @@ import { screen, waitFor, within } from "@testing-library/react";
import { installerRender, mockRoutes } from "~/test-utils";
import { InstallButton } from "~/components/core";
import { PRODUCT, ROOT } from "~/routes/paths";
import { Issue, IssueSeverity, IssueSource } from "~/model/issue";
import type { Issue } from "~/model/issue";

const mockStartInstallationFn = jest.fn();
let mockIssuesList: Issue[];

jest.mock("~/api/manager", () => ({
...jest.requireActual("~/api/manager"),
jest.mock("~/model/manager", () => ({
...jest.requireActual("~/model/manager"),
startInstallation: () => mockStartInstallationFn(),
}));

jest.mock("~/queries/issues", () => ({
...jest.requireActual("~/queries/issues"),
useAllIssues: () => mockIssuesList,
const mockIssues = jest.fn();

jest.mock("~/hooks/model/issue", () => ({
...jest.requireActual("~/hooks/model/issue"),
useIssues: () => mockIssues(),
}));

const clickInstallButton = async () => {
Expand All @@ -52,16 +53,14 @@ const clickInstallButton = async () => {
describe("InstallButton", () => {
describe("when there are installation issues", () => {
beforeEach(() => {
mockIssuesList = [
mockIssues.mockReturnValue([
{
description: "Fake Issue",
kind: "generic",
source: IssueSource.Unknown,
severity: IssueSeverity.Error,
class: "generic",
details: "Fake Issue details",
scope: "product",
},
];
] as Issue[]);
});

it("renders additional information to warn users about found problems", async () => {
Expand All @@ -86,7 +85,7 @@ describe("InstallButton", () => {

describe("when there are not installation issues", () => {
beforeEach(() => {
mockIssuesList = [];
mockIssues.mockReturnValue([]);
});

it("renders the button without any additional information", async () => {
Expand Down Expand Up @@ -130,16 +129,14 @@ describe("InstallButton", () => {

describe("when there are only non-critical issues", () => {
beforeEach(() => {
mockIssuesList = [
mockIssues.mockReturnValue([
{
description: "Fake warning",
kind: "generic",
source: IssueSource.Unknown,
severity: IssueSeverity.Warn,
class: "generic",
details: "Fake Issue details",
scope: "product",
},
];
] as Issue[]);
});

it("renders the button without any additional information", async () => {
Expand Down
6 changes: 3 additions & 3 deletions web/src/components/core/InstallerOptions.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { useSystem } from "~/hooks/model/system";
import { useProduct } from "~/hooks/model/config";
import { Product } from "~/types/software";
import { Keymap, Locale } from "~/model/system/l10n";
import { Progress, State } from "~/model/status";
import { Progress, Stage } from "~/model/status";
import { System } from "~/model/system/network";
import * as utils from "~/utils";
import { PRODUCT, ROOT } from "~/routes/paths";
Expand Down Expand Up @@ -68,7 +68,7 @@ const mockChangeUIKeymap = jest.fn();
const mockChangeUILanguage = jest.fn();
const mockPatchConfigFn = jest.fn();
const mockConfigureL10nActionFn = jest.fn();
const mockStateFn: jest.Mock<State> = jest.fn();
const mockStateFn: jest.Mock<Stage> = jest.fn();
const mockProgressesFn: jest.Mock<Progress[]> = jest.fn();
const mockSelectedProductFn: jest.Mock<Product> = jest.fn();

Expand All @@ -85,7 +85,7 @@ jest.mock("~/hooks/api", () => ({
network,
}),
useStatus: (): ReturnType<typeof useStatus> => ({
state: mockStateFn(),
stage: mockStateFn(),
progresses: mockProgressesFn(),
}),
useProduct: (): ReturnType<typeof useProduct> => mockSelectedProductFn(),
Expand Down
Loading
Loading