refine Semi UI access filter workflow

This commit is contained in:
lingniu
2026-07-18 06:13:18 +08:00
parent 6bb2107f5e
commit 24d3c1dcac
3 changed files with 45 additions and 4 deletions

View File

@@ -55,6 +55,10 @@ test('removes old access rows immediately when the vehicle filter scope changes'
for (const className of ['v2-access-filter-card-v3', 'v2-access-kpis-card-v3', 'v2-access-table-v3']) {
expect(view.container.querySelector(`.${className}.semi-card`)).toBeInTheDocument();
}
const filterActions = view.container.querySelector<HTMLElement>('.v2-access-filter-actions');
expect(filterActions).toBeInTheDocument();
expect(within(filterActions!).getByRole('button', { name: '查询' })).toBeInTheDocument();
expect(within(filterActions!).getByRole('button', { name: '重置' })).toBeInTheDocument();
expect(view.container.querySelector('.v2-access-semi-table.semi-table-wrapper')).toBeInTheDocument();
expect(view.container.querySelector('.v2-access-table-scroll-v3 > table')).not.toBeInTheDocument();
const desktopRow = screen.getByTestId('access-row-OLDVIN');