Skip to content

Commit eae4793

Browse files
Fix check condition to avoid timeouts in invalid panels (#299)
* Fix check condition to avoid timeouts in panels that don't have valid information * trigger CI * Revert "trigger CI" This reverts commit f9e164a. --------- Co-authored-by: Agnès Toulet <[email protected]> Co-authored-by: Agnès Toulet <[email protected]>
1 parent 364ee01 commit eae4793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ export class Browser {
352352
}
353353

354354
const panelCount = document.querySelectorAll('.panel').length || document.querySelectorAll('.panel-container').length;
355-
return (window as any).panelsRendered >= panelCount;
355+
return (window as any).panelsRendered >= panelCount || (window as any).panelsRendered === undefined;
356356
},
357357
{
358358
timeout: options.timeout * 1000,

0 commit comments

Comments
 (0)