File tree Expand file tree Collapse file tree 2 files changed +6
-15
lines changed
dev/integration_tests/web_e2e_tests/lib
examples/hello_world/test_driver Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -16,24 +16,15 @@ bool get isFirefox => window.navigator.userAgent.toLowerCase().contains('firefox
1616/// without penetrating the shadow DOM. In the latter case, if the application
1717/// creates platform views, this will also find platform view elements.
1818List <Node > findElements (String selector) {
19- final Element ? glassPane = document.querySelector ('flt-glass-pane' );
20- if (glassPane == null ) {
19+ final Element ? flutterView = document.querySelector ('flutter-view' );
20+
21+ if (flutterView == null ) {
2122 fail (
22- 'Failed to locate <flt-glass-pane >. Possible reasons:\n '
23+ 'Failed to locate <flutter-view >. Possible reasons:\n '
2324 ' - The application failed to start'
2425 ' - `findElements` was called before the application started'
2526 );
2627 }
2728
28- // TODO(htoor3): Remove shadowRoot selectors once DOM structure PR is merged.
29- final Element ? flutterView = document.querySelector ('flutter-view' );
30-
31- if (flutterView != null ){
32- return flutterView.querySelectorAll (selector);
33- }
34-
35- final ShadowRoot ? shadowRoot = glassPane.shadowRoot;
36- return shadowRoot != null
37- ? shadowRoot.querySelectorAll (selector)
38- : glassPane.querySelectorAll (selector);
29+ return flutterView.querySelectorAll (selector);
3930}
Original file line number Diff line number Diff line change @@ -43,6 +43,6 @@ void main() {
4343 < dynamic > [],
4444 ) as WebElement ? ;
4545 expect (fltSemantics, isNotNull);
46- }, skip : true ); // https://github.com/flutter/flutter/issues/124174
46+ });
4747 });
4848}
You can’t perform that action at this time.
0 commit comments