@@ -10,6 +10,9 @@ import 'package:flutter_test/flutter_test.dart';
1010import '../../../../test_infra/matchers/matchers.dart' ;
1111
1212void main () {
13+ const relativeGoldenPath =
14+ '../../../../test_infra/goldens/inspector_v2/layout_explorer/flex' ;
15+
1316 group ('Arrow Golden Tests' , () {
1417 group ('Unidirectional' , () {
1518 Widget buildUnidirectionalArrowWrapper (ArrowType type) => Directionality (
@@ -30,31 +33,31 @@ void main() {
3033 await tester.pumpWidget (widget);
3134 await expectLater (
3235 find.byWidget (widget),
33- matchesDevToolsGolden ('goldens /arrow_unidirectional_left.png' ),
36+ matchesDevToolsGolden ('$ relativeGoldenPath /arrow_unidirectional_left.png' ),
3437 );
3538 }, skip: kIsWeb);
3639 testWidgets ('up' , (WidgetTester tester) async {
3740 final widget = buildUnidirectionalArrowWrapper (ArrowType .up);
3841 await tester.pumpWidget (widget);
3942 await expectLater (
4043 find.byWidget (widget),
41- matchesDevToolsGolden ('goldens /arrow_unidirectional_up.png' ),
44+ matchesDevToolsGolden ('$ relativeGoldenPath /arrow_unidirectional_up.png' ),
4245 );
4346 }, skip: kIsWeb);
4447 testWidgets ('right' , (WidgetTester tester) async {
4548 final widget = buildUnidirectionalArrowWrapper (ArrowType .right);
4649 await tester.pumpWidget (widget);
4750 await expectLater (
4851 find.byWidget (widget),
49- matchesDevToolsGolden ('goldens /arrow_unidirectional_right.png' ),
52+ matchesDevToolsGolden ('$ relativeGoldenPath /arrow_unidirectional_right.png' ),
5053 );
5154 }, skip: kIsWeb);
5255 testWidgets ('down' , (WidgetTester tester) async {
5356 final widget = buildUnidirectionalArrowWrapper (ArrowType .down);
5457 await tester.pumpWidget (widget);
5558 await expectLater (
5659 find.byWidget (widget),
57- matchesDevToolsGolden ('goldens /arrow_unidirectional_down.png' ),
60+ matchesDevToolsGolden ('$ relativeGoldenPath /arrow_unidirectional_down.png' ),
5861 );
5962 }, skip: kIsWeb);
6063 });
@@ -78,15 +81,15 @@ void main() {
7881 await tester.pumpWidget (widget);
7982 await expectLater (
8083 find.byWidget (widget),
81- matchesDevToolsGolden ('goldens /arrow_bidirectional_horizontal.png' ),
84+ matchesDevToolsGolden ('$ relativeGoldenPath /arrow_bidirectional_horizontal.png' ),
8285 );
8386 }, skip: kIsWeb);
8487 testWidgets ('vertical' , (WidgetTester tester) async {
8588 final widget = buildBidirectionalArrowWrapper (Axis .vertical);
8689 await tester.pumpWidget (widget);
8790 await expectLater (
8891 find.byWidget (widget),
89- matchesDevToolsGolden ('goldens /arrow_bidirectional_vertical.png' ),
92+ matchesDevToolsGolden ('$ relativeGoldenPath /arrow_bidirectional_vertical.png' ),
9093 );
9194 }, skip: kIsWeb);
9295 });
0 commit comments