feat: comprehensive Playwright E2E tests for dashboard UX#9
Merged
Conversation
f2603eb to
3748a15
Compare
Add 22 browser-level tests covering the full dashboard UI: - Page load: 200 response, title, sidebar visibility, no JS errors - Sidebar: toggle collapse/expand, no agents initially, agent appears after API registration - Mesh overview: panel loads, agent counts visible after registration - New session dialog: opens on click, has form fields (name, dir), closes on Escape, closes on Cancel - Health deps page: loads, shows dependency list (uv, hm, claude), shows install links for missing deps - Messaging UI: send form present when agents exist - Agent detail: clicking agent shows detail view - Static assets: CSS loads, no 404s on page load - Health API: JSON endpoint returns ok Infrastructure: - pytest-playwright + chromium headless - Session-scoped server fixture (uvicorn on random port, temp DB) - Separate e2e_tests/ directory (doesn't affect unit test coverage) - just test-e2e / just test-e2e-headed recipes
3748a15 to
989a6a5
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9 +/- ##
=======================================
Coverage 96.03% 96.03%
=======================================
Files 15 15
Lines 1035 1035
=======================================
Hits 994 994
Misses 41 41 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
22 browser-level Playwright tests covering the full dashboard UI, running against a real drasill server with a temp database.
Infrastructure
pytest-playwright+ headless Chromiume2e_tests/directoryjust test-e2e/just test-e2e-headedrecipesTest plan