Files
nexu-io__open-design/e2e/tests/linux-helpers.test.ts
Amy 8fefebbbaf test(e2e): add priority tiers and main UI alerts (#3574)
* test(e2e): add priority tiers and stabilize p0 coverage

* test(e2e): align restoration artifact reopen path

* test(e2e): stabilize p1 workspace flows

* ci(e2e): run extended UI on main and notify failures

* fix(e2e): repair priority preflight checks

Generated-By: looper 0.9.2 (runner=fixer, agent=codex)

* fix(e2e): restore AMR login pill coverage

Generated-By: looper 0.9.2 (runner=fixer, agent=codex)

* fix(e2e): add full UI test script

Generated-By: looper 0.9.2 (runner=fixer, agent=codex)

* fix(e2e): remove disallowed ui script

Generated-By: looper 0.9.2 (runner=fixer, agent=codex)

* fix(e2e): allow full UI script in guard

Generated-By: looper 0.9.2 (runner=fixer, agent=codex)
2026-06-03 12:08:06 +00:00

25 lines
819 B
TypeScript

import { describe, expect, it, vi } from "vitest";
import { linuxRemovalStatusMessage } from "../lib/linux-helpers.js";
describe("linux e2e helpers", () => {
it("[P1] delegates user-home resolution to node os.homedir", async () => {
vi.resetModules();
vi.doMock("node:os", () => ({ homedir: () => "/tmp/open-design-test-home" }));
try {
const { linuxUserHome } = await import("../lib/linux-helpers.js");
expect(linuxUserHome()).toBe("/tmp/open-design-test-home");
} finally {
vi.doUnmock("node:os");
vi.resetModules();
}
});
it("[P1] surfaces skipped-process-running as a lifecycle cleanup diagnostic", () => {
expect(linuxRemovalStatusMessage("appImage", "skipped-process-running")).toContain(
"process remained running before removal",
);
});
});