109e74db41
Web UI rework. Shared-components slice (drift prevention): - Migrate SectionCard, SelectionRailCard, TabbedCard, MetricCard, DiskSpaceCard, HoverEditButton, DialogFooter, ConfirmDialog, LibraryOverview, NowPlaying, SessionActivityPanel off @mui - HoverEditButton: MUI IconButton + EditOutlined -> Button + lucide Pencil - Status mapping uses the success Badge variant (chart-2) for healthy - Exported APIs preserved so consuming pages still compile (no page edits) - 11 behavioral Vitest component tests added Gate: build + lint + test green.
13 lines
425 B
TypeScript
13 lines
425 B
TypeScript
import { describe, it, expect } from "vitest";
|
|
import { render, screen } from "@testing-library/react";
|
|
import { NowPlaying } from "../NowPlaying";
|
|
|
|
describe("NowPlaying", () => {
|
|
it("renders the dashboard empty-state message contract when there are no sessions", () => {
|
|
render(<NowPlaying sessions={[]} />);
|
|
expect(
|
|
screen.getByText("No recent user activity sessions right now."),
|
|
).toBeInTheDocument();
|
|
});
|
|
});
|