Stage 6 행성에 자기장 라인이 행성을 감싸며 바깥으로 번지는 연출
This commit is contained in:
@@ -182,4 +182,22 @@ void main() {
|
||||
await tester.pump(const Duration(seconds: 3));
|
||||
});
|
||||
});
|
||||
|
||||
testWidgets('Stage 6 은 자기장 라인이 행성을 감싼다(Figma 2024:20821) · Stage 5 는 없다', (tester) async {
|
||||
Future<void> pumpStage(int stage) => tester.pumpWidget(
|
||||
MaterialApp(
|
||||
home: Center(
|
||||
child: Planet25D(
|
||||
image: 'assets/figma/planet-home.png',
|
||||
size: 200,
|
||||
stage: stage,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
await pumpStage(6);
|
||||
expect(find.byKey(const ValueKey('planet-field-lines')), findsOneWidget);
|
||||
await pumpStage(5);
|
||||
expect(find.byKey(const ValueKey('planet-field-lines')), findsNothing);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user