File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
test_goldens/scene_types/film_strip Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change
1
+ import 'package:flutter/cupertino.dart' ;
2
+ import 'package:flutter/material.dart' ;
1
3
import 'package:flutter_test/flutter_test.dart' ;
2
4
import 'package:flutter_test_goldens/flutter_test_goldens.dart' ;
3
5
4
6
void main () {
5
7
group ("Film strips >" , () {
6
8
testGoldenScene ("hello world" , (tester) async {
7
- //
9
+ await FilmStrip (
10
+ "Hello, Film Strip!" ,
11
+ fileName: "hello_film_strip" ,
12
+ layout: ColumnSceneLayout (),
13
+ )
14
+ .setupWithWidget (
15
+ Padding (
16
+ padding: const EdgeInsets .all (24 ),
17
+ child: ElevatedButton (
18
+ onPressed: () {},
19
+ child: Text ("Click Me!" ),
20
+ ),
21
+ ),
22
+ )
23
+ .takePhoto ("Idle" )
24
+ .hoverOver (find.byType (ElevatedButton ))
25
+ .takePhoto ("Hovering" )
26
+ .pressHover ()
27
+ .takePhoto ("Pressed" )
28
+ .run (tester);
8
29
});
9
30
});
10
31
}
You can’t perform that action at this time.
0 commit comments