Skip to content

[pointer_interceptor_web] Semantics integration tests are failing to find the semantics label in the DOM #145238

@bparrishMines

Description

@bparrishMines

The integration tests in pointer_interceptor_web are attempting to retrieve the semantics label with element.getAttribute('aria-label'), but the value has started to return null.

Related: flutter/packages#1675

Running command: "flutter drive -d web-server --web-port=7357 --browser-name=chrome --web-renderer=html --chrome-binary=/b/s/w/ir/cache/chrome/chrome/chrome --driver test_driver/integration_test.dart --target integration_test/widget_test.dart" in /b/s/w/ir/x/w/packages/packages/pointer_interceptor/pointer_interceptor_web/example
Resolving dependencies...
  material_color_utilities 0.8.0 (0.11.1 available)
Got dependencies!
1 package has newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Launching integration_test/widget_test.dart on Web Server in debug mode...
Waiting for connection from debug service on Web Server...      
Warning: In index.html:45: "FlutterLoader.loadEntrypoint" is deprecated. Use "FlutterLoader.load" instead.
Waiting for connection from debug service on Web Server...         25.6s
integration_test/widget_test.dart is being served at http://localhost:7357
The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or Edge devices for an improved development workflow.
Failure Details:
Failure in method: finds semantics of wrapped widgets
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
The following TestFailure was thrown running a test:
Expected: 'Works As Expected'
  Actual: <null>
   Which: not an <Instance of 'String'>

When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 296:3  throw_
packages/matcher/src/expect/prints_matcher.dart.js 453:22                    fail
packages/matcher/src/expect/prints_matcher.dart.js 450:12                    _expect
packages/matcher/src/expect/prints_matcher.dart.js 385:12                    expect$
packages/flutter_test/src/test_text_input_key_handler.dart.js 10414:12       expect$
widget_test.dart.js 119:23                                                   <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50           <fn>
dart-sdk/lib/async/zone.dart 1407:47                                         _rootRunUnary
dart-sdk/lib/async/zone.dart 1308:19                                         runUnary
dart-sdk/lib/async/future_impl.dart 163:18                                   handleValue
dart-sdk/lib/async/future_impl.dart 847:44                                   handleValueCallback
dart-sdk/lib/async/future_impl.dart 876:13                                   _propagateToListeners
dart-sdk/lib/async/future_impl.dart 652:5                                    [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 722:7                                    <fn>
dart-sdk/lib/async/zone.dart 1399:13                                         _rootRun
dart-sdk/lib/async/zone.dart 1301:19                                         run
dart-sdk/lib/async/zone.dart 1209:7                                          runGuarded
dart-sdk/lib/async/zone.dart 1249:23                                         callback
dart-sdk/lib/async/schedule_microtask.dart 40:11                             _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5                              _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:7           <fn>

The test description was:
  finds semantics of wrapped widgets
═════════════════════════════════════════════════════════════════

end of failure 1


Failure in method: finds semantics of wrapped widgets with intercepting set to false
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
The following TestFailure was thrown running a test:
Expected: 'Never calls onPressed transparent'
  Actual: <null>
   Which: not an <Instance of 'String'>

When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 296:3  throw_
packages/matcher/src/expect/prints_matcher.dart.js 453:22                    fail
packages/matcher/src/expect/prints_matcher.dart.js 450:12                    _expect
packages/matcher/src/expect/prints_matcher.dart.js 385:12                    expect$
packages/flutter_test/src/test_text_input_key_handler.dart.js 10414:12       expect$
widget_test.dart.js 125:23                                                   <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50           <fn>
dart-sdk/lib/async/zone.dart 1407:47                                         _rootRunUnary
dart-sdk/lib/async/zone.dart 1308:19                                         runUnary
dart-sdk/lib/async/future_impl.dart 163:18                                   handleValue
dart-sdk/lib/async/future_impl.dart 847:44                                   handleValueCallback
dart-sdk/lib/async/future_impl.dart 876:13                                   _propagateToListeners
dart-sdk/lib/async/future_impl.dart 652:5                                    [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 722:7                                    <fn>
dart-sdk/lib/async/zone.dart 1399:13                                         _rootRun
dart-sdk/lib/async/zone.dart 1301:19                                         run
dart-sdk/lib/async/zone.dart 1209:7                                          runGuarded
dart-sdk/lib/async/zone.dart 1249:23                                         callback
dart-sdk/lib/async/schedule_microtask.dart 40:11                             _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5                              _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:7           <fn>

The test description was:
  finds semantics of wrapped widgets with intercepting set to
  false
═════════════════════════════════════════════════════════════════

end of failure 2


Failure in method: finds semantics of unwrapped elements
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
The following TestFailure was thrown running a test:
Expected: 'Never calls onPressed'
  Actual: <null>
   Which: not an <Instance of 'String'>

When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 296:3  throw_
packages/matcher/src/expect/prints_matcher.dart.js 453:22                    fail
packages/matcher/src/expect/prints_matcher.dart.js 450:12                    _expect
packages/matcher/src/expect/prints_matcher.dart.js 385:12                    expect$
packages/flutter_test/src/test_text_input_key_handler.dart.js 10414:12       expect$
widget_test.dart.js 131:23                                                   <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50           <fn>
dart-sdk/lib/async/zone.dart 1407:47                                         _rootRunUnary
dart-sdk/lib/async/zone.dart 1308:19                                         runUnary
dart-sdk/lib/async/future_impl.dart 163:18                                   handleValue
dart-sdk/lib/async/future_impl.dart 847:44                                   handleValueCallback
dart-sdk/lib/async/future_impl.dart 876:13                                   _propagateToListeners
dart-sdk/lib/async/future_impl.dart 652:5                                    [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 722:7                                    <fn>
dart-sdk/lib/async/zone.dart 1399:13                                         _rootRun
dart-sdk/lib/async/zone.dart 1301:19                                         run
dart-sdk/lib/async/zone.dart 1209:7                                          runGuarded
dart-sdk/lib/async/zone.dart 1249:23                                         callback
dart-sdk/lib/async/schedule_microtask.dart 40:11                             _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5                              _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:7           <fn>

The test description was:
  finds semantics of unwrapped elements
═════════════════════════════════════════════════════════════════

end of failure 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: pointer_interceptorA widget to prevent clicks from being swallowed by underlying HtmlElementViews on the webpackageflutter/packages repository. See also p: labels.platform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions