Questions tagged [flutter-integration-test]

Use this tag for questions about the Flutter integration_test package, used to write and run integration tests (end-to-end/GUI tests).

137 questions
1
vote
0 answers

Flutter integration_test: How to simulate mouse wheel scroll operation over `SingleChildScrollView` Widget?

Implementing some integration_test for flutter-web application wherein I'm trying to simulate mouse wheel scroll operation , I have SingleChildScrollView widget with series of Container in it...trying to scroll to end of the list? I've tried the…
Rajesh Patil
  • 181
  • 2
  • 10
1
vote
0 answers

Flutter Integration Test - import local dart file

I'm writing some flutter integration tests that I want to run utilising flutter drive to see them in action. The tests work as expected when running good old flutter test. I'm trying to run the very same tests using flutter drive, where they worked…
Lloyd Powell
  • 18,270
  • 17
  • 87
  • 123
1
vote
1 answer

Integration test `enterText` method not working on profile or release mode

Test passes in debug mode but not in profile or release mode. It does not enter text when calling enterText even if the input has focus. In debug mode it enters the text without problems.
croxx5f
  • 5,163
  • 2
  • 15
  • 36
1
vote
2 answers

Flutter Integration test failed when using tester.enterText more than 2 times

If I run this code snippet: await tester.enterText( find.byKey(Key('titleControlKey')), 'Sample Account 1'); await tester.enterText(find.byKey(Key('usernameControlKey')), 'username1'); or this one: await tester.enterText( …
noyruto88
  • 767
  • 2
  • 18
  • 40
1
vote
1 answer

Flutter integration_test: How to simulate keyboard action to clear text from TextField()?

Implementing some integration_test for flutter-web application wherein I'm trying to simulate keyboard action to clear the content of the TextField(). Like we have for "Done" like: await tester.testTextInput.receiveAction(TextInputAction.done); Any…
1
vote
2 answers

why can't the widget finder in my integration test find a widget after my test successfully signs into my flutter app?

I am trying to write some integration tests that start off with a login attempt then proceeds to navigate the app a bit to a certain page. The attempt to sign in actually succeeds but after that my attempts to find any widgets fails so I cannot…
lost baby
  • 3,178
  • 4
  • 32
  • 53
1
vote
1 answer

PlatformException, Invalid Argument after trying to mock file_picker for integration test, Flutter

I already use file_picker in my apps, and now I create an integration test. I've been looking for a way to mock file_picker or dependencies, and this is the result: import 'dart:io'; import 'dart:typed_data'; import…
1
vote
0 answers

Flutter integration test does not work with Firefox

Hi I have a problem running flutter drive with geckodriver (my sys macos with M1) The command that I'm using: flutter drive \ --driver=test_driver/integration_test.dart \ --target=integration_test/app_test.dart \ -d web-server…
1
vote
1 answer

Flutter dependency error - Version Solving failed

I'm trying out integration testing for my app. When I am trying to add the integration_test dependency to my pubspec.yaml I'm getting this error: Because no versions of uuid match >2.2.2 <3.0.0 and uuid 2.2.2 depends on crypto ^2.0.0, uuid ^2.2.2…
1
vote
0 answers

Flutter integration_test - initialising and disposing dependencies

I’m initializing the app like void main() async { await Initializer.init(); runApp(MyApp()); } Initializer.init() initializes all dependencies like Firebase Analytics and register things like Hive TypeAdapters. My sample tests look like: void…
jakub
  • 3,576
  • 3
  • 29
  • 55
1
vote
1 answer

Dependency issue when adding integration test flutter package

I am trying to add the following package to pubspec.yml: integration_test: ^1.0.1 And when I execute flutter pub get command the following is printed in the output terminal: Because no versions of uuid match >3.0.4 <4.0.0 and uuid 3.0.4 depends on…
1
vote
0 answers

Flutter integration tests for iOS

I have followed documentation from https://github.com/flutter/flutter/tree/master/packages/integration_test#ios-device-testing to set up Flutter integration tests for iOS on Firebase Test Lab. However I’m stuck and get various errors when running…
1
vote
0 answers

Flutter IntegrationTest OAuth Login with Chrome Tab

I have to write a flutter integration test, which needs to perform a login to my app. The login is an external website (using a chrome tab). How can I enter the login credentials on the chrome tab? Right now, it looks like the integration test API…
Christopher
  • 9,682
  • 7
  • 47
  • 76
0
votes
0 answers

Devices work but integration tests say "The following devices were found, but are not supported by this project"

I've been running my project for months on physical devices and the emulator. I just went to run my first integration test for this project by running flutter test integration_test and the CLI returned The following devices were found, but are not…
buttonsrtoys
  • 2,359
  • 3
  • 32
  • 52
0
votes
0 answers

flutter integration tests: Test app restart behavior

I have a flutter app and I am writing integraiton tests. I want to test the behavior of the app when it is restarted (basically I want to test, that the app properly re-login on restart). Is there any way to do this in flutter integration tests?
Nathan
  • 7,099
  • 14
  • 61
  • 125