feat: scroll-driven maintenance window set-piece in the infrastructure chapter

This commit is contained in:
2026-10-11 04:25:28 +03:00
parent bd9bd692b9
commit 52b4a1ad14
45 changed files with 1063 additions and 10 deletions

View File

@@ -430,4 +430,22 @@ describe("JourneyHud", () => {
expect(wrapper.text()).not.toContain("Low");
expect(wrapper.attributes("aria-hidden")).toBe("true");
});
it("hangs the maintenance sub-line under the plate only when one is given", () => {
const quiet = mount(JourneyHud, {
props: { journey: journey({ activeSectionId: "experience" }), sectionLabel: "Experience" },
});
expect(quiet.get(".journey-hud__subline").text()).toBe("");
quiet.unmount();
const window = mount(JourneyHud, {
props: {
journey: journey({ activeSectionId: "infrastructure" }),
sectionLabel: "Infrastructure",
subline: "MAINTENANCE WINDOW \u00b7 03:12",
},
});
expect(window.get(".journey-hud__subline").text()).toBe("MAINTENANCE WINDOW \u00b7 03:12");
window.unmount();
});
});