This commit is contained in:
2026-05-10 22:20:54 +08:00
parent d6219f1a0c
commit 192accd796
92 changed files with 7045 additions and 1559 deletions

View File

@@ -207,7 +207,8 @@ test('拼图界面在 mocap open_palm 时显示体感光标', () => {
const cursor = screen.getByTestId('puzzle-mocap-cursor');
expect(cursor).toBeTruthy();
expect(cursor).toHaveStyle({left: '42%', top: '58%'});
expect(cursor.style.left).toBe('42%');
expect(cursor.style.top).toBe('58%');
mocapMock.state = 'grab';
});
@@ -813,6 +814,7 @@ test('基础单块使用圆角裁剪图片', () => {
) as HTMLElement | null;
expect(basePiece?.className).toContain('overflow-hidden');
expect(basePiece?.className).toContain('rounded-[0.85rem]');
expect(basePiece?.querySelector('.puzzle-runtime-piece-overlay')).toBeNull();
});
test('移动端点击拼图片时立即触发一次震动反馈', () => {