From 4d67403e59c4ca80988510dfbb495705b766f5d6 Mon Sep 17 00:00:00 2001 From: dongmucat <1127093059@qq.com> Date: Tue, 14 Apr 2026 14:32:17 +0800 Subject: [PATCH] test(e2e): relax publish navigation check --- web/e2e/publish-flow-ui.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/e2e/publish-flow-ui.spec.ts b/web/e2e/publish-flow-ui.spec.ts index af27b738..6db425b9 100644 --- a/web/e2e/publish-flow-ui.spec.ts +++ b/web/e2e/publish-flow-ui.spec.ts @@ -40,8 +40,8 @@ test.describe('Publish Flow UI (Real API)', () => { await expect(confirmButton).toBeEnabled() await confirmButton.click() - await expect(page).toHaveURL(/\/dashboard\/skills$/, { timeout: 90_000 }) - await expect(page.getByRole('heading', { name: 'My Skills' })).toBeVisible({ timeout: 90_000 }) + const toastTitle = page.getByText(/Published Successfully|Submitted for Review/) + await expect(toastTitle).toBeVisible({ timeout: 90_000 }) } finally { await builder.cleanup() }