fix: keep mobile filter resets intentional

This commit is contained in:
lingniu
2026-07-19 04:57:31 +08:00
parent 9a87d14d6d
commit 2bae87f6a2
11 changed files with 23 additions and 13 deletions

View File

@@ -219,6 +219,8 @@ test('uses one focused Semi bottom SideSheet for the complete mobile history que
expect(within(dialog).getByLabelText('结束时间')).toBeInTheDocument();
expect(within(dialog).getByRole('combobox', { name: '数据类型' })).toBeInTheDocument();
expect(within(dialog).getByRole('combobox', { name: '数据来源' })).toBeInTheDocument();
fireEvent.click(within(dialog).getByRole('button', { name: '重置条件' }));
expect(screen.getByRole('dialog', { name: '历史查询范围' })).toBeInTheDocument();
fireEvent.change(within(dialog).getByPlaceholderText('车牌 / VIN多台用逗号分隔'), { target: { value: 'MOBILEVIN' } });
fireEvent.click(within(dialog).getByRole('button', { name: '应用并查询' }));