style: apply workbench visual system

This commit is contained in:
2026-07-19 19:28:48 +08:00
parent 1a82a8b53d
commit 092930e176
2 changed files with 158 additions and 123 deletions

View File

@@ -24,6 +24,14 @@ describe('ProjectWorkbench', () => {
expect(screen.getByText('Ops Dashboard')).toBeInTheDocument();
});
it('marks active channel with aria-pressed', async () => {
render(ProjectWorkbench, { props: { currentUser: { account: 'david@example.com' } } });
await fireEvent.click(screen.getByRole('button', { name: 'Work Plan 8' }));
expect(screen.getByRole('button', { name: 'Work Plan 8' })).toHaveAttribute('aria-pressed', 'true');
});
it('shows inspected task details in the inspector', async () => {
render(ProjectWorkbench, { props: { currentUser: { account: 'david@example.com' } } });
const inspector = screen.getByLabelText('Object inspector');