chore: bump antd-img-crop from 4.27.0 to 4.28.0 in the dev-dependencies group (#56878)

* bump antd-img-crop

* refactor accessibilityDemoTest

* fix

---------

Co-authored-by: thinkasany <480968828@qq.com>
This commit is contained in:
dependabot[bot]
2026-02-06 23:36:54 +08:00
committed by GitHub
parent 1b36dafadc
commit 827be4cceb
2 changed files with 5 additions and 3 deletions

View File

@@ -223,7 +223,7 @@
"adm-zip": "^0.5.16",
"ajv": "^8.17.1",
"ali-oss": "^6.23.0",
"antd-img-crop": "~4.27.0",
"antd-img-crop": "~4.28.0",
"antd-style": "^4.1.0",
"antd-token-previewer": "^3.0.0",
"axios": "^1.13.2",

View File

@@ -144,8 +144,10 @@ export default function accessibilityDemoTest(component: string, options: Option
const testMethod = shouldSkip ? describe.skip : describe;
testMethod(`Test ${file} accessibility`, () => {
const Demo: React.ComponentType<any> = require(`../../${file}`).default;
accessibilityTest(Demo, options.disabledRules);
if (!shouldSkip) {
const Demo: React.ComponentType<any> = require(`../../${file}`).default;
accessibilityTest(Demo, options.disabledRules);
}
});
});
});