From e56da2e47ede17b037d0ceb8fa59d3178b63ffef Mon Sep 17 00:00:00 2001 From: imccyu <276526105+imccyu@users.noreply.github.com> Date: Fri, 31 Jul 2026 03:19:10 +0800 Subject: [PATCH] test(client): align popup aria anchors with locale rollout --- packages/client/ui-command/tests/popup-view.spec.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/ui-command/tests/popup-view.spec.tsx b/packages/client/ui-command/tests/popup-view.spec.tsx index 4d3ff7ff37..0bbe01b4a9 100644 --- a/packages/client/ui-command/tests/popup-view.spec.tsx +++ b/packages/client/ui-command/tests/popup-view.spec.tsx @@ -167,7 +167,7 @@ describe('PopupSelectView', () => { onSelect, }) await act(async () => { fireEvent.click(screen.getByRole('option', { name: 'Full access' })) }) - expect(screen.queryByLabelText('/theme options')).toBeNull() + expect(screen.queryByLabelText('/theme 选项')).toBeNull() expect(screen.getByRole('dialog', { name: 'Enable Full access?' })).toBeTruthy() const enable = screen.getByRole('button', { name: 'Enable Full access' }) as HTMLButtonElement expect(enable.disabled).toBe(true) @@ -186,7 +186,7 @@ describe('PopupSelectView', () => { await act(async () => { fireEvent.click(screen.getByRole('option', { name: 'Full access' })) }) fireEvent.click(screen.getByRole('checkbox')) fireEvent.click(screen.getByRole('button', { name: 'Cancel' })) - expect(screen.getByLabelText('/theme options')).toBeTruthy() + expect(screen.getByLabelText('/theme 选项')).toBeTruthy() await act(async () => { fireEvent.click(screen.getByRole('option', { name: 'Full access' })) }) expect(screen.getByRole('checkbox').checked).toBe(false) })