Skip to content

fix: resolve all Playwright E2E test failures#444

Merged
itskai-dev merged 1 commit intomainfrom
fix-playwright-e2e-tests
Feb 10, 2026
Merged

fix: resolve all Playwright E2E test failures#444
itskai-dev merged 1 commit intomainfrom
fix-playwright-e2e-tests

Conversation

@itskai-dev
Copy link
Copy Markdown
Collaborator

Summary

Fixes all 7 failing E2E tests from #443. All 27 tests now pass.

Root causes & fixes:

  1. Strict mode violations — Several locators using .or() resolved to multiple elements. Fixed by using more specific selectors (exact heading matches, .first() where appropriate).

  2. Custom Tabs component — The app uses a custom Tabs component (not Radix) that renders <button> elements without role="tab". Changed getByRole('tab')getByRole('button') for MCP install tabs and search filter tabs.

  3. Search reliability — Changed search tests to use URL query params (/search?q=memory) instead of typing + debounce, which is more reliable in CI.

Test results

27 passed (9.2s)

…b selectors

- Fix agent-profile: use heading level 1 directly (avoid .or() strict mode)
- Fix navigation: use getByRole('heading') for sign-in (avoid .or() ambiguity)
- Fix skill-detail: use exact heading match for Reviews, use main locator
- Fix mcp-detail: use getByRole('button') instead of getByRole('tab') for custom Tabs component
- Fix search: use URL query params for reliable search, button role for filter tabs
- All 27 tests now pass
@supabase
Copy link
Copy Markdown

supabase Bot commented Feb 10, 2026

This pull request has been ignored for the connected project oldbapagtyvkplbqllwa because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-hub Ready Ready Preview, Comment Feb 10, 2026 4:00pm

Request Review

@itskai-dev itskai-dev merged commit 88f53ac into main Feb 10, 2026
4 checks passed
@itskai-dev itskai-dev deleted the fix-playwright-e2e-tests branch February 10, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant