Skip to content

Commit 86a85b4

Browse files
Copilothotlong
andcommitted
fix: correct aria-label assertion in ObjectView chatter panel test
The test used getByLabelText('Show discussion') but the actual aria-label rendered by RecordChatterPanel is 'Show Discussion (0)' (from i18n default translation with count parameter). Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/e52cb32e-6402-44bb-876a-f0658356524a
1 parent 90aa43d commit 86a85b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/console/src/__tests__/ObjectView.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ describe('ObjectView Component', () => {
918918

919919
// The drawer should render a "Show Discussion" button (ChatterPanel is defaultCollapsed)
920920
await vi.waitFor(() => {
921-
const showBtn = screen.getByLabelText('Show discussion');
921+
const showBtn = screen.getByLabelText('Show Discussion (0)');
922922
expect(showBtn).toBeInTheDocument();
923923
// Verify items count shows (0) since items are initially empty
924924
expect(showBtn).toHaveTextContent('Show Discussion (0)');

0 commit comments

Comments
 (0)