From c64d386fc69e87b2805e26310c5e0a28a3448e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Mon, 30 Mar 2026 22:48:50 +0200 Subject: [PATCH] Fix flaky api-docs alpha test by increasing findByText timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) Signed-off-by: Fredrik Adelöw --- plugins/api-docs/src/alpha.test.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/api-docs/src/alpha.test.tsx b/plugins/api-docs/src/alpha.test.tsx index 252778cc2e..ee58981515 100644 --- a/plugins/api-docs/src/alpha.test.tsx +++ b/plugins/api-docs/src/alpha.test.tsx @@ -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 () => {