Skip to content

[Enhancement] Static Playbook Diagram Generator & Dynamic Log Traversal Visualizer #52

Description

@rickcedwhat-ai

Problem Description

It is difficult for non-technical team members (like Product Managers) to verify exactly which UI paths are covered by tests, or to debug which flow sequence was actually traversed during a test run without scrolling through logs.

Proposed Solution

Create a CLI tool with two components:

  1. Static Flowchart Generator (playwright-sugar-diagram gen):
    Parses playbook files and exports a static Mermaid flowchart representing all defined UI paths, outcomes, and transitions, embedding collapsible HTML code blocks containing the selectors.
  2. Dynamic Traversal Overlay (playwright-sugar-diagram visualize --log=run.jsonl):
    Parses playwright execution logs and generates an overlay diagram. It highlights the exact execution path taken by a specific test run (e.g. coloring the Editor path green, Read-Only yellow, and No-Access red).

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedBlocked by another issueplaybook-frameworkBelongs to the future RBAC/playbook library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions