Skip to content

Add a real Chrome trace with snapshot tests #28

Backlog

Description

@nucliweb

Child of #9.

All test fixtures are synthetic. Dependabot updates @paulirish/trace_engine every day, so CI can pass when the engine output changes in a way the synthetic fixtures do not cover.

Proposal

  • Add a small real trace recorded in Chrome, with a page load and an interaction, as .json.gz. It must not contain private URLs or data.
  • Add snapshot tests with the node:test snapshot support (t.assert.snapshot) for overview, insights, tasks, network, shifts, interactions and report.
  • When a Dependabot update changes the output, the snapshot diff shows the change, and the PR updates the snapshots on purpose.

Open questions

  • What is the size limit for a fixture in the repo? A load of a small test page should be under 1 MB compressed.
  • Which page do we record? A static page in the repo would let anyone record the trace again.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions