refine shared Semi UI command tokens
This commit is contained in:
@@ -71,6 +71,7 @@ test('renders reconciliation queue, loads evidence on demand and records review
|
||||
expect(await screen.findByText('质量问题队列')).toBeInTheDocument();
|
||||
expect(screen.getByRole('heading', { name: '运行与数据质量', level: 5 })).toBeInTheDocument();
|
||||
expect(screen.getByLabelText('运维质量操作')).toHaveClass('v2-workspace-command-bar', 'v2-ops-command-bar');
|
||||
expect(screen.getByRole('button', { name: '刷新全局证据' })).toHaveClass('v2-workspace-mobile-tool-button', 'is-muted');
|
||||
const navigation = screen.getByRole('navigation', { name: '运维质量视图' });
|
||||
expect(navigation).toHaveClass('v2-ops-navigation');
|
||||
expect(within(navigation).getByText('每日自动对账')).toBeInTheDocument();
|
||||
@@ -87,6 +88,8 @@ test('renders reconciliation queue, loads evidence on demand and records review
|
||||
expect(screen.queryByText('活跃问题', { exact: true })).not.toBeInTheDocument();
|
||||
expect(screen.queryByText('近 30 天趋势')).not.toBeInTheDocument();
|
||||
const trendButton = screen.getByRole('button', { name: '30 天趋势' });
|
||||
expect(trendButton).toHaveClass('v2-workspace-mobile-tool-button', 'is-muted');
|
||||
expect(screen.getByRole('button', { name: '刷新结果' })).toHaveClass('v2-workspace-mobile-tool-button', 'is-muted');
|
||||
expect(trendButton).toHaveAttribute('aria-expanded', 'false');
|
||||
fireEvent.click(trendButton);
|
||||
expect(screen.getByText('近 30 天趋势').closest('.semi-card')).toHaveClass('v2-reconcile-trend');
|
||||
@@ -148,6 +151,8 @@ test('renders only the compact mobile reconciliation surface and defers secondar
|
||||
fireEvent.click(mobileIssueAction);
|
||||
expect(await screen.findByRole('dialog', { name: '差异证据与处置' })).toBeInTheDocument();
|
||||
expect(document.querySelector('.v2-reconcile-detail-sidesheet .v2-reconcile-detail.is-sheet')).toBeInTheDocument();
|
||||
expect(document.querySelector('.v2-reconcile-detail-sidesheet')).toHaveClass('semi-sidesheet-bottom');
|
||||
expect(document.querySelector('.v2-reconcile-detail-sidesheet .semi-sidesheet-inner')).toHaveStyle({ height: 'min(84dvh, 740px)' });
|
||||
expect(await screen.findByRole('button', { name: '关闭差异详情' })).toBeInTheDocument();
|
||||
expect(mobileIssueAction).toHaveAttribute('aria-expanded', 'true');
|
||||
fireEvent.click(screen.getByRole('button', { name: '关闭差异详情' }));
|
||||
@@ -161,6 +166,8 @@ test('renders only the compact mobile reconciliation surface and defers secondar
|
||||
expect(screen.queryByText('近 30 天趋势')).not.toBeInTheDocument();
|
||||
fireEvent.click(screen.getByRole('button', { name: '30 天趋势' }));
|
||||
expect(await screen.findByRole('dialog', { name: '30 天差异趋势' })).toBeInTheDocument();
|
||||
expect(document.querySelector('.v2-reconcile-trend-sidesheet')).toHaveClass('semi-sidesheet-bottom');
|
||||
expect(document.querySelector('.v2-reconcile-trend-sidesheet .semi-sidesheet-inner')).toHaveStyle({ height: 'min(62dvh, 560px)' });
|
||||
const trend = screen.getByText('近 30 天趋势').closest('.v2-reconcile-trend');
|
||||
expect(trend).toBeInTheDocument();
|
||||
expect(screen.getByText(/最近运行/)).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user