From cc8b56e26c0a403519b841be906607cf86c8f2ee Mon Sep 17 00:00:00 2001 From: dongmucat <1127093059@qq.com> Date: Tue, 14 Apr 2026 14:17:57 +0800 Subject: [PATCH] test(e2e): avoid load-event wait in publish flow --- web/e2e/publish-flow-ui.spec.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/web/e2e/publish-flow-ui.spec.ts b/web/e2e/publish-flow-ui.spec.ts index 7153edf5..af27b738 100644 --- a/web/e2e/publish-flow-ui.spec.ts +++ b/web/e2e/publish-flow-ui.spec.ts @@ -38,13 +38,10 @@ test.describe('Publish Flow UI (Real API)', () => { await expect(page.getByText(path.basename(packagePath))).toBeVisible() const confirmButton = page.getByRole('button', { name: 'Confirm Publish' }) await expect(confirmButton).toBeEnabled() - await Promise.all([ - page.waitForURL('**/dashboard/skills'), - confirmButton.click(), - ]) + await confirmButton.click() - await expect(page).toHaveURL('/dashboard/skills') - await expect(page.getByRole('heading', { name: 'My Skills' })).toBeVisible() + await expect(page).toHaveURL(/\/dashboard\/skills$/, { timeout: 90_000 }) + await expect(page.getByRole('heading', { name: 'My Skills' })).toBeVisible({ timeout: 90_000 }) } finally { await builder.cleanup() }