format code (#152)
This commit is contained in:
+1
-3
@@ -739,9 +739,7 @@ export class BrowserManager {
|
||||
}
|
||||
|
||||
// Filter out pages with empty URLs, which can cause Playwright to hang
|
||||
const allPages = contexts
|
||||
.flatMap((context) => context.pages())
|
||||
.filter((page) => page.url());
|
||||
const allPages = contexts.flatMap((context) => context.pages()).filter((page) => page.url());
|
||||
|
||||
if (allPages.length === 0) {
|
||||
throw new Error('No page found. Make sure the app has loaded content.');
|
||||
|
||||
Reference in New Issue
Block a user