refine Semi UI access filter workflow
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user