diff --git a/src/components/sidebar/view/subcomponents/SessionCompletionBell.test.tsx b/src/components/sidebar/view/subcomponents/SessionCompletionBell.test.tsx index 3add728..9753a95 100644 --- a/src/components/sidebar/view/subcomponents/SessionCompletionBell.test.tsx +++ b/src/components/sidebar/view/subcomponents/SessionCompletionBell.test.tsx @@ -143,7 +143,11 @@ test('SessionCompletionBell shows localized environmental guidance without a rep ] as const satisfies readonly (readonly [CompletionNotificationReason, string])[]) { const html = await renderBell({ error }); assert.match(html, new RegExp(message.replace(/[.?]/g, '\\$&')), `${error} explains what prevents notifications`); - assert.match(html, /class="max-w-48 text-xs text-destructive"/, `${error} guidance is visible`); + // Visible text in the row's action slot squeezed the open button; the guidance is a tooltip. + assert.doesNotMatch(html, /max-w-48|text-xs text-destructive/, `${error} guidance is not visible row text`); + assert.match(html, /class="sr-only" role="status"/, `${error} guidance is still announced`); + const bellTitle = /]*title="([^"]*)"/.exec(html)?.[1] ?? ''; + assert.ok(bellTitle.includes(message.replace(/'/g, ''')), `${error} guidance is the bell's tooltip`); assert.equal((html.match(/