Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
---

Test-only, no package released: `RelatedList.unmaterializedSort.test.tsx`'s case "keeps that button in
client mode" now awaits the object schema before it reads the `Total` sort button. Since
objectui#10728 the sort-button row reads the masked stamp, which covers every column until
`getObjectSchema` resolves, and the case gated only on the view type, which client mode reaches on the
first commit. So whether the button existed when it was read depended on scheduling; on one merge-queue
build it did not (objectui#10895). No source file changes.
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,11 @@ describe('RelatedList — the sort-button row for a `list` card (#3950)', () =>
});

it('keeps that button in client mode', async () => {
renderList({ type: 'list', data: items });
const dataSource = renderList({ type: 'list', data: items });
await waitFor(() => expect(h.schema?.type).toBe('data-list'));
// Since objectui#10728 the sort-button row reads the masked stamp, which
// covers every column until the object schema lands (#7007).
await settleObjectSchema(dataSource);

expect(screen.getByRole('button', { name: /Total/ })).toBeTruthy();
});
Expand Down
Loading