Files
magpie/internal/gui/tests
SadWood 70f2153463 test: 修正跨平台测试路径并补充下拉菜单回归 (#145)
WorkBuddy 测试固定使用 macOS 登录文件路径,导致 Ubuntu 无法读取测试账号。按当前系统选择测试文件目录,保留账号读取、刷新和加密凭证的原有断言。

为已合并的下拉菜单修复补充浏览器回归,覆盖滚轮、滚动条、键盘选择和关闭行为,测试数据使用中性名称。
2026-09-28 18:00:38 +08:00
..

Dropdown browser regression

menu-scroll.test.cjs loads the real HTML, CSS and JavaScript with isolated API fixtures. It checks session folder/model filters and the main model picker in Chromium and WebKit, including wheel, scrollbar track/thumb, keyboard selection and dismissal. It does not start the backend or read local user configuration.

With Node.js and Playwright available:

node --test internal/gui/tests/menu-scroll.test.cjs

If Playwright is installed outside the repository, set NODE_PATH to the directory containing its package. The suite uses Playwright's Chromium and WebKit binaries (playwright install chromium webkit). No frontend dependency is needed by the app itself. Tested with Playwright 1.63.0.

Set BROWSER=chromium or BROWSER=webkit for one engine. Set ARTIFACT_DIR to an external directory to retain screenshots and Playwright traces, including failed assertions. These browser checks run separately from make test.