dc6598d7e4
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>
15 lines
572 B
TypeScript
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, /登录邮箱/);
|
|
});
|