refine shared Semi UI command tokens
This commit is contained in:
@@ -171,8 +171,10 @@ test('renders mobile access vehicles as selectable Semi cards', async () => {
|
||||
expect(within(action).getByText('宇通')).toBeInTheDocument();
|
||||
expect(screen.queryByLabelText('每页车辆数')).not.toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: '打开接入治理' })).toHaveTextContent('治理');
|
||||
expect(screen.getByRole('button', { name: '打开接入治理' })).toHaveClass('v2-workspace-mobile-tool-button', 'is-muted');
|
||||
const toolsButton = screen.getByRole('button', { name: '打开接入管理工具' });
|
||||
expect(toolsButton).toHaveTextContent('工具');
|
||||
expect(toolsButton).toHaveClass('v2-workspace-mobile-tool-button', 'is-muted');
|
||||
expect(screen.queryByRole('menuitem', { name: /导出当前页/ })).not.toBeInTheDocument();
|
||||
fireEvent.click(toolsButton);
|
||||
await waitFor(() => expect(toolsButton).toHaveAttribute('aria-expanded', 'true'));
|
||||
|
||||
Reference in New Issue
Block a user