Merge pull request #33684 from backstage/freben/fix-api-docs-flaky-test

Fix flaky api-docs alpha test
This commit is contained in:
Fredrik Adelöw
2026-03-31 09:19:01 +02:00
committed by GitHub
+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 () => {