Skip to content

test(e2e): repoint master-detail live specs at invoice+lines and form-mode tasks#1562

Merged
xuyushun441-sys merged 1 commit into
mainfrom
feat/e2e-invoice-lines
Jun 7, 2026
Merged

test(e2e): repoint master-detail live specs at invoice+lines and form-mode tasks#1562
xuyushun441-sys merged 1 commit into
mainfrom
feat/e2e-invoice-lines

Conversation

@xuyushun441-sys
Copy link
Copy Markdown
Contributor

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.tsshowcase_invoice. New Invoice renders the relationship-derived "Line Items" grid (invoice_line.invoice declares inlineEdit: 'grid') and submits an atomic /api/v1/batch with the showcase_invoice_line child referencing the invoice via {$ref:0}.
  • row-expand.spec.tsshowcase_invoice. A grid row expands into the child's full inline form (parent Invoice FK excluded); Apply writes the values back into the grid row.
  • master-detail.spec.ts (New Project + Tasks workspace page) → showcase_task is a rich child, so with inlineEdit removed the smart default resolves to the per-row form factor. The test drives "Add task" → full inline form → Apply, then asserts the atomic batch carries the task child with project: {$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.

Depends on framework#1637. The live backend already serves the new objects.

🤖 Generated with Claude Code

…-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>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
objectui Ignored Ignored Jun 7, 2026 6:47am

Request Review

@github-actions github-actions Bot added the tests label Jun 7, 2026
@xuyushun441-sys xuyushun441-sys merged commit 4040b02 into main Jun 7, 2026
8 of 9 checks passed
@xuyushun441-sys xuyushun441-sys deleted the feat/e2e-invoice-lines branch June 7, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants