From d69dbf66f66247b6fb0946f15323cd3e9ef94ae0 Mon Sep 17 00:00:00 2001 From: Alvaro Almeida Freire Stivi Date: Wed, 3 Jul 2024 16:21:35 +0000 Subject: [PATCH] Fixes some of the animatronic tests --- .../test/src/components/dash_animatronic_test.dart | 2 ++ .../test/src/components/sparky_animatronic_test.dart | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/pinball_components/test/src/components/dash_animatronic_test.dart b/packages/pinball_components/test/src/components/dash_animatronic_test.dart index 3d3496e7..306d798b 100644 --- a/packages/pinball_components/test/src/components/dash_animatronic_test.dart +++ b/packages/pinball_components/test/src/components/dash_animatronic_test.dart @@ -68,11 +68,13 @@ void main() { flameTester.testGameWidget( 'adds new children', setUp: (game, _) async { + await game.onLoad(); final component = Component(); final dashAnimatronic = DashAnimatronic( children: [component], ); await game.ensureAdd(dashAnimatronic); + await game.ready(); }, verify: (game, _) async { final dashAnimatronic = diff --git a/packages/pinball_components/test/src/components/sparky_animatronic_test.dart b/packages/pinball_components/test/src/components/sparky_animatronic_test.dart index 3b00ee22..709aeac0 100644 --- a/packages/pinball_components/test/src/components/sparky_animatronic_test.dart +++ b/packages/pinball_components/test/src/components/sparky_animatronic_test.dart @@ -70,11 +70,13 @@ void main() { flameTester.testGameWidget( 'adds new children', setUp: (game, _) async { + await game.onLoad(); final component = Component(); final sparkyAnimatronic = SparkyAnimatronic( children: [component], ); await game.ensureAdd(sparkyAnimatronic); + await game.ready(); }, verify: (game, _) async { final sparkyAnimatronic =