Skip to content

Acceptance paths for applications in Playwright #3423

Todo

Description

@rubenvdlinde

Is your feature request related to a problem? Please describe.

  • Every pull request of this work carries its own spec, but nothing checks the paths a user takes across several features. These specs are the gate for calling a milestone done.
Why this is needed

Describe the solution you'd like

  • One Playwright spec per acceptance path of the application builder, run against a clean instance, each seeding its own data. The paths are listed in testing and acceptance.
Diagram
flowchart LR
    CI["CI: Playwright on a clean instance"] --> S[each spec seeds its own data]
    S --> P1["Path 1 (M1): application, menu, first page"]
    S --> P4["Path 4 (M1): server-side list, counts and sums"]
    S --> P2["Path 2 (M2): pages with every widget type"]
    S --> P3["Path 3 (M2): data model, JSON Schema round trip"]
    S --> P5["Path 5 (M2): detail page, files, audit, relations, lock"]
    S --> P6["Path 6 (M3): gated by group"]
    S --> P7["Path 7 (M5): export, generate, install, open"]
    P1 & P4 & P2 & P3 & P5 & P6 & P7 --> G[milestone done]
Loading
Acceptance Criteria

One checkbox per path, each can land in its own pull request.

  • Path 1: create an application, open it at its address, see its menu as the navigation, the first page opens.
  • Path 2: add pages, design a page with every widget type, configure each widget.
  • Path 3: build a data model with relations both ways, a file, uuids and a validated format; export it as JSON Schema and import it.
  • Path 4: a list filters, sorts, searches and pages on the server; a page shows counts and sums.
  • Path 5: a detail page shows files, audit trail, relations and lock state; two users see the lock.
  • Path 6: a menu entry, page and widget gated by group disappear for a user outside the group.
  • Path 7: export an application, generate the app, install it on a clean instance, open it.
  • Each spec runs in the existing Playwright setup in CI.
  • Every path that writes also runs the writes as a reader of the application and expects 403, as learned in the review of feat(contexts): give applications a menu with its own API #3135.
  • Paths 1, 2 and 5 also run at 360 px wide: nothing cut off and no horizontal scroll of the page.
Out of scope
  • The specs that each feature PR carries for itself.
  • The manual scripts next to each path in the testing plan.
  • Timing: Benchmark the rows API on a table of 100k rows #3424.
  • Slicing: one PR per path, in landing order 1, 4, 2, 3, 5, 6, 7, each when the features it walks through are merged.

Describe alternatives you've considered

Questions for maintainers

  1. Where do the specs run? Options: (a) in the existing playwright/ folder and the existing Playwright workflow, (b) in a separate workflow for the long paths. We would go with (a): one setup to keep working, and the paths fail where the feature specs fail.
  2. One clean instance per spec, or per run? Options: (a) per spec, (b) per run, each spec seeding and removing its own data. We would go with (b): seven fresh instances make the run too slow for every PR.

Additional context

Linking to other objects
Relevant files:
Related issues

Drafted with AI assistance from the project plan; @rjzondervan reviews it. Part of #3419.

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

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions