You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by ar...@apache.org on 2026/10/09 02:56:46 UTC
(maka) branch main updated: test(desktop): click a mounted rail in the retry-while-filtered story (#6020)
This is an automated email from the ASF dual-hosted git repository.
ARE404 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/maka.git
The following commit(s) were added to refs/heads/main by this push:
new da682aa36c test(desktop): click a mounted rail in the retry-while-filtered story (#6020)
da682aa36c is described below
commit da682aa36cddc0452e4f357cac27b1c93e92f2df
Author: Guangdong Liu <li...@gmail.com>
AuthorDate: Fri Oct 9 10:56:38 2026 +0800
test(desktop): click a mounted rail in the retry-while-filtered story (#6020)
---
apps/desktop/stories/workhub.stories.tsx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/apps/desktop/stories/workhub.stories.tsx b/apps/desktop/stories/workhub.stories.tsx
index 819e624c9d..ba3f55f7cc 100644
--- a/apps/desktop/stories/workhub.stories.tsx
+++ b/apps/desktop/stories/workhub.stories.tsx
@@ -685,7 +685,12 @@ export const RetryWhileWorkFiltered: Story = {
await userEvent.click(editor);
await userEvent.keyboard('FILTERED_RETRY_PROBE{Enter}');
await waitFor(() => expect(canvas.getByRole('alert')).toHaveTextContent('Temporary Host failure'));
- await userEvent.click(canvasElement.querySelector('.workhub-message-rail') as HTMLElement);
+ // The send follows the latest Turn, and the virtualized transcript may still
+ // be unmounting older Turns when the failure lands. Clicking the first rail
+ // could target a node that detaches between hover and press (#5995); the
+ // newest linked Turn's rail stays mounted while following the latest Turn.
+ const rails = canvasElement.querySelectorAll<HTMLElement>('.workhub-message-rail');
+ await userEvent.click(rails[rails.length - 1]!);
await waitFor(() => expect(canvas.getByRole('button', { name: '显示全部对话' })).toBeInTheDocument());
await userEvent.click(canvas.getByRole('button', { name: /^重试$/ }));
await waitFor(() => expect(writes.answer).toHaveBeenCalledTimes(2));
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org