diff --git a/frontend/tests/e2e/theme-colors.spec.ts b/frontend/tests/e2e/theme-colors.spec.ts index e5bd0b62..20624c9a 100644 --- a/frontend/tests/e2e/theme-colors.spec.ts +++ b/frontend/tests/e2e/theme-colors.spec.ts @@ -14,19 +14,6 @@ function isTransparent(color: string) { return normalized === "transparent" || normalized.endsWith(",0)"); } -function parseRgb(color: string) { - const colorRegex = - /rgba?\(\s*([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)(?:\s*,\s*([0-9.]+))?\s*\)/i; - const match = colorRegex.exec(color); - if (!match) return null; - return { - r: Number(match[1]), - g: Number(match[2]), - b: Number(match[3]), - a: match[4] == null ? 1 : Number(match[4]), - }; -} - test.describe("聊天工作台 / 主题颜色回归", () => { test("DF-THEME-001 thread 页面在 light/dark 根容器颜色不同且非透明", async ({ page,