Require an earned rewarded ad for every puzzle hint

This commit is contained in:
Hadrian Burkhardt
2026-11-02 06:14:48 +01:00
parent 4887eca6d4
commit 010b90bef5
6 changed files with 158 additions and 38 deletions
+2 -2
View File
@@ -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,
+1 -1
View File
@@ -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');