Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions web/package/agama-web-ui.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 24 14:45:14 UTC 2026 - David Diaz <dgonzalez@suse.com>

- Allow downloading logs and config from the installation finished
page (gh#agama-project/agama#3329).

-------------------------------------------------------------------
Thu Mar 19 16:35:10 UTC 2026 - David Diaz <dgonzalez@suse.com>

Expand Down
19 changes: 19 additions & 0 deletions web/src/components/core/InstallationFinished.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,25 @@ describe("InstallationFinished", () => {
screen.getByRole("button", { name: /Reboot/i });
});

it("shows the installer options menu", async () => {
installerRender(<InstallationFinished />);
screen.getByRole("button", { name: /More installer options/i });
});

it("includes an option for downloading the logs", async () => {
const { user } = installerRender(<InstallationFinished />);
await user.click(screen.getByRole("button", { name: /More installer options/i }));
const menuitem = screen.getByRole("menuitem", { name: /Download logs/i });
expect(menuitem).toHaveAttribute("download");
});

it("includes an option for downloading the config", async () => {
const { user } = installerRender(<InstallationFinished />);
await user.click(screen.getByRole("button", { name: /More installer options/i }));
const menuitem = screen.getByRole("menuitem", { name: /Download config/i });
expect(menuitem).toHaveAttribute("download");
});

describe("when running storage config in raw mode", () => {
beforeEach(() => {
mockUseExtendedConfigFn.mockReturnValue(mockStorageConfig("raw", null));
Expand Down
3 changes: 2 additions & 1 deletion web/src/components/core/InstallationFinished.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import {
} from "@patternfly/react-core";
import Page from "~/components/core/Page";
import RebootButton from "~/components/core/RebootButton";
import InstallerOptionsMenu from "~/components/core/InstallerOptionsMenu";
import SplitInfoLayout from "~/components/layout/SplitInfoLayout";
import { useExtendedConfig } from "~/hooks/model/config";
import { _ } from "~/i18n";
Expand Down Expand Up @@ -92,7 +93,7 @@ function InstallationFinished() {
const mountTpmAlert = usingTpm(storageConfig);

return (
<Page variant="minimal">
<Page noDefaultStartSlot endSlot={<InstallerOptionsMenu hideLabel />}>
<Page.Content>
<SplitInfoLayout
icon="done_all"
Expand Down
Loading