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
0
votes
0 answers

Looking up a deactivated widget's ancestor is unsafe.Flutter integaration test

type here iam new to flutter and trying to learn test integration test package and i have come around this error. The following assertion was thrown while finalizing the widget tree: Looking up a deactivated widget's ancestor is unsafe. At this…
0
votes
0 answers

Getting java.lang.OutOfMemoryError while running app:connectedAndroidTest to execute flutter integration tests

Error details below Execution optimizations have been disabled for task ':app:compressDevelopmentDebugAssets' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location:…
0
votes
0 answers

Flutter web typeahead integration test A call to tap() with finder that would not hit test on the specified widget

I have been working on writing integration tests for my flutter web and I reach to a part where I need to write integration test for typeahead fields. But as soon as the integration test driver types something in typeahead, I can see the UI…
0
votes
1 answer

Quit Flutter integration tests

I have made an integration test for my flutter project based on this documentation which looks like this: void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group('end-to-end test', () { testWidgets('tap on the floating…
Niels
  • 1,366
  • 15
  • 21
0
votes
0 answers

What the right way of launching app in integration test?

I'm using the flutter integration driver for flutter mobile automation. In this regard, I want to understand the recommended approach of calling app.main in the integration test. Let's take two below examples: //imports void main() { …
Jagadeesh
  • 358
  • 5
  • 17
0
votes
0 answers

How to differentiate the tests as sanity, regression with annotations in flutter integration test

I'm using google flutter integration driver to automate the mobile flutter apps. The way we do differentiate the test suites as sanity, regression by tagging annotations in espresso, testNG, etc. Is there any way in flutter integration tests to…
Jagadeesh
  • 358
  • 5
  • 17
0
votes
1 answer

Flutter integration test: expect method dosen't work properly

I want to test Login page in Flutter integration test, expect still at Login page when enter invalid data, and move to Dashboard page when enter valid data. But the expect method doesn't run as expected, as the test pass even any unexpected…
Tarek
  • 146
  • 3
  • 15
0
votes
1 answer

How to assert if specific text is visible on the screen in the loop?

I want to select a specific date of birth on the calendar but, firstly I have to assert which date is now, and then tap in the loop until the particular month (September) on the calendar is visible. The challenge is I cannot use expect(actual,…
wojnarto
  • 411
  • 4
  • 9
0
votes
0 answers

How to select radio button in flutter integration test

I am trying to select radio in my flutter integration test. Here is my test.dart code. I do not get any error on running this lines, however the radio button do not get selected. final roleRadioBtn = find.byKey(const ValueKey('rbRole')).at(2); await…
0
votes
0 answers

Flutter - run shell scrips before integration test

I'm trying to run a shell script that I build in the middle of the integration test that I build in flutter. I tried to use Process.run and also process_run. I believe that I write it wrong.. await…
0
votes
1 answer

Flutter: Can't click listview item on integration test

I have an app with a listview feature with provider pattern, and it has 5 items of data. Here is my snippet code ListView.builder( key: Key("listview_portfolio"), itemBuilder: (context, index) => …
0
votes
0 answers

Can't load asset on flutter integration test

I am writing a integration test in my flutter app, it works if I run app. But when I run integration test class, it seems failed to load json file from asset. This is my integration test file void main() { …
Ahmed Yusuf
  • 359
  • 3
  • 14
0
votes
1 answer

Handling webpages using flutter integration test driver

I am working on automating the flutter app. I have a web breakout where I have to enter the username and password and then have to click the submit button. Then it would be redirected to the Home Page which is build using flutter. While automating…
0
votes
1 answer

Flutter print tests results in a .md file

I am trying to understand and do research in order to find if it is possible to print the results of Flutter tests (integration/widget/unit) in a .md file. Until now my research has not yielded many results. Does anyone have any more information or…
0
votes
1 answer

How to get flutter web integration test failure result on terminal

Please can someone tell me how do we get flutter web integration test failure details on the terminal.