Skip to content

Commit 33ec888

Browse files
authored
Merge pull request #949 from objectstack-ai/copilot/fix-ci-test-issue
2 parents bc658aa + eef74b5 commit 33ec888

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ describe('RecordDetailView — recordId handling', () => {
8989
});
9090

9191
// findOne should be called with the FULL URL recordId (no stripping)
92-
expect(ds.findOne).toHaveBeenCalledWith('contact', 'contact-1772350253615-4');
92+
expect(ds.findOne).toHaveBeenCalledWith('contact', 'contact-1772350253615-4', undefined);
9393

9494
// Click the Edit button
9595
const editButton = await screen.findByRole('button', { name: /edit/i });
@@ -115,7 +115,7 @@ describe('RecordDetailView — recordId handling', () => {
115115
});
116116

117117
// findOne should be called with the original ID unchanged
118-
expect(ds.findOne).toHaveBeenCalledWith('contact', 'plain-id-12345');
118+
expect(ds.findOne).toHaveBeenCalledWith('contact', 'plain-id-12345', undefined);
119119

120120
const editButton = await screen.findByRole('button', { name: /edit/i });
121121
await userEvent.click(editButton);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe('ObjectPivotTable', () => {
7777

7878
await waitFor(() => {
7979
const errorEl = container.querySelector('[data-testid="pivot-error"]');
80-
expect(errorEl).toBeDefined();
80+
expect(errorEl).not.toBeNull();
8181
});
8282

8383
expect(screen.getByText('Network error')).toBeDefined();

0 commit comments

Comments
 (0)