diff --git a/test/game/components/plunger_test.dart b/test/game/components/plunger_test.dart index 2a49ae2d..f54066f8 100644 --- a/test/game/components/plunger_test.dart +++ b/test/game/components/plunger_test.dart @@ -12,11 +12,31 @@ import '../../helpers/helpers.dart'; void main() { TestWidgetsFlutterBinding.ensureInitialized(); - final flameTester = FlameTester(Forge2DGame.new); + final flameTester = FlameTester(TestGame.new); group('Plunger', () { const compressionDistance = 0.0; + flameTester.testGameWidget( + 'renders correctly', + setUp: (game, tester) async { + await game.add( + Plunger( + compressionDistance: compressionDistance, + ), + ); + await game.ready(); + game.camera.followVector2(Vector2.zero()); + game.camera.zoom = 4.1; + }, + // verify: (game, tester) async { + // await expectLater( + // find.byGame(), + // matchesGoldenFile('golden/plunger.png'), + // ); + // }, + ); + flameTester.test( 'loads correctly', (game) async {