test(e2e): repoint master-detail live specs at invoice+lines and form-mode tasks#1562
Merged
Conversation
…-mode tasks
The showcase dropped inline Tasks from New Project and added a real
Invoice + Invoice Line demo (framework). Repoint the live e2e accordingly:
- form-view-subforms: New Invoice renders the relationship-derived "Line
Items" grid (inlineEdit:'grid') and submits an atomic batch with the
invoice_line child referencing the invoice via {$ref:0}.
- row-expand: a grid row on the invoice expands into the child's full inline
form (parent FK excluded) and writes values back into the grid row.
- master-detail (New Project + Tasks workspace page): showcase_task is now a
rich child, so its smart default resolves to the per-row `form` factor —
drive "Add task" → full form → Apply, then assert the atomic batch carries
the task child with project {$ref:0}.
All 10 live specs green against the running backend.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The showcase reworked its master-detail demos (framework PR objectstack-ai/framework#1637): New Project no longer force-renders an inline Tasks subtable, and a real Invoice + Invoice Line ("header + line items") demo was added where inline entry belongs. This repoints the live e2e to match.
What
form-view-subforms.spec.ts→showcase_invoice. New Invoice renders the relationship-derived "Line Items" grid (invoice_line.invoicedeclaresinlineEdit: 'grid') and submits an atomic/api/v1/batchwith theshowcase_invoice_linechild referencing the invoice via{$ref:0}.row-expand.spec.ts→showcase_invoice. A grid row expands into the child's full inline form (parentInvoiceFK excluded); Apply writes the values back into the grid row.master-detail.spec.ts(New Project + Tasks workspace page) →showcase_taskis a rich child, so withinlineEditremoved the smart default resolves to the per-rowformfactor. The test drives "Add task" → full inline form → Apply, then asserts the atomic batch carries the task child withproject: {$ref:0}— adding live coverage for the form-mode add path.Verification
All 10 live specs pass against the running backend (:3000) + console (:5180):
10 passed.🤖 Generated with Claude Code