Skip to content

Commit 963c7ec

Browse files
Added film strip hello world golden test
1 parent 0ae5474 commit 963c7ec

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed
11.5 KB
Loading
Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,31 @@
1+
import 'package:flutter/cupertino.dart';
2+
import 'package:flutter/material.dart';
13
import 'package:flutter_test/flutter_test.dart';
24
import 'package:flutter_test_goldens/flutter_test_goldens.dart';
35

46
void main() {
57
group("Film strips >", () {
68
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);
829
});
930
});
1031
}

0 commit comments

Comments
 (0)