diff --git a/lib/NavigatorWatcher.js b/lib/NavigatorWatcher.js index 5e306658..d238a679 100644 --- a/lib/NavigatorWatcher.js +++ b/lib/NavigatorWatcher.js @@ -94,6 +94,10 @@ class NavigatorWatcher { if (!frame._lifecycleEvents.has(event)) return false; } + for (const child of frame.childFrames()) { + if (!checkLifecycle(child, expectedLifecycle)) + return false; + } return true; } }