Skip to content

Add Playwright e2e tests for history panel UI interactions #7

@flyingrobots

Description

@flyingrobots

Context

Several PR #4 bugs (stale history on article switch, restore-while-saving race) are frontend-only and can't be caught by unit or integration tests. The history panel has interactive state (toggle, lazy-fetch, preview, restore confirmation) that benefits from browser-level testing.

Proposal

Add lightweight Playwright e2e tests covering:

  • Expand history panel → versions load
  • Switch articles with panel open → history resets (no stale data)
  • Select version → preview renders
  • Restore flow → confirmation dialog, article reloads
  • Restore blocked during autosave

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions