Skip to content

Commit

Permalink
fix: lint in #365
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyutaotao committed Feb 10, 2025
1 parent 93e1932 commit a5f92b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/web-integration/src/playwright/ai-fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ export type PlayWrightAiFixtureType = {
async function waitForNetworkIdle(page: OriginPlaywrightPage, timeout = 20000) {
try {
await page.waitForLoadState('networkidle', { timeout });
} catch (error: any) {
console.warn(`Network idle timeout exceeded: ${error instanceof Error ? error.message : String(error)}`);
} catch (error: any) {
console.warn(
`Network idle timeout exceeded: ${error instanceof Error ? error.message : String(error)}`,
);
}
}

0 comments on commit a5f92b8

Please sign in to comment.