Skip to content

Commit 9cc46c4

Browse files
committed
Add flutter_driver test.
1 parent 7763799 commit 9cc46c4

File tree

6 files changed

+345
-0
lines changed

6 files changed

+345
-0
lines changed

Diff for: .github/workflows/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ jobs:
9999
if: matrix.platform.cross == false
100100
run: flutter test
101101

102+
- name: Flutter driver tests
103+
if: matrix.platform.cross == false
104+
run: cargo flutter --dart-main test_driver/app.dart --drive run
105+
102106
lint:
103107
runs-on: ubuntu-latest
104108
steps:

Diff for: lib/main.dart

+2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,13 @@ class _MyHomePageState extends State<MyHomePage> {
5555
Text(
5656
'$_counter',
5757
style: Theme.of(context).textTheme.display1,
58+
key: Key('counter'),
5859
),
5960
],
6061
),
6162
),
6263
floatingActionButton: FloatingActionButton(
64+
key: Key('increment'),
6365
onPressed: _incrementCounter,
6466
tooltip: 'Increment',
6567
child: Icon(Icons.add),

0 commit comments

Comments
 (0)