Skip to content

Tests: Adjust shadow dom for e2e tests#967

Merged
kraleppa merged 2 commits into
mainfrom
adjust-shadow-dom-for-e2e-tests
Apr 3, 2026
Merged

Tests: Adjust shadow dom for e2e tests#967
kraleppa merged 2 commits into
mainfrom
adjust-shadow-dom-for-e2e-tests

Conversation

@kraleppa
Copy link
Copy Markdown
Member

@kraleppa kraleppa commented Apr 3, 2026

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 adjusts the shadow DOM mode for e2e (end-to-end) tests by introducing an optional configuration flag that allows developers to run tests with an "open" shadow DOM instead of the default "closed" mode. This change enables e2e test frameworks to access elements within the shadow DOM that would otherwise be inaccessible.

Changes:

  • Added e2e? configuration option that defaults to false
  • When enabled, the shadow root is created with mode: 'open' instead of mode: 'closed'
  • Updated the meta tag generation to include an e2e="true" attribute when the flag is enabled

Reviewed changes

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

Show a summary per file
File Description
assets/client/client.js Reads the e2e attribute from meta tag and uses it to determine shadow root mode (open vs closed)
lib/live_debugger/client/config_component.ex Added e2e? boolean attribute and conditional meta tag generation to include e2e="true" when enabled
lib/live_debugger.ex Added e2e? configuration retrieval from application config with default value of false
priv/static/client.js Compiled/minified version of the client code with the same logic
priv/static/client.js.map Updated source map for the compiled JavaScript

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

@kraleppa kraleppa merged commit 70cea3f into main Apr 3, 2026
8 checks passed
@kraleppa kraleppa deleted the adjust-shadow-dom-for-e2e-tests branch April 3, 2026 14: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.

3 participants