Require an earned rewarded ad for every puzzle hint
This commit is contained in:
@@ -121,9 +121,9 @@ void main() {
|
||||
greaterThan(tester.view.physicalSize.height),
|
||||
);
|
||||
expect(game.cells, marks);
|
||||
await tester.ensureVisible(find.text('Hint · free'));
|
||||
await tester.ensureVisible(find.text('Hint · rewarded ad'));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('Hint · free').hitTestable(), findsOneWidget);
|
||||
expect(find.text('Hint · rewarded ad').hitTestable(), findsOneWidget);
|
||||
final lastCell = tester.getRect(find.byKey(const ValueKey('cell-48')));
|
||||
expect(
|
||||
lastCell.bottom,
|
||||
|
||||
@@ -81,7 +81,7 @@ void main() {
|
||||
await tap('Next leaf →');
|
||||
expect(g.storyIndex, 2);
|
||||
expect(
|
||||
tester.getBottomRight(find.text('Hint · free')).dy,
|
||||
tester.getBottomRight(find.text('Hint · rewarded ad')).dy,
|
||||
lessThan(tester.getTopLeft(find.text('Contents')).dy),
|
||||
);
|
||||
await shot('03-puzzle');
|
||||
|
||||
Reference in New Issue
Block a user