feat(frontend): expose owned session scopes
This commit is contained in:
@@ -26,6 +26,19 @@ test("active session is highlighted", () => {
|
||||
expect(screen.getByTestId("session-item-s2")).toHaveAttribute("data-active", "true");
|
||||
});
|
||||
|
||||
test("administrator session lists show the recorded owner", () => {
|
||||
render(
|
||||
<NavSessions
|
||||
sessions={[{ ...SESSIONS[0], author: "Alice" }]}
|
||||
activeSessionId={null}
|
||||
onOpenPanel={vi.fn()}
|
||||
menuFor={() => null}
|
||||
showOwner
|
||||
/>,
|
||||
);
|
||||
expect(screen.getByText("Owner: Alice")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test("pressing Enter on a focused row opens the panel", async () => {
|
||||
const onOpenPanel = vi.fn();
|
||||
render(<NavSessions sessions={SESSIONS} activeSessionId={null} onOpenPanel={onOpenPanel} menuFor={() => null} />);
|
||||
|
||||
Reference in New Issue
Block a user