Skip to content

Commit 548f25d

Browse files
committed
test(plugin-detail): author path A columns in the spec shape
Claude-Session: https://claude.ai/code/session_01SMps7wq7rBTk53e8KTSEup Co-authored-by: Claude <noreply@anthropic.com>
1 parent d8b2bf7 commit 548f25d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎ui/packages/plugin-detail/src/__tests__/RelatedList.dateColumnOneFace-26344.test.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ function expectListFaces(container: HTMLElement) {
156156

157157
describe('objectstack#26344 — a related list date column reads in one absolute face', () => {
158158
it('A: object `columns`', async () => {
159-
expectListFaces(await mountList(NAMES.map((field) => ({ field }))));
159+
// Spec-spelled `{ field, label }`: an object column with no display text is
160+
// left headerless on purpose (`RelatedList.columnHeaderLabel`).
161+
const columns = NAMES.map((field) => ({ field, label: FIELDS[field as keyof typeof FIELDS].label }));
162+
expectListFaces(await mountList(columns));
160163
});
161164

162165
it('B: string `columns`', async () => {

0 commit comments

Comments
 (0)