Skip to content

Commit f4b2304

Browse files
Copilothotlong
andcommitted
Fix test timeout in ObjectForm.msw.test.tsx
Added explicit timeout parameter to waitFor() call in first test to match the second test. This ensures the test has sufficient time to complete in CI environments. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 7ee863b commit f4b2304

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugin-form/src/ObjectForm.msw.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('ObjectForm with ObjectStack/MSW', () => {
100100
await waitFor(() => {
101101
// Changed from 'Full Name' to 'Name' based on CRM example schema
102102
expect(screen.getByText('Name')).toBeInTheDocument();
103-
});
103+
}, { timeout: 2000 }); // Give slight buffer for network mock
104104
expect(screen.getByText('Email')).toBeInTheDocument();
105105
expect(screen.getByText('Status')).toBeInTheDocument();
106106
});

0 commit comments

Comments
 (0)