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
16
16
/// without penetrating the shadow DOM. In the latter case, if the application
17
17
/// creates platform views, this will also find platform view elements.
18
18
List <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 ) {
21
22
fail (
22
- 'Failed to locate <flt-glass-pane >. Possible reasons:\n '
23
+ 'Failed to locate <flutter-view >. Possible reasons:\n '
23
24
' - The application failed to start'
24
25
' - `findElements` was called before the application started'
25
26
);
26
27
}
27
28
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);
39
30
}
Original file line number Diff line number Diff line change @@ -43,6 +43,6 @@ void main() {
43
43
< dynamic > [],
44
44
) as WebElement ? ;
45
45
expect (fltSemantics, isNotNull);
46
- }, skip : true ); // https://github.com/flutter/flutter/issues/124174
46
+ });
47
47
});
48
48
}
You can’t perform that action at this time.
0 commit comments