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/08/25 13:27:38 UTC

(maka) branch main updated: test(desktop): stabilize WorkHub correction E2E (#3763)

This is an automated email from the ASF dual-hosted git repository.

Astro-Han 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 475d54618 test(desktop): stabilize WorkHub correction E2E (#3763)
475d54618 is described below

commit 475d54618ce16dc47019f40d5707c913b1d675c6
Author: Shizuina <ek...@163.com>
AuthorDate: Tue Aug 25 21:27:33 2026 +0800

    test(desktop): stabilize WorkHub correction E2E (#3763)
    
    Generated-by: OpenAI Codex
    
    Co-authored-by: sunrioa <17...@users.noreply.github.com>
---
 apps/desktop/e2e/workhub-reconstruction.spec.ts | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/apps/desktop/e2e/workhub-reconstruction.spec.ts b/apps/desktop/e2e/workhub-reconstruction.spec.ts
index e853d7f73..e7a139611 100644
--- a/apps/desktop/e2e/workhub-reconstruction.spec.ts
+++ b/apps/desktop/e2e/workhub-reconstruction.spec.ts
@@ -68,12 +68,18 @@ test('WorkHub rebuilds Session conversation after navigating away and back', asy
 test('WorkHub handles a first natural-language correction', async ({
   window: page,
 }) => {
+  const sourceSessionName = '检查支付回调重复投递时的幂等性';
   const composer = page.locator(COMPOSER_INPUT);
-  await composer.fill('检查支付回调重复投递时的幂等性');
+  await composer.fill(sourceSessionName);
   await composer.press('Enter');
   await expect(page.getByRole('button', { name: '重新生成' })).toHaveCount(1, {
     timeout: 20_000,
   });
+  await page.evaluate(async (name) => {
+    const sourceSession = (await window.maka.sessions.list())[0];
+    if (!sourceSession) throw new Error('Source Session was not found');
+    await window.maka.sessions.rename(sourceSession.id, name);
+  }, sourceSessionName);
   await page.evaluate(async () => {
     await window.maka.settings.updateClient({ workHub: { enabled: true } });
   });
@@ -93,7 +99,7 @@ test('WorkHub handles a first natural-language correction', async ({
   });
   await expect(
     continuedTurn.locator('.workhub-submitted-session strong'),
-  ).toHaveText('检查支付回调重复投递时的幂等性');
+  ).toHaveText(sourceSessionName);
 
   await workHubComposer.fill('不是这个,换成登录稳定性,补充刷新令牌失败判定。');
   await expect(


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org