refine shared Semi UI command tokens
This commit is contained in:
@@ -216,7 +216,9 @@ test('renders only selectable Semi history cards on mobile', async () => {
|
||||
expect(view.container.querySelector('.v2-history-side')).not.toBeInTheDocument();
|
||||
expect(mocks.historyExports).not.toHaveBeenCalled();
|
||||
expect(screen.getByRole('button', { name: '展开趋势' })).toHaveTextContent('趋势');
|
||||
expect(screen.getByRole('button', { name: '展开趋势' })).toHaveClass('v2-workspace-mobile-tool-button', 'is-muted');
|
||||
expect(screen.getByRole('button', { name: '打开历史数据工具' })).toHaveTextContent('工具');
|
||||
expect(screen.getByRole('button', { name: '打开历史数据工具' })).toHaveClass('v2-workspace-mobile-tool-button', 'is-muted');
|
||||
expect(screen.queryByText('坐标、速度、里程及设备/服务时间通过基础校验')).not.toBeInTheDocument();
|
||||
fireEvent.click(action);
|
||||
expect(action).toHaveAttribute('aria-pressed', 'true');
|
||||
|
||||
Reference in New Issue
Block a user