fix Semi UI account editor viewport
This commit is contained in:
@@ -60,7 +60,9 @@ test('deduplicates vehicle candidates by VIN and renders granted vehicles plate
|
||||
expect(document.querySelector('.v2-user-editor-sidesheet')).not.toBeInTheDocument();
|
||||
fireEvent.click(customer);
|
||||
await waitFor(() => expect(customer).toHaveAttribute('aria-expanded', 'true'));
|
||||
expect(document.querySelector('.v2-user-editor-sidesheet .semi-sidesheet-inner')).toHaveAttribute('aria-label', '客户账号详情');
|
||||
const editorSheet = document.querySelector<HTMLElement>('.v2-user-editor-sidesheet .semi-sidesheet-inner');
|
||||
expect(editorSheet).toHaveAttribute('aria-label', '客户账号详情');
|
||||
expect(editorSheet).toHaveStyle({ width: 'min(840px, 100vw)' });
|
||||
expect(document.querySelector('.v2-user-editor-sidesheet .v2-user-editor-tabs.semi-tabs')).toBeInTheDocument();
|
||||
expect(document.querySelector('.v2-user-editor-form')).toHaveAttribute('id', 'v2-user-editor-form');
|
||||
expect(screen.getAllByRole('tab')).toHaveLength(3);
|
||||
|
||||
Reference in New Issue
Block a user