Unverified Commit 1a98273a authored by htoor3's avatar htoor3 Committed by GitHub

[web] - fix text editing integration tests for new DOM structure (#124299)

[web] - fix text editing integration tests for new DOM structure
parent bf0bdacb
......@@ -25,6 +25,13 @@ List<Node> findElements(String selector) {
);
}
// TODO(htoor3): Remove shadowRoot selectors once DOM structure PR is merged.
final Element? flutterView = document.querySelector('flutter-view');
if(flutterView != null){
return flutterView.querySelectorAll(selector);
}
final ShadowRoot? shadowRoot = glassPane.shadowRoot;
return shadowRoot != null
? shadowRoot.querySelectorAll(selector)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment