Skip to content

[web] persistent_bottom_sheet_test.dart is infrequently flaky #135728

@yjbanov

Description

@yjbanov

This hasn't been picked up by the flake bot, but poking around the dashboard I found two occurrences of persistent_bottom_sheet_test.dart flaking out:

The specific test is "Verify that a back button resets a persistent BottomSheet" and it fails like this:

01:25 +105 ~1: test/material/persistent_bottom_sheet_test.dart: Verify that a back button resets a persistent BottomSheet                                                                              
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure was thrown running a test:
Expected: exactly one matching candidate
  Actual: _TextWidgetFinder:<Found 0 widgets with text "Item 22": []>
   Which: means none were found but one was expected

When the exception was thrown, this was the stack:
../dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 294:3  throw_
../packages/matcher/src/expect/prints_matcher.dart.js 436:22                    fail
../packages/matcher/src/expect/prints_matcher.dart.js 433:12                    _expect
../packages/matcher/src/expect/prints_matcher.dart.js 368:12                    expect$
../packages/flutter_test/src/test_text_input_key_handler.dart.js 9381:12        expect$
persistent_bottom_sheet_test.dart.js 3818:21                                    <fn>
../dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50           <fn>
../packages/stack_trace/src/stack_zone_specification.dart.js 187:98             <fn>
../packages/stack_trace/src/stack_zone_specification.dart.js 239:16             [_run]
../packages/stack_trace/src/stack_zone_specification.dart.js 187:80             <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 162:18                                   handleValue
../dart-sdk/lib/async/future_impl.dart 846:44                                   handleValueCallback
../dart-sdk/lib/async/future_impl.dart 875:13                                   _propagateToListeners
../dart-sdk/lib/async/future_impl.dart 647:5                                    [_completeWithValue]
../dart-sdk/lib/async/future_impl.dart 721:7                                    <fn>
../packages/fake_async/fake_async.dart.js 140:40                                flushMicrotasks
../packages/flutter_test/src/test_text_input_key_handler.dart.js 10530:19       <fn>
../dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54           runBody
../dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 127:5           _async
../packages/flutter_test/src/test_text_input_key_handler.dart.js 10527:62       <fn>
../dart-sdk/lib/async/future.dart 280:37                                        <fn>
../packages/stack_trace/src/stack_zone_specification.dart.js 239:16             [_run]
../packages/stack_trace/src/stack_zone_specification.dart.js 182:71             <fn>
../dart-sdk/lib/async/zone.dart 1391:47                                         _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                                         <fn>
../packages/stack_trace/src/stack_zone_specification.dart.js 239:16             [_run]
../packages/stack_trace/src/stack_zone_specification.dart.js 182:71             <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:
  Verify that a back button resets a persistent BottomSheet
════════════════════════════════════════════════════════════════════════════════════════════════════

01:25 +105 ~1 -1: test/material/persistent_bottom_sheet_test.dart: Verify that a back button resets a persistent BottomSheet [E]                                                                       
  Test failed. See exception logs above.
  The test description was: Verify that a back button resets a persistent BottomSheet
  

To run this test again: /b/s/w/ir/x/w/flutter/bin/cache/dart-sdk/bin/dart test test/material/persistent_bottom_sheet_test.dart -p chrome --plain-name 'Verify that a back button resets a persistent BottomSheet'

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressiona: tests"flutter test", flutter_test, or one of our testsc: flakeTests that sometimes, but not always, incorrectly passplatform-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