test: tested Replay overlay

pull/441/head
alestiago 3 years ago
parent 407e623a09
commit f46be09112

@ -307,6 +307,23 @@ void main() {
expect(find.byType(MobileControls), findsOneWidget); expect(find.byType(MobileControls), findsOneWidget);
}); });
testWidgets(
'ReplayButtonOverlay when the overlay is added',
(tester) async {
await tester.pumpApp(
PinballGameView(game),
gameBloc: gameBloc,
startGameBloc: startGameBloc,
);
game.overlays.add(PinballGame.replayButtonOverlay);
await tester.pump();
expect(find.byType(ReplayButtonOverlay), findsOneWidget);
},
);
group('info icon', () { group('info icon', () {
testWidgets('renders on game over', (tester) async { testWidgets('renders on game over', (tester) async {
final gameState = GameState.initial().copyWith( final gameState = GameState.initial().copyWith(

Loading…
Cancel
Save