Skip to content

[Request]: Browser test in CI for the CRUD screen #332

Closed

Description

@jimhoyd

Follow-up to #262 (#328).

The CRUD screen's client script (edit text and focus surviving re-render, checkbox rollback on a failed update) was checked by hand in a browser and in CI only against a small fake DOM. Add a real-browser test to CI if it can be done at reasonable cost, or document why not. Windows and other browsers are unverified.

Activity

  1. added
    enhancement
    extension
    in-progress
    on Sep 20, 2026
  2. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Progress: an agent has started on this; a PR will be linked here when it opens.

  3. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Progress: PR #334 opened: a real-browser test (Chrome over the DevTools protocol, no new dependency) for the CRUD screen, run as one step on the Linux Node 24 workspaces leg.

  4. removed
    in-progress
    on Sep 20, 2026
  5. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Shipped in #334: a real-browser test (Chrome over the DevTools protocol, Node's built-in WebSocket, no new dependency or action) runs as one step on the Linux Node 24 workspaces leg, about 23 s in CI, and fails the job if no browser is found (URLCODE_REQUIRE_BROWSER=1). It covers hostile markup rendering as text with no CSP violation (with a control inline script proving enforcement), edit text/focus/caret surviving a refresh, and a failed PATCH rolling the checkbox back. Removing the rollback line from the script makes it fail. Not covered: Windows, macOS, Firefox; add them only if a browser-specific bug appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions