Skip to content

Commit 7c8b077

Browse files
committed
test(plugin-grid): the footer control waits on the catalogue, not on the fix
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5mDVzZmSX2UmJXU7sH
1 parent ffbc44b commit 7c8b077

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ui/packages/plugin-grid/src/__tests__/footerSummaryFieldScale-33542.test.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ describe('a summary column footer total is formatted as its cell (objectstack#33
138138

139139
it('CONTROL: a summary with no scale and no currency keeps the plain total', async () => {
140140
renderGrid('en');
141-
await waitFor(async () => expect(await footerOf('paid_amount')).toContain('230,000.00'));
141+
// The catalogue has landed once the plain currency column draws money.
142+
await waitFor(async () => expect(await footerOf('billed_cny')).toMatch(/230,000\.00/));
142143
expect(await footerOf('payment_count')).toContain('Sum: 7');
143144
expect(await footerOf('payment_count')).not.toContain('7.0');
144145
});

0 commit comments

Comments
 (0)