testing library

For a game's widget tests: move the game on by frames or seconds, and find it on screen.

testWidgets('Play starts a round', (tester) async {
  await tester.pumpWidget(MyApp());
  await tester.tap(find.text('Play'));
  await tester.run(0.5);
  expect(tester.game<MyGame>().round, 1);
});

A game's frames go on for ever, so pumpAndSettle never settles while one is on screen: FynkelTester.frames and FynkelTester.run pump frames of a 60th of a second instead. A game that loads files is waited for with FynkelTester.loaded, and anything else it does that takes files with FynkelTester.until.