Skip to content

Commit 7dcad97

Browse files
committed
test(web): add help-button accessibility test to WatchdogPanel
Covers the tooltip trigger buttons added for a11y: asserts each of the three watchdog fields renders a <button> with the correct aria-label. https://claude.ai/code/session_01X74kb6YgwetxRSuj1U5NR4
1 parent fda5e25 commit 7dcad97

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

app/packages/web/src/components/watchdog-panel.component.test.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ describe('WatchdogPanel', () => {
4141
expect(screen.getByRole('button', { name: /save/i })).toBeInTheDocument();
4242
});
4343

44+
it('should render an accessible help button for each watchdog field', () => {
45+
render(<WatchdogPanel />);
46+
47+
expect(screen.getByRole('button', { name: 'Check interval (min) help' })).toBeInTheDocument();
48+
expect(screen.getByRole('button', { name: 'Idle checks before shutdown help' })).toBeInTheDocument();
49+
expect(screen.getByRole('button', { name: 'Min packets (activity threshold) help' })).toBeInTheDocument();
50+
});
51+
4452
it('should show a success toast after saving settings', async () => {
4553
render(<WatchdogPanel />);
4654

0 commit comments

Comments
 (0)