Skip to content

[Feature] Debugging devtools panels #1426

@marvinhagemeister

Description

@marvinhagemeister

I'm currently evaluating various ways to write end-to-end tests for Preact-Devtools which is a browser extension to debug Preact apps. It works by establishing a connection with the active tab and passing messages back and forth. Things like the component tree that was rendered by Preact and some framework specific settings, etc.

To be able to test it I'd need to find a way to get a hold of the devtools frame in the same page. I've seen some examples of opening up the extension as a separate tab, but that would mean that I'd have to jump between two tabs to test the extension. Is there a better way to do that?

Screenshot of the extension in use:

Screenshot from 2020-03-19 08-16-13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions