問題タブ [flutter-integration-test]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
2 に答える
43 参照

flutter - How to locate multiple widget of same type in widget hierarchy?

I am developing some intregration tests for one of my flutter-web application. I wanted to specifically locate the container(width: 50, height: 50) in the following below widget hierarchy tree considering top to bottom approach. ParentWidget --> Row --> Text, SizedBox, Row --> Container(), Container(width: 50, height: 50), Container(). Note: Without key approach

I tried to locate using descendant of ParentWidget --> Row --> Row --> with index tried to select the 2nd container, but this isn't working, it fails with error "Bad state: No element".

0 投票する
0 に答える
17 参照

flutter - 表示中のエラー: Not found: 'dart:ui' in Flutter integration_test

この問題を解決するにはどうすればよいですか? これで統合テストを実行しています

fvm フラッター ドライブ --driver=integration_test/test_driver/integration_driver.dart --target=integration_test/integration_test.dart --flavor dev flutter doctor

エラー

統合ドライバー ファイル 統合テスト ファイル