Fix flaky api-docs alpha test by increasing findByText timeout

The test assertions for lazy-loaded extension components used the
default 1000ms RTL timeout, which is insufficient under CI load.
Increased to 10000ms to match the pattern in createDevApp.test.tsx.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
This commit is contained in:
Fredrik Adelöw
2026-03-30 22:48:50 +02:00
parent 3bd006e7f5
commit c64d386fc6
+9 -3
View File
@@ -55,7 +55,9 @@ describe('api-docs plugin entity extensions', () => {
],
});
expect(await screen.findByText('My API')).toBeInTheDocument();
expect(
await screen.findByText('My API', {}, { timeout: 10000 }),
).toBeInTheDocument();
});
it('should not render for non-API entities', async () => {
@@ -111,7 +113,9 @@ describe('api-docs plugin entity extensions', () => {
],
});
expect(await screen.findByText('pet-api')).toBeInTheDocument();
expect(
await screen.findByText('pet-api', {}, { timeout: 10000 }),
).toBeInTheDocument();
});
});
@@ -140,7 +144,9 @@ describe('api-docs plugin entity extensions', () => {
],
});
expect(await screen.findByText('Content API')).toBeInTheDocument();
expect(
await screen.findByText('Content API', {}, { timeout: 10000 }),
).toBeInTheDocument();
});
it('should not render for non-API entities', async () => {