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 =