fix(release): 发布回归 - 修复资源引用保护并校准验证合同
This commit is contained in:
1 parent
04f49768cd
commit
037b288668
19 files changed
+363
-105
No files matched your search
@@ -88,14 +88,16 @@ test("menu surfaces are explicitly scoped and old account inner overrides are re
|
||||
expect(css).toContain("box-shadow: none !important");
|
||||
expect(css).not.toContain(".ant-modal");
|
||||
expect(globals).not.toContain(".workspace-account-popover .ant-popover-inner");
|
||||
expect(globals).toContain(".ant-select:not(.ant-select-open):has(input:focus-visible)");
|
||||
expect(globals).toContain(".ant-select-dropdown, .ant-dropdown-menu) {\n border: 0 !important;");
|
||||
expect(globals).toContain('.app-unified-select[data-input-modality="keyboard"]:not(.ant-select-open)');
|
||||
expect(globals).toMatch(/:where\(\.ant-select-dropdown, \.ant-dropdown-menu,[^)]*\)\s*\{\s*border: 0 !important;/);
|
||||
expect(globals).toContain("body.app-spatial-overlays :where(.ant-dropdown-menu, .ant-select-dropdown, .ant-cascader-menus, .ant-mentions-dropdown) {\n border: 0 !important;");
|
||||
});
|
||||
|
||||
test("shared single-select popup uses a borderless surface instead of a bright focus frame", () => {
|
||||
const select = readFileSync(new URL("../src/components/ui/base/select/select.tsx", import.meta.url), "utf8");
|
||||
expect(select).toContain("rounded-[var(--r-lg)] border-0 bg-surface-strong");
|
||||
expect(select).toContain("focus-visible:ring-1 focus-visible:ring-[var(--control-selected-border)]");
|
||||
expect(select).not.toContain('setPopoverWidth(width + 2)');
|
||||
expect(select).toContain("<AntSelect");
|
||||
expect(select).toContain('variant={variant ?? "filled"}');
|
||||
expect(select).toContain("data-input-modality={inputModality}");
|
||||
expect(select).toContain('setInputModality("keyboard")');
|
||||
expect(select).not.toContain("setPopoverWidth(width + 2)");
|
||||
});
|
||||
Reference in new issue
Block a user