You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by as...@apache.org on 2026/09/12 14:09:59 UTC
(maka) branch test/5184-geometry-ablation updated: test(ui): wait for restored model picker focus before keyboard input
This is an automated email from the ASF dual-hosted git repository.
Astro-Han pushed a commit to branch test/5184-geometry-ablation
in repository https://gitbox.apache.org/repos/asf/maka.git
The following commit(s) were added to refs/heads/test/5184-geometry-ablation by this push:
new 15b0e988d1 test(ui): wait for restored model picker focus before keyboard input
15b0e988d1 is described below
commit 15b0e988d1cd0d11d36f0aef5092eb23e3e91fb9
Author: AstroHan <le...@outlook.com>
AuthorDate: Sat Sep 12 22:09:54 2026 +0800
test(ui): wait for restored model picker focus before keyboard input
---
packages/ui/stories/model-picker.stories.tsx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/packages/ui/stories/model-picker.stories.tsx b/packages/ui/stories/model-picker.stories.tsx
index 49b1e967d7..8d14574f3e 100644
--- a/packages/ui/stories/model-picker.stories.tsx
+++ b/packages/ui/stories/model-picker.stories.tsx
@@ -19,7 +19,7 @@
import { useState } from 'react';
import type { Meta, StoryObj } from '@storybook/react-vite';
-import { expect, userEvent, within } from 'storybook/test';
+import { expect, userEvent, waitFor, within } from 'storybook/test';
import type { ProviderType } from '@maka/core/llm-connections';
import type { ThinkingLevel } from '@maka/core/model-thinking';
import type { SessionSummary } from '@maka/core/session';
@@ -234,6 +234,10 @@ export const ExistingConversation: Story = {
await expect(announcement).toBeEmptyDOMElement();
await expect(document.body.querySelector('.maka-model-switch-notice')).not.toBeInTheDocument();
+ // Closing replaces the wheel with a new trigger and restores focus next frame.
+ await waitFor(() => expect(within(canvasElement).getByRole('button', {
+ name: /切换当前任务模型|Switch model for this task/,
+ })).toHaveFocus());
await userEvent.keyboard('{ArrowDown}');
await expect(announcement).toHaveTextContent(warning);
},
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org