修复灵感图测试数量耦合
Project CI / Repository checks (push) Successful in 4m3s
Project CI / Frontend tests (push) Successful in 4m13s
Project CI / Backend tests (push) Successful in 5m8s
Project CI / Native shell tests (push) Successful in 13m48s

改为校验内置灵感图片非空,避免测试绑定具体资源数量。
This commit is contained in:
2026-08-26 20:30:14 +08:00
parent 1ba0eaf59c
commit d41aaddd0e
@@ -36,7 +36,7 @@ export function registerClientHomeTests() {
const inspirationImages = within(inspiration).getAllByRole('button', {
name: /查看灵感图片/,
});
expect(inspirationImages).toHaveLength(23);
expect(inspirationImages.length).toBeGreaterThan(0);
expect(inspiration.closest('.overflow-y-auto')).not.toBeNull();
expect(screen.queryByText('暂无灵感')).toBeNull();