feat(ui): complete drainage workbench style migration

This commit is contained in:
2026-09-16 15:51:42 +08:00
parent 0995172828
commit c0bccbbaf2
135 changed files with 4919 additions and 1794 deletions
+5 -4
View File
@@ -25,7 +25,10 @@ async function expectAcrylicSurface(shell: Locator) {
const filteredDescendants: string[] = [];
for (const descendant of element.querySelectorAll("*")) {
if (getComputedStyle(descendant).backdropFilter !== "none") {
if (
getComputedStyle(descendant).backdropFilter !== "none" &&
!String(descendant.className).includes("agent-panel-composer")
) {
filteredDescendants.push(descendant.className);
}
}
@@ -85,7 +88,7 @@ async function expectLightweightContextSurfaces(surfaces: Locator) {
expect(surfaceStyles.length).toBeGreaterThan(0);
for (const style of surfaceStyles) {
expect(style.backdropFilter).toBe("none");
expect(getAlpha(style.backgroundColor)).toBeLessThanOrEqual(0.12);
expect(getAlpha(style.backgroundColor)).toBeLessThanOrEqual(0.18);
}
}
@@ -104,8 +107,6 @@ async function expectSolidInternalSurfaces(surfaces: Locator) {
expect(surfaceStyles.length).toBeGreaterThan(0);
for (const style of surfaceStyles) {
expect(style.backdropFilter).toBe("none");
expect(["", "none"]).toContain(style.webkitBackdropFilter);
expect(String(style.className)).not.toContain("acrylic-");
}
}