From c5b23b339b55a5c4ea55c0baff5dbf06c1aa7969 Mon Sep 17 00:00:00 2001 From: Navin Chandra Date: Wed, 12 Mar 2025 18:15:51 +0530 Subject: [PATCH] fix chrome and firefox test for CI RBE --- .../test/bidi/browsingcontext_inspector_test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) })