Skip to content

fix: stabilize tray test CI & always show SkillsMarketBanner desc/details#1380

Merged
piorpua merged 2 commits intomainfrom
fix/tray-test-and-skills-banner
Mar 17, 2026
Merged

fix: stabilize tray test CI & always show SkillsMarketBanner desc/details#1380
piorpua merged 2 commits intomainfrom
fix/tray-test-and-skills-banner

Conversation

@kaizhou-lab
Copy link
Copy Markdown
Collaborator

Closes #1379

Summary

  • fix(test): Use a shared top-level mockBuildFromTemplate reference instead of re-importing Menu from electron after vi.resetModules(), which caused intermittent undefined in CI (Ubuntu)
  • fix(ui): Remove compact mode from SkillsMarketBanner so skillsMarketDesc and skillsMarketDetails are always visible regardless of switch state
  • fix(ui): Add 2s timeout fallback for ConfigStorage.get to ensure the banner renders in WebUI mode where the IPC bridge is unavailable

Test plan

  • bun run test -- tests/unit/tray.test.ts passes locally
  • CI Coverage Test passes (no more flaky tray test)
  • SkillsMarketBanner shows desc and details link with switch ON (desktop)
  • SkillsMarketBanner shows desc and details link with switch OFF (desktop)
  • SkillsMarketBanner renders in WebUI mode (after 2s timeout)

zk added 2 commits March 17, 2026 20:37
Use a shared top-level mockBuildFromTemplate reference instead of
re-importing Menu from electron after vi.resetModules(), which
caused intermittent undefined in CI environments.
Remove compact mode that hid description and details link when the
switch was enabled. The banner now consistently displays the full
description and details link regardless of toggle state.
@piorpua piorpua merged commit 6cb397f into main Mar 17, 2026
18 of 20 checks passed
@piorpua piorpua deleted the fix/tray-test-and-skills-banner branch March 17, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: tray test CI flaky & SkillsMarketBanner always show desc/details

2 participants