From 90aa43d1ba1f318541f61144497db17ae1d334f2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 05:27:55 +0000 Subject: [PATCH 1/3] Initial plan From 86a85b4ca1048192908cd4b8b760d10a5f23f7a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 05:58:21 +0000 Subject: [PATCH 2/3] 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 --- apps/console/src/__tests__/ObjectView.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/console/src/__tests__/ObjectView.test.tsx b/apps/console/src/__tests__/ObjectView.test.tsx index ac9548300..9a1106f61 100644 --- a/apps/console/src/__tests__/ObjectView.test.tsx +++ b/apps/console/src/__tests__/ObjectView.test.tsx @@ -918,7 +918,7 @@ describe('ObjectView Component', () => { // The drawer should render a "Show Discussion" button (ChatterPanel is defaultCollapsed) await vi.waitFor(() => { - const showBtn = screen.getByLabelText('Show discussion'); + const showBtn = screen.getByLabelText('Show Discussion (0)'); expect(showBtn).toBeInTheDocument(); // Verify items count shows (0) since items are initially empty expect(showBtn).toHaveTextContent('Show Discussion (0)'); From bd1aefecd66f4fd82edd01681e0dc72615a57a06 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Mar 2026 06:01:09 +0000 Subject: [PATCH 3/3] docs: update CHANGELOG.md with ChatterPanel test fix entry 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 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1eb92dbb..7a685cba1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- **ObjectView ChatterPanel test assertion mismatch** (`apps/console`): Fixed the failing CI test in `ObjectView.test.tsx` where the RecordChatterPanel drawer test used `getByLabelText('Show discussion')` but the actual aria-label rendered by the component is `'Show Discussion (0)'` (from the i18n default translation `detail.showDiscussion` with count parameter). Updated the test assertion to match the correct aria-label. + ### Changed - **Upgrade @objectstack packages from v3.2.9 to v3.3.0**: Upgraded all `@objectstack/*` dependencies across the entire monorepo (root, `apps/console`, `examples/crm`, `examples/todo`, `examples/msw-todo`, `examples/kitchen-sink`, `packages/core`, `packages/types`, `packages/react`, `packages/data-objectstack`, `packages/plugin-map`, `packages/plugin-gantt`, `packages/plugin-timeline`) from `^3.2.9` to `^3.3.0`. All 42 build tasks pass and all 7,224 tests pass with no breaking changes.