Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/franken-web/src/components/activity-pane.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ describe('ActivityPane', () => {
vi.restoreAllMocks();
});

it('exposes the activity pane as a named region landmark', () => {
render(<ActivityPane events={[]} />);

const region = screen.getByRole('region', { name: 'Activity' });
expect(region.tagName).toBe('SECTION');
});

it('summarizes turn errors and keeps raw data behind details', () => {
render(
<ActivityPane
Expand Down
2 changes: 1 addition & 1 deletion packages/franken-web/src/components/activity-pane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export function ActivityPane({ events, resetKey }: ActivityPaneProps) {
}, [events.length, latestAnnouncement, resetKey]);

return (
<section className="rail-card terminal-activity" aria-label="Activity">
<section className="rail-card terminal-activity" role="region" aria-label="Activity">
<div className="rail-card__header">
<p className="eyebrow">Activity</p>
<h2>Runtime Events</h2>
Expand Down
Loading