Files
Jyotisha/frontend/tests/profile-panel.test.ts
T
Jesse_Chen dc6598d7e4 fix(web): keep the settings dialog one size and move billing into it (BUG-554)
The four account panes now share a fixed frame, chart profiles open as list then detail, and membership lives in the homepage dialog instead of a separate page.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 18:29:51 +08:00

15 lines
572 B
TypeScript

import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
const panel = readFileSync(new URL("../src/components/profile-panel.tsx", import.meta.url), "utf8");
test("the profile pane keeps avatar palettes and drops the duplicate chart-library button", () => {
assert.doesNotMatch(panel, /管理星盘资料/);
assert.match(panel, /role="radiogroup"/);
assert.match(panel, /换一个形象/);
assert.match(panel, /size=\{48\}/);
assert.match(panel, /账户信息/);
assert.match(panel, /登录邮箱/);
});