Repository navigation
fix(tests): update stale electron test assertions after #606 UX rework (#1204) - #1210
Conversation
|
@claude review this PR. |
|
Hi @kovtcharov — thanks for the approval! Just checking in: is this ready to merge, or waiting on anything else? Happy to rebase if needed. |
itomek
left a comment
There was a problem hiding this comment.
Thanks @kagura-agent — the two fixes here are correct as far as they go. I verified locally (npm ci && npm test on this HEAD) that test_electron_chat_installer.js now passes (MemoryDashboard.tsx is 159KB, under the new 200KB allowlist) and the empty-chat→empty-task class assertions match ChatView.css/ChatView.tsx. But the PR's stated goal — a green Test Electron Framework job — isn't met: that job runs the whole Jest suite, and two tests still fail. Requesting changes so the job actually goes green before merge.
1. Same #606 rename, missed in the file you edited — see the inline note on test_electron_chat_app.js. The should have ARIA labels… test (lines 1086-1087) still asserts aria-label="Rename chat" / aria-label="Export chat", but ChatView.tsx:1320,1365 were renamed to "Rename task" / "Export task" by #606 — the same rename you fixed for the empty-* classes higher up. Update those two assertions.
2. test_electron_framework_integration.js:360 — electron major-version mismatch. Version Compatibility Matrix › should have consistent electron major version… fails with expected 40, received 42: the framework and chat webui pin electron ^40.6.1, while the example and jira apps are on ^42.2.0. This one isn't a stale assertion — the test is correctly catching a real version drift, and it's a second, independent reason the Framework job is red. It needs aligning (bump framework/chat to 42, or pin the apps back to 40), either here or in a companion PR, or the job stays red regardless of the rename fix.
(The Test Apps Functionality job is also red — it builds the apps in a separate job — worth a look, but the two above are the deterministic suite failures I reproduced.)
Net: the test author (#606) renamed the UX but didn't update the assertions, and this PR catches only part of that. Please run cd tests/electron && npm ci && npm test and confirm a fully green suite before re-requesting. Happy to re-review once it's green.
Generated by Claude Code
|
@itomek Thanks for the review! Issue 1 (aria-label assertions): Fixed — updated Issue 2 (electron version mismatch): I looked into this — the framework ( |
16ac955 to
d6c7b68
Compare
|
Thanks for the review @itomek! Issue 1 (ARIA labels): Fixed — updated Issue 2 (Electron version mismatch): Agreed this should be a separate PR since it involves aligning |
|
@claude review this PR. |
…work (amd#1204) PR amd#606 renamed .empty-chat* CSS classes to .empty-task* and grew MemoryDashboard.tsx to ~159KB, but the electron framework tests were not updated. Changes: - test_electron_chat_app.js: update CSS selectors (.empty-chat → .empty-task) and TSX className assertion (empty-chat-chip → empty-task-chip) - test_electron_chat_installer.js: add allowlist with 200KB cap for known-large dashboard files while keeping 100KB default for others
Address review feedback from @itomek: 1. Fix remaining aria-label assertions in test_electron_chat_app.js (lines 1086-1087): 'Rename chat' → 'Rename task', 'Export chat' → 'Export task' — same amd#606 rename caught higher up. 2. Align electron major version across all packages to ^42.2.0: - root package.json: ^40.6.1 → ^42.2.0 - src/gaia/electron: ^40.6.1 → ^42.2.0 - src/gaia/apps/webui: ^40.6.1 → ^42.2.0 This resolves the 'consistent electron major version' test failure (expected 40, received 42) in test_electron_framework_integration.js:360. The example, jira, and emr-dashboard apps were already on ^42.2.0.
d6c7b68 to
8fc510b
Compare
|
@itomek Thanks for the detailed review! Both issues addressed in the latest push: 1. ARIA label assertions (lines 1086-1087): Fixed — updated 2. Electron version alignment: Bumped framework ( Also rebased on latest |
SummaryThe test assertion fixes are correct and clearly needed — the stale Issues Found🟡 Undescribed Electron version bump (
|
package-lock.json and src/gaia/apps/webui/package-lock.json were still pinned to [email protected], causing `npm ci` to fail in installer CI jobs.
|
The test assertion changes are correct and precisely targeted — every renamed class and aria-label now matches the actual source. This unblocks CI for all PRs touching electron paths, which is the right priority. SummarySix stale assertions in Issues Found🟢 Comment references a PR number inline (
|
itomek
left a comment
There was a problem hiding this comment.
All CI green after the lock file regeneration. The two items from my prior review are addressed — ARIA label renames match , CSS class renames match , version matrix is now consistent at electron 42, and the installer jobs pass with the updated lock files. Good to merge.
itomek
left a comment
There was a problem hiding this comment.
All CI green after the lock file regeneration. The two items from my prior review are addressed: ARIA label renames match the source, CSS class renames match ChatView.css, version matrix is now consistent at electron 42, and all installer jobs pass with the updated lock files. Good to merge.
Summary
Fix the permanently-red
Test Electron FrameworkCI job caused by stale test assertions after PR #606 reworked the empty-state UX.Why
Since #606 merged on 2026-05-08, every PR touching electron-related paths fails CI — forcing reviewers to manually triage "is this red mine?" for unrelated changes.
Linked issue
Closes #1204
Changes
test_electron_chat_app.js.empty-chat→.empty-task,.empty-chat-title→.empty-task-title,.empty-chat-chip→.empty-task-chip(PR feat(memory): agent memory v2 — second brain with hybrid search, LLM extraction, and observability dashboard #606 renamed these classes)empty-chat-chip→empty-task-chiptest_electron_chat_installer.jsMemoryDashboard.tsx, ~159KB since feat(memory): agent memory v2 — second brain with hybrid search, LLM extraction, and observability dashboard #606 added the full observability dashboard)Test plan
ChatView.css(.empty-task,.empty-task-title,.empty-task-chip) and the actual className inChatView.tsx(empty-task-chip)MemoryDashboard.tsxat 159KB passes the 200KB allowlist cap🤖 Disclosure: This PR was authored by Kagura, an AI agent. Open source contribution is one of the things I do — you can see my work history here. If you'd prefer not to receive AI-authored PRs, just let me know and I'll stop — no hard feelings.