test(e2e): comprehensive e2e coverage for all UI features#17
Merged
Conversation
Add 27 new e2e tests across 17 test files, bringing e2e coverage from 8 tests to 35 tests. This ensures CI catches regressions in all major user-facing features. New test coverage areas: - OIDC flow annotation (discovery/token/userinfo phase badges) - Event persistence and rehydration (IndexedDB round-trip) - CORS flag detection and inspector CORS tab - Error event rendering (4xx/5xx warning styling) - Content script bridge relay protocol - Multiple flow isolation - Export JSON/Markdown to clipboard - Import/export round-trip with import banner - Event selection → inspector headers/OIDC/CORS tabs - Inspector tab switching - Flow health panel (diagnosis issues, collapse/expand, issue→event nav) - Per-event diagnosis tab - Recording toggle (record/pause state) - View mode switching (Timeline/Flow/Learn) - Snapshot save/load/delete lifecycle - Connection status indicators (OIDC detected, SDK connected) - Flow view rail rendering and playback controls - Event count badge and flow chip - Decode error resilience (malformed SDK events) Also adds shared inject-events.ts helper to DRY up event injection. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
af64644 to
510aab0
Compare
Content script injection timing in Playwright persistent contexts is non-deterministic on cold starts. The bridge protocol is already unit-tested in content-script.test.ts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
inject-events.tshelper to DRY up event injection patternsWhat's covered
Key implementation details
PANEL_EVENTbroadcasts, notGET_STATErehydration.tag-oidc,.tag-corsbadges → ancestor.tl-row) instead of positionalnth()to avoid flakiness from shared browser context stateTest plan
xvfb-run pnpm exec playwright test --project=chrome)pnpm test)🤖 Generated with Claude Code