Skip to content

Commit 6704cbf

Browse files
Copilothotlong
andcommitted
fix: resolve 2 CI test failures — ObjectDataTable error assertion and RecordDetailEdit highlight fields config
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent a1847bc commit 6704cbf

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

apps/console/src/__tests__/RecordDetailEdit.test.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ describe('RecordDetailView — detail schema features', () => {
156156
email: { name: 'email', label: 'Email', type: 'email' },
157157
status: { name: 'status', label: 'Status', type: 'select' },
158158
},
159+
views: {
160+
detail: {
161+
highlightFields: [
162+
{ name: 'status', label: 'Status' },
163+
],
164+
},
165+
},
159166
},
160167
];
161168

packages/plugin-dashboard/src/__tests__/ObjectDataTable.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ describe('ObjectDataTable', () => {
4848

4949
await waitFor(() => {
5050
const errorEl = container.querySelector('[data-testid="table-error"]');
51-
expect(errorEl).toBeDefined();
51+
expect(errorEl).toBeTruthy();
5252
});
5353

54-
expect(screen.getByText('Connection refused')).toBeDefined();
54+
expect(screen.getByText('Connection refused')).toBeTruthy();
5555
});
5656

5757
it('should show empty state when no data returned', async () => {

0 commit comments

Comments
 (0)