Skip to content

Migrate e2e tests to Playwright#947

Merged
srzeszut merged 27 commits into
mainfrom
rewrite-e2e-to-playwright
Mar 30, 2026
Merged

Migrate e2e tests to Playwright#947
srzeszut merged 27 commits into
mainfrom
rewrite-e2e-to-playwright

Conversation

@srzeszut
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates/extends the repo’s end-to-end coverage to Playwright by adding new Playwright specs for multiple LiveDebugger features and centralizing shared “dev app ↔ debugger” test helpers.

Changes:

  • Added new Playwright e2e specs covering streams, send-event, resources, element inspection, async jobs, and dead view/dead sessions scenarios.
  • Expanded dev-dbg-test.ts with additional shared selectors/helpers used across the migrated tests.
  • Refactored existing global traces / associated live views tests to use the shared helper selectors.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
e2e/tests/streams.spec.ts Adds Playwright coverage for Streams UI and collapsible persistence (plus a standalone pre-render stream test).
e2e/tests/send-event.spec.ts Adds Playwright coverage for sending events to LiveView/LiveComponent via the Send Event dialog.
e2e/tests/resources.spec.ts Adds Playwright coverage for Resources tab process info + refresh rate selection.
e2e/tests/global_traces.spec.ts Refactors selectors to shared helpers for Global Traces navigation/basic info checks.
e2e/tests/elements-inspection.spec.ts Adds Playwright coverage for inspect mode behavior across dev app and debugger windows.
e2e/tests/dev-dbg-test.ts Adds new helper exports (PID retrieval, sidebar/module info, component tree node, navbar items, collapsible localStorage setter).
e2e/tests/dead_view_mode.spec.ts Adds Playwright coverage for “dead view mode” navigation + trace visibility after disconnect/crash.
e2e/tests/dead_live_views.spec.ts Adds Playwright coverage for browsing/attaching to dead LiveView sessions.
e2e/tests/async-jobs.spec.ts Adds Playwright coverage for Async Jobs section behavior in LiveView and LiveComponent.
e2e/tests/associated-live-views.spec.ts Refactors to reuse shared helper for current node module info selector.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread e2e/tests/dev-dbg-test.ts Outdated
Comment thread e2e/tests/streams.spec.ts
Comment thread e2e/tests/streams.spec.ts Outdated
Comment thread e2e/tests/dead_live_views.spec.ts Outdated
Comment thread e2e/tests/async-jobs.spec.ts
@srzeszut srzeszut marked this pull request as ready for review March 20, 2026 12:22
@srzeszut srzeszut requested review from hhubert6 and kraleppa March 20, 2026 12:22
Comment thread mix.exs Outdated
Comment thread mix.exs Outdated
@kraleppa kraleppa linked an issue Mar 23, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@hhubert6 hhubert6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those files should rather use kebab-case dead_live_views.spec.ts, dead_view_mode.spec.ts, global_traces.spec.ts.

Comment thread e2e/tests/elements-inspection.spec.ts
@srzeszut srzeszut merged commit 7d4b155 into main Mar 30, 2026
4 checks passed
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.

Improve stability of e2e tests

4 participants