diff --git a/browser/devtools/inspector/test/browser_inspector_search-01.js b/browser/devtools/inspector/test/browser_inspector_search-01.js index 33ac6284ebd..1e74be3ab78 100644 --- a/browser/devtools/inspector/test/browser_inspector_search-01.js +++ b/browser/devtools/inspector/test/browser_inspector_search-01.js @@ -70,10 +70,12 @@ add_task(function* () { info("Got " + event + " event. Waiting for search query to complete"); yield inspector.searchSuggestions._lastQuery; - info(inspector.selection.node.id + " is selected with text " + + info(inspector.selection.nodeFront.id + " is selected with text " + searchBox.value); - is(inspector.selection.node, content.document.getElementById(id), + let nodeFront = yield getNodeFront("#" + id, inspector); + is(inspector.selection.nodeFront, nodeFront, "Correct node is selected for state " + index); + is(!searchBox.classList.contains("devtools-no-search-result"), isValid, "Correct searchbox result state for state " + index);