Repository: flutter
Issue: [integration_test] Simulating a long press, no longer responds to tap events
Labels: framework,f: gestures,f: integration_test,has reproducible steps,P2,found in release: 2.10,found in release: 2.13,team-framework,triaged-framework

## Steps to Reproduce

Create an app with two buttons.  Both of them increment a counter when they are tapped, and show a bottom sheet when long-pressed.  During on-device integration testing, if a button is long-pressed and bottom sheet is dismissed, that button no longer responds to any tap events, while the other button still increments the counter as expected.  If you swap the buttons around, it is always the button which was long-pressed to display the sheet which fails.  This is unexpected behavior, and does not reflect the behavior of the app during normal runtime or under a widget test where everything works as expected.

**Expected results:** A button which is long-pressed to display a bottom sheet should respond to tap events afterwards. (In the code example below - the test is expected to pass)

**Actual results:** A button which is long-pressed to display a bottom sheet fails respond to tap events afterwards.  (In the code example below - Button 1, which was long-pressed, does not response to the tap event at all, so the test fails)

Note that:
  * There is no error from `tester.tap()`; it simply does not trigger the touch event and so the counter fails to increment
  * I have reproduced this on my physical Android device (Xioami Mi 5), the Android simulator (Pixel C API Level 29), Windows and Chrome so I do not think it is device specific.
  * This same test DOES work when re-written as a standard widget test rather than an on-device integration test.  The problem is specific to integration tests.

<details>
<summary>Code sample</summary>

**main.dart**

```dart

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  _showBottomSheet() async {
    await showModalBottomSheet(
      context: context,
      builder: (context) => const Text("Bottom sheet")
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            ElevatedButton(
              child: const Text("Button 1"),
              onPressed: _incrementCounter,
              onLongPress: _showBottomSheet,
            ),
            ElevatedButton(
              child: const Text("Button 2"),
              onPressed: _incrementCounter,
              onLongPress: _showBottomSheet,
            ),
            Text(
              '$_counter',
            ),
          ],
        ),
      ),
    );
  }
}
```

**integration_test/app_test.dart**

```dart
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:bug_mwe/main.dart' as app;

void main() {
  IntegrationTestWidgetsFlutterBinding.ensureInitialized();

  testWidgets('Bottom sheet test', (WidgetTester tester) async {
      app.main();
      await tester.pumpAndSettle();

      // Tap the button
      await tester.tap(find.text("Button 1"));
      await tester.pumpAndSettle();
      expect(find.text('1'), findsOneWidget);
      
      // Long press to display bottom sheet
      await tester.longPress(find.text("Button 1"));
      await tester.pump(const Duration(seconds: 1));

      // Hide bottom sheet (by tapping in top corner)
      await tester.tapAt(const Offset(10, 10));
      await tester.pump(const Duration(seconds: 2));

      // Tapping button 2 works because it was not long pressed
      await tester.tap(find.text("Button 2"));
      await tester.pump(const Duration(seconds: 2));
      expect(find.text('2'), findsOneWidget);

      // The finder DOES find the button 1...
      expect(find.text("Button 1"), findsOneWidget);

      // ... but button 1 DOES NOT work because it was long pressed
      await tester.tap(find.text("Button 1"));
      await tester.pump(const Duration(seconds: 2));
      expect(find.text('3'), findsOneWidget);

      // If you swap the buttons around, it is always the one long pressed
      // which does not work
    });
}
```



```dart
```

</details>

<details>
  <summary>Logs</summary>

```
$ flutter test integration_test  --verbose
[ +116 ms] executing: [C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +676 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] 7e9793dee1b85a243edd0e06cb1658e98b077561
[   +1 ms] executing: [C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter/] git tag --points-at 7e9793dee1b85a243edd0e06cb1658e98b077561
[  +97 ms] Exit code 0 from: git tag --points-at 7e9793dee1b85a243edd0e06cb1658e98b077561
[        ] 2.10.3
[  +14 ms] executing: [C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +52 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter/] git ls-remote --get-url origin
[  +46 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +191 ms] executing: [C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter/] git rev-parse --abbrev-ref HEAD
[  +52 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[ +110 ms] Found 1 files which will be executed as Integration Tests.
[  +18 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +17 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +7 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +136 ms] executing: C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[ +122 ms] List of devices attached
                    dd196c4b               device product:gemini model:MI_5 device:gemini transport_id:3
[  +13 ms] C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe -s dd196c4b shell getprop
[ +148 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +8 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[  +15 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +295 ms] Skipping pub get: version match.
[ +129 ms] Found plugin integration_test at C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter\packages\integration_test\
[ +164 ms] Found plugin integration_test at C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter\packages\integration_test\
[  +19 ms] Generating C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +417 ms] running test package with arguments: [-r, compact, --timeout, 30s, --concurrency=1, --chain-stack-traces, --, C:\Users\***\Google
Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart]
00:00 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [ +456 ms] test 0: starting test C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart
[  +20 ms] Stopping scan for flutter_test_config.dart; found project root at C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe
[   +3 ms] test 0: starting test device
[  +16 ms] test 0: awaiting connection to test device
[  +43 ms] executing: C:\Users\***\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree C:\Users\***\Google
Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +32 ms] Exit code 0 from: C:\Users\***\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree C:\Users\***\Google
Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +2 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1f
               A: android:compileSdkVersionCodename(0x01010573)="12" (Raw: "12")
               A: package="com.example.bug_mwe" (Raw: "com.example.bug_mwe")
               A: platformBuildVersionCode=(type 0x10)0x1f
               A: platformBuildVersionName=(type 0x10)0xc
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1f
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="bug_mwe" (Raw: "bug_mwe")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="android.app.Application" (Raw: "android.app.Application")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=22)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.bug_mwe.MainActivity" (Raw: "com.example.bug_mwe.MainActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=37)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: intent-filter (line=41)
                     E: action (line=42)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=44)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=51)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: uses-library (line=55)
                   A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions")
                   A: android:required(0x0101028e)=(type 0x12)0x0
                 E: uses-library (line=58)
                   A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar")
                   A: android:required(0x0101028e)=(type 0x12)0x0
[  +28 ms] executing: C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe version
[ +139 ms] Android Debug Bridge version 1.0.41
                    Version 31.0.2-7242960
                    Installed as C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +3 ms] executing: C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[  +43 ms] Building APK
[  +23 ms] Running Gradle task 'assembleDebug'...
[   +8 ms] Using gradle from C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\android\gradlew.bat.
[  +16 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +183 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[   +1 ms] openjdk version "11.0.8" 2020-07-14
           OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
           OpenJDK 64-Bit Server VM (build 11.0.8+10-b944.6842174, mixed mode)
[   +4 ms] executing: [C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\android/] C:\Users\***\Google
Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=C:\Users\***\AppData\Local\Temp\flutter_tools.8edfc277\flutter_test_listener.a33ba942/listener.dart -Pbase-application-name=android.app.Application
-Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==,SU5URUdSQVRJT05fVEVTVF9TSE9VTERfUkVQT1JUX1JFU1VMVFNfVE9fTkFUSVZFPWZhbHNl -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false 
assembleDebug
00:06 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [+5640 ms] > Task :app:compileFlutterBuildDebug
[   +1 ms] [ +111 ms] executing: [C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +601 ms] [ +723 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +2 ms] [        ] 7e9793dee1b85a243edd0e06cb1658e98b077561
[   +1 ms] [   +1 ms] executing: [C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter/] git tag --points-at 7e9793dee1b85a243edd0e06cb1658e98b077561
[  +90 ms] [  +74 ms] Exit code 0 from: git tag --points-at 7e9793dee1b85a243edd0e06cb1658e98b077561
[   +1 ms] [        ] 2.10.3
[   +2 ms] [  +12 ms] executing: [C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +2 ms] [  +51 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] [        ] origin/stable
[   +1 ms] [        ] executing: [C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter/] git ls-remote --get-url origin
00:07 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [  +84 ms] [  +38 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] [        ] https://github.com/flutter/flutter.git
[ +107 ms] [ +105 ms] executing: [C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter/] git rev-parse --abbrev-ref HEAD
[   +1 ms] [  +47 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[  +92 ms] [  +93 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] [   +7 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +191 ms] [ +182 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[   +1 ms] [   +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[  +93 ms] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +29 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[  +59 ms] [ +221 ms] Initializing file store
[  +92 ms] [  +45 ms] Skipping target: gen_localizations
[   +1 ms] [  +35 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: C:\Users\***\Google
Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\.dart_tool\package_config_subset}
[  +92 ms] [ +104 ms] Found plugin integration_test at C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter\packages\integration_test\
[   +1 ms] [  +13 ms] gen_dart_plugin_registrant: Complete
[   +1 ms] [   +5 ms] kernel_snapshot: Starting due to {}
[ +107 ms] [  +26 ms] C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true
-DINTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --no-link-platform --packages C:\Users\***\Google
Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\.dart_tool\package_config.json --output-dill C:\Users\***\Google
Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\.dart_tool\flutter_build\567b5812227c18fb81e2b6922d32f718\app.dill --depfile C:\Users\***\Google
Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\.dart_tool\flutter_build\567b5812227c18fb81e2b6922d32f718\kernel_snapshot.d
file:///C:/Users/***/AppData/Local/Temp/flutter_tools.8edfc277/flutter_test_listener.a33ba942/listener.dart
00:23 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [+15499 ms] [+15516 ms] kernel_snapshot: Complete
00:24 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [ +797 ms] [ +879 ms] debug_android_application: Starting due to {}
[ +396 ms] [ +308 ms] debug_android_application: Complete
00:25 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [ +803 ms] [ +874 ms] Persisting file store
[ +102 ms] [  +25 ms] Done persisting file store
[   +1 ms] [  +34 ms] build succeeded.
[        ] [  +33 ms] "flutter assemble" took 18,347ms.
[  +93 ms] [ +102 ms] ensureAnalyticsSent: 96ms
[   +1 ms] [   +1 ms] Running shutdown hooks
[   +1 ms] [        ] Shutdown hooks complete
[   +1 ms] [        ] exiting with code 0
[ +201 ms] Parameter format not correct -
00:26 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [ +233 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[   +9 ms] > Task :app:preBuild UP-TO-DATE
[   +1 ms] > Task :app:preDebugBuild UP-TO-DATE
[   +3 ms] > Task :integration_test:preBuild UP-TO-DATE
[   +2 ms] > Task :integration_test:preDebugBuild UP-TO-DATE
[  +21 ms] > Task :integration_test:compileDebugAidl NO-SOURCE
[   +3 ms] > Task :app:compileDebugAidl NO-SOURCE
[   +3 ms] > Task :integration_test:packageDebugRenderscript NO-SOURCE
[   +2 ms] > Task :app:compileDebugRenderscript NO-SOURCE
[  +58 ms] > Task :app:generateDebugBuildConfig UP-TO-DATE
[   +2 ms] > Task :integration_test:writeDebugAarMetadata UP-TO-DATE
[ +451 ms] > Task :app:checkDebugAarMetadata UP-TO-DATE
[  +17 ms] > Task :app:cleanMergeDebugAssets
00:27 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [ +573 ms] > Task :app:mergeDebugShaders UP-TO-DATE
[  +59 ms] > Task :app:compileDebugShaders NO-SOURCE
[  +15 ms] > Task :app:generateDebugAssets UP-TO-DATE
[  +15 ms] > Task :integration_test:mergeDebugShaders UP-TO-DATE
[  +45 ms] > Task :integration_test:compileDebugShaders NO-SOURCE
[  +26 ms] > Task :integration_test:generateDebugAssets UP-TO-DATE
[  +12 ms] > Task :integration_test:packageDebugAssets UP-TO-DATE
[  +21 ms] > Task :app:mergeDebugAssets
[ +536 ms] > Task :app:copyFlutterAssetsDebug
00:28 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [  +85 ms] > Task :app:generateDebugResValues UP-TO-DATE
[  +52 ms] > Task :app:generateDebugResources UP-TO-DATE
[  +16 ms] > Task :integration_test:compileDebugRenderscript NO-SOURCE
[   +2 ms] > Task :integration_test:generateDebugResValues UP-TO-DATE
[   +4 ms] > Task :integration_test:generateDebugResources UP-TO-DATE
[   +2 ms] > Task :integration_test:packageDebugResources UP-TO-DATE
[  +66 ms] > Task :app:mergeDebugResources UP-TO-DATE
[ +179 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[ +107 ms] > Task :app:extractDeepLinksDebug UP-TO-DATE
[  +84 ms] > Task :integration_test:extractDeepLinksDebug UP-TO-DATE
[   +1 ms] > Task :integration_test:processDebugManifest UP-TO-DATE
[   +2 ms] > Task :app:processDebugMainManifest UP-TO-DATE
[   +2 ms] > Task :app:processDebugManifest UP-TO-DATE
[   +1 ms] > Task :app:processDebugManifestForPackage UP-TO-DATE
[   +1 ms] > Task :integration_test:compileDebugLibraryResources UP-TO-DATE
[   +2 ms] > Task :integration_test:parseDebugLocalResources UP-TO-DATE
[ +145 ms] > Task :integration_test:generateDebugRFile UP-TO-DATE
[   +5 ms] > Task :app:processDebugResources UP-TO-DATE
[   +2 ms] > Task :integration_test:generateDebugBuildConfig UP-TO-DATE
[   +1 ms] > Task :integration_test:javaPreCompileDebug UP-TO-DATE
00:29 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [ +305 ms] > Task :integration_test:compileDebugJavaWithJavac UP-TO-DATE
[   +3 ms] > Task :integration_test:bundleLibCompileToJarDebug UP-TO-DATE
[ +883 ms] > Task :app:compileDebugKotlin UP-TO-DATE
[   +4 ms] > Task :app:javaPreCompileDebug UP-TO-DATE
[   +1 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[   +2 ms] > Task :app:compileDebugSources UP-TO-DATE
[ +382 ms] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[   +2 ms] > Task :app:processDebugJavaRes NO-SOURCE
[ +151 ms] > Task :integration_test:processDebugJavaRes NO-SOURCE
00:30 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [ +105 ms] > Task :integration_test:bundleLibResDebug NO-SOURCE
[ +145 ms] > Task :app:mergeDebugJavaResource UP-TO-DATE
[ +120 ms] > Task :integration_test:bundleLibRuntimeToJarDebug UP-TO-DATE
[  +14 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[  +87 ms] > Task :app:dexBuilderDebug UP-TO-DATE
[  +18 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[  +70 ms] > Task :app:mergeExtDexDebug UP-TO-DATE
[  +44 ms] > Task :app:mergeDexDebug UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[  +30 ms] > Task :integration_test:mergeDebugJniLibFolders UP-TO-DATE
[   +1 ms] > Task :integration_test:mergeDebugNativeLibs NO-SOURCE
[  +12 ms] > Task :integration_test:stripDebugDebugSymbols NO-SOURCE
[   +2 ms] > Task :integration_test:copyDebugJniLibsProjectOnly UP-TO-DATE
[   +3 ms] > Task :app:mergeDebugNativeLibs UP-TO-DATE
00:31 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [   +2 ms] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[   +1 ms] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :integration_test:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
[        ] > Task :integration_test:extractDebugAnnotations UP-TO-DATE
[   +1 ms] > Task :integration_test:mergeDebugGeneratedProguardFiles UP-TO-DATE
[  +11 ms] > Task :integration_test:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +3 ms] > Task :integration_test:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :integration_test:mergeDebugJavaResource UP-TO-DATE
[   +1 ms] > Task :integration_test:syncDebugLibJars UP-TO-DATE
[        ] > Task :integration_test:bundleDebugAar UP-TO-DATE
[   +1 ms] > Task :integration_test:compileDebugSources UP-TO-DATE
[   +1 ms] > Task :integration_test:assembleDebug UP-TO-DATE
[ +602 ms] > Task :app:compressDebugAssets
00:33 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [+2223 ms] > Task :app:packageDebug
00:34 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [ +558 ms] > Task :app:assembleDebug
[   +2 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[   +1 ms] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[   +2 ms] BUILD SUCCESSFUL in 33s
[   +1 ms] 57 actionable tasks: 7 executed, 50 up-to-date
00:35 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [ +527 ms] Running Gradle task 'assembleDebug'... (completed in 34.7s)
[  +88 ms] calculateSha: LocalDirectory: 'C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\build\app\outputs\flutter-apk'/app.apk
[ +994 ms] √  Built build\app\outputs\flutter-apk\app-debug.apk.
[   +9 ms] executing: C:\Users\***\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree C:\Users\***\Google
Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +29 ms] Exit code 0 from: C:\Users\***\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree C:\Users\***\Google
Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +2 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1f
               A: android:compileSdkVersionCodename(0x01010573)="12" (Raw: "12")
               A: package="com.example.bug_mwe" (Raw: "com.example.bug_mwe")
               A: platformBuildVersionCode=(type 0x10)0x1f
               A: platformBuildVersionName=(type 0x10)0xc
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1f
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="bug_mwe" (Raw: "bug_mwe")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="android.app.Application" (Raw: "android.app.Application")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=22)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.bug_mwe.MainActivity" (Raw: "com.example.bug_mwe.MainActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=37)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: intent-filter (line=41)
                     E: action (line=42)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=44)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=51)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: uses-library (line=55)
                   A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions")
                   A: android:required(0x0101028e)=(type 0x12)0x0
                 E: uses-library (line=58)
                   A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar")
                   A: android:required(0x0101028e)=(type 0x12)0x0
[  +10 ms] Stopping app 'app.apk' on MI 5.
[   +1 ms] executing: C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe -s dd196c4b shell am force-stop com.example.bug_mwe
00:36 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [ +161 ms] executing: C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe -s dd196c4b shell pm list packages com.example.bug_mwe
00:37 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [+1246 ms] Installing APK.
[   +3 ms] Installing build\app\outputs\flutter-apk\app.apk...
[   +1 ms] executing: C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe -s dd196c4b install -t -r C:\Users\***\Google
Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\build\app\outputs\flutter-apk\app.apk
00:55 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [+17446 ms] Performing Streamed Install
                     Success
[   +1 ms] Installing build\app\outputs\flutter-apk\app.apk... (completed in 17.4s)
[   +2 ms] executing: C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe -s dd196c4b shell echo -n 5e1bb5a9a89eb499f6f804c9cb40fc98586c739e > /data/local/tmp/sky.com.example.bug_mwe.sha1
[  +95 ms] executing: C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe -s dd196c4b shell -x logcat -v time -t 1
[ +385 ms] --------- beginning of system
                    03-22 23:03:40.348 I/Telecom ( 1527): DefaultDialerCache: Refreshing default dialer for user 0: now com.android.contacts: DDC.oR@FlU
[  +13 ms] executing: C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe -s dd196c4b shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-dart-profiling true --ez
enable-checked-mode true --ez verify-entry-points true com.example.bug_mwe/com.example.bug_mwe.MainActivity
[ +323 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.bug_mwe/.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
00:58 +0: loading C:\Users\***\Google Drive\Projects\language-number-listening\***\bug-mwe\bug_mwe\integration_test\app_test.dart                                                        [+2135 ms] Observatory URL on device: http://127.0.0.1:44803/8giOriSy2zI=/
[   +3 ms] executing: C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe -s dd196c4b forward tcp:0 tcp:44803
[  +37 ms] 64936
[        ] Forwarded host port 64936 to device port 44803 for Observatory
[   +8 ms] test 0: Connecting to vm service
[  +11 ms] test 0: Observatory uri is available at http://127.0.0.1:64936/8giOriSy2zI=/
[ +559 ms] test 0: Finding the correct isolate with the integration test service extension
[ +286 ms] test 0: connected to test device, now awaiting test result
[   +2 ms] test 0: Waiting for test harness or tests to finish
01:13 +0: Bottom sheet test
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure was thrown running a test:
Expected: exactly one matching node in the widget tree
  Actual: _TextFinder:<zero widgets with text "3" (ignoring offstage widgets)>
   Which: means none were found but one was expected

When the exception was thrown, this was the stack:
#4      main.<anonymous closure> (file:///C:/Users/***/Google%20Drive/Projects/language-number-listening/***/bug-mwe/bug_mwe/integration_test/app_test.dart:36:7)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)

This was caught by the test expectation on the following line:
  file:///C:/Users/***/Google%20Drive/Projects/language-number-listening/***/bug-mwe/bug_mwe/integration_test/app_test.dart line 36
The test description was:
  Bottom sheet test
════════════════════════════════════════════════════════════════════════════════════════════════════
01:13 +0 -1: Bottom sheet test [E]
  Test failed. See exception logs above.
  The test description was: Bottom sheet test
  
01:13 +0 -1: (tearDownAll)                                                                                                                                                                                     [+14702 ms] test 0: Test harness is no longer needed by test process
[   +1 ms] test 0: finished
[        ] test 0: cleaning up...
[   +1 ms] test 0: ensuring test device is terminated.
[   +1 ms] executing: C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe -s dd196c4b shell am force-stop com.example.bug_mwe
[   +2 ms] test 0: Test process is no longer needed by test harness
[ +205 ms] executing: C:\Users\***\AppData\Local\Android\sdk\platform-tools\adb.exe -s dd196c4b uninstall com.example.bug_mwe
01:14 +0 -1: (tearDownAll)                                                                                                                                                                                     [ +996 ms] Success
[   +2 ms] test 0: deleting temporary directory
[   +2 ms] test 0: finished
01:14 +0 -1: Some tests failed.
[  +21 ms] test package returned with exit code 1
[   +3 ms] "flutter test" took 76,889ms.
[   +7 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      TestCommand.runCommand (package:flutter_tools/src/commands/test.dart:472:7)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>


[  +88 ms] ensureAnalyticsSent: 78ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[   +1 ms] exiting with code 1
```

```
$ flutter analyze
Analyzing bug_mwe...                                                    
No issues found! (ran in 17.9s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
$ flutter doctor -v
[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19044.1586], locale en-GB)
    • Flutter version 2.10.3 at C:\Users\***\Software\flutter_windows_2.2.2-stable\flutter        
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7e9793dee1 (3 weeks ago), 2022-03-02 11:23:12 -0600
    • Engine revision bd539267b4
    • Dart version 2.16.1
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\***\AppData\Local\Android\sdk
    • Platform android-31, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\***\AppData\Local\Android\sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java      
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)   
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.9)      
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32106.194
    • Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 4.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter       
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[√] VS Code (version 1.65.2)
    • VS Code at C:\Users\***\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.36.0

[√] Connected device (4 available)
    • MI 5 (mobile)     • dd196c4b • android-arm64  • Android 8.0.0 (API 26)
    • Windows (desktop) • windows  • windows-x64    • Microsoft Windows [Version 10.0.19044.1586]
    • Chrome (web)      • chrome   • web-javascript • Google Chrome 99.0.4844.74
    • Edge (web)        • edge     • web-javascript • Microsoft Edge 99.0.1150.46

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>