diff --git a/javascript/node/selenium-webdriver/test/bidi/browsingcontext_inspector_test.js b/javascript/node/selenium-webdriver/test/bidi/browsingcontext_inspector_test.js index 250bbad37dacb..435877bd88891 100644 --- a/javascript/node/selenium-webdriver/test/bidi/browsingcontext_inspector_test.js +++ b/javascript/node/selenium-webdriver/test/bidi/browsingcontext_inspector_test.js @@ -68,7 +68,11 @@ suite( assert.equal(contextInfo.id, windowHandle) assert.equal(contextInfo.url, 'about:blank') - assert.equal(contextInfo.children, null) + + assert( + Array.isArray(contextInfo.children) && contextInfo.children.length === 0, + 'children should be an empty array', + ) assert.equal(contextInfo.parentBrowsingContext, null) })