[web] - fix text editing integration tests for new DOM structure (#124299)
[web] - fix text editing integration tests for new DOM structure
This commit is contained in:
parent
bf0bdacb29
commit
1a98273af2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user