Skip to content

Commit ddac7de

Browse files
committed
Increase timeout values in tests for improved reliability
1 parent 0cb8efe commit ddac7de

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ describe('Console Application Simulation', () => {
201201
// Check all labels exist concurrently using Promise.all for faster execution
202202
await Promise.all(
203203
fieldLabels.map(label =>
204-
waitFor(() => expectLabelToExist(label), { timeout: 5000 })
204+
waitFor(() => expectLabelToExist(label), { timeout: 12000 })
205205
)
206206
);
207207

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ describe('Console App Integration', () => {
135135
// 2. Should eventually show Main Layout (header/sidebar)
136136
await waitFor(() => {
137137
expect(screen.queryByText(/Initializing/i)).not.toBeInTheDocument();
138-
});
138+
}, { timeout: 10000 });
139139

140140
// Check for App Name in sidebar/header config
141141
const appLabels = screen.getAllByText('Sales App');
@@ -151,7 +151,7 @@ describe('Console App Integration', () => {
151151
await waitFor(() => {
152152
const appLabels = screen.getAllByText('Sales App');
153153
expect(appLabels.length).toBeGreaterThan(0);
154-
});
154+
}, { timeout: 10000 });
155155

156156
// Click the navigation item
157157
// Note: Sidebar implementation might be collapsible or using specific DOM structure
@@ -163,7 +163,7 @@ describe('Console App Integration', () => {
163163
// And render ObjectView
164164
await waitFor(() => {
165165
expect(screen.getByTestId('object-view')).toBeInTheDocument();
166-
});
166+
}, { timeout: 10000 });
167167
});
168168

169169
it('handles app switching', async () => {
@@ -172,7 +172,7 @@ describe('Console App Integration', () => {
172172
await waitFor(() => {
173173
const appLabels = screen.getAllByText('Sales App');
174174
expect(appLabels.length).toBeGreaterThan(0);
175-
});
175+
}, { timeout: 10000 });
176176

177177
// Find App Switcher (SidebarMenuButton with app name)
178178
// This might be tricky depending on Shadcn structure.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('ObjectForm Field Type Mapping', () => {
8080
// Wait for schema to load and render
8181
await waitFor(() => {
8282
expect(screen.getByLabelText(/Text Field/i)).toBeInTheDocument();
83-
}, { timeout: 3000 });
83+
}, { timeout: 10000 });
8484

8585
// 1. Text Field -> Input[type=text]
8686
expect(container.querySelector('input[name="text_field"][type="text"]')).toBeInTheDocument();

packages/plugin-grid/src/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('Plugin Grid Registration', () => {
2323
);
2424

2525
// Use findByTestId for async safety
26-
const element = await screen.findByTestId('grid-mock');
26+
const element = await screen.findByTestId('grid-mock', {}, { timeout: 5000 });
2727
expect(element).toHaveTextContent('DataSource: mock-datasource');
2828
});
2929
});

0 commit comments

Comments
 (0)