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

@@ -212,6 +212,8 @@ test('renders mobile access vehicles as selectable Semi cards', async () => {
expect(within(filterDialog).getByRole('combobox', { name: '接入状态' })).toBeInTheDocument();
expect(within(filterDialog).getByRole('combobox', { name: '真实协议' })).toBeInTheDocument();
expect(within(filterDialog).getByRole('combobox', { name: '车辆品牌' })).toBeInTheDocument();
fireEvent.click(within(filterDialog).getByRole('button', { name: '重置条件' }));
expect(screen.getByRole('dialog', { name: '接入车辆筛选' })).toBeInTheDocument();
fireEvent.click(within(filterDialog).getByRole('combobox', { name: '接入状态' }));
const attentionOption = (await screen.findAllByText('需关注')).find((element) => element.classList.contains('semi-select-option-text'));
expect(attentionOption).toBeInTheDocument();