Repository navigation
Todo
Labels
enhancementNew feature or request
Description
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
- Maintainers and the team need one check that a milestone is done. The plan's testing page says it outright: each definition-of-done item maps to one Playwright spec, and "the spec is the gate". A spec per pull request checks one feature, not the user's path across several.
- buildiq parity: the seven paths are what a buildiq user does end to end: build an application, model data, list it, open a record, gate by group, package it. Path 7 is the proof of packaging parity.
- Plan: the specs follow the milestones. Paths 1 and 4 in sprint 1, paths 2, 3 and 5 in sprint 3, path 6 in sprint 5, path 7 in sprint 7. Each path depends on the drafts it walks through, for example path 5 on the detail page, sidebar, audit and locks (Detail page type for one row #3435, Sidebar of the detail page with files, relations and activity #3436, Audit trail of row changes with a read endpoint #3439 and Advisory locks on rows #3440).
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]
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
- 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. - 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
- Object: none of its own. The specs create applications, rows and files only as test data.
- Linking does not apply to this issue itself. When Link a row to objects in other apps: mails, Deck cards, files, rows of other tables #3468 lands, path 5 is where a row linked to a file is checked from both ends, as the acceptance criteria of Link a row to objects in other apps: mails, Deck cards, files, rows of other tables #3468 ask; path 3 already covers relations both ways.
Relevant files:
Related issues
Drafted with AI assistance from the project plan; @rjzondervan reviews it. Part of #3419.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity