feat: scroll-driven maintenance window set-piece in the infrastructure chapter
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user