diff --git a/tests/e2e/agent-skills-page.spec.ts b/tests/e2e/agent-skills-page.spec.ts index 50b8006d93..7538940e3b 100644 --- a/tests/e2e/agent-skills-page.spec.ts +++ b/tests/e2e/agent-skills-page.spec.ts @@ -190,10 +190,11 @@ test.describe("Agent Skills page", () => { test("/dashboard/skills redirects to /dashboard/omni-skills", async ({ page }) => { await page.goto("/dashboard/skills", { waitUntil: "commit", timeout: NAVIGATION_TIMEOUT_MS }); - await page.waitForURL(/\/dashboard\/(omni-skills|login|onboarding)/, { + // Next.js redirects /dashboard/skills → /dashboard/omni-skills (next.config.mjs). + // If auth is required the app then client-redirects to /login (bare path, no /dashboard/ prefix). + await page.waitForURL(/\/(login|onboarding|dashboard\/(omni-skills|onboarding))/, { timeout: 15_000, }); - // After auth, check that the final destination is omni-skills const finalUrl = page.url(); expect( finalUrl.includes("/dashboard/omni-skills") || diff --git a/tests/e2e/group-b-activity-feed.spec.ts b/tests/e2e/group-b-activity-feed.spec.ts index b795657166..8af335b1eb 100644 --- a/tests/e2e/group-b-activity-feed.spec.ts +++ b/tests/e2e/group-b-activity-feed.spec.ts @@ -64,11 +64,17 @@ test.describe("Group B — Activity Feed", () => { .first(); await expect(heading).toBeVisible({ timeout: 15000 }); - // Timeline container or empty state should be present - const timeline = page.locator( - "[data-testid='activity-feed'], [data-testid='activity-empty-state'], .activity-feed, ul[role='list']" + // ActivityFeed renders
(empty state) or a + //
with a nested