Skip to content

Commit d2e4e4f

Browse files
committed
test(app-shell): the record edit state adds its new body-table line through Add
The record page's body-table edit state typed the new line into the grid's blank entry row, which the grid no longer draws beside Add. The pin now presses Add first; the batch it expects and the line the refusal lands on are unchanged. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
1 parent d410039 commit d2e4e4f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎ui/packages/app-shell/src/views/RecordDetailView.harness.test.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3004,6 +3004,8 @@ describe('RecordDetailView.recordEditState-35599', () => {
30043004
const lines = editor(container, 'showcase_line.quote')!;
30053005
fireEvent.change(cells(lines, 'Quantity')[0], { target: { value: '5' } });
30063006
fireEvent.click(lines.querySelectorAll('button[aria-label="Remove row"]')[1] as HTMLElement);
3007+
// The new line comes from Add: the grid draws no blank entry line beside it (objectstack#35507).
3008+
fireEvent.click(lines.querySelector('[data-testid="line-items-add"]') as HTMLElement);
30073009
const products = cells(lines, 'Product');
30083010
fireEvent.change(products[products.length - 1], { target: { value: 'Crate' } });
30093011
const tasks = editor(container, 'showcase_task.quote')!;

0 commit comments

Comments
 (0)