Complete cottage notebook with narration and discovery-only artwork
This commit is contained in:
@@ -19,7 +19,13 @@ void main() {
|
||||
// in reportData at once exhausts the tablet when the driver encodes JSON.
|
||||
const chapter = int.fromEnvironment('ART_CHAPTER', defaultValue: 0);
|
||||
expect(chapter, inInclusiveRange(0, 2));
|
||||
final game = Game(book, Progress.memory({'story_access_level': 11}));
|
||||
final game = Game(
|
||||
book,
|
||||
Progress.memory({
|
||||
'story_access_level': 11,
|
||||
for (var i = 0; i < 12; i++) 'done_story_v1_$i': true,
|
||||
}),
|
||||
);
|
||||
addTearDown(() => SystemChrome.setPreferredOrientations([]));
|
||||
await binding.convertFlutterSurfaceToImage();
|
||||
for (final orientation in [
|
||||
@@ -54,7 +60,11 @@ void main() {
|
||||
'discovery-$index-${orientation.name}-art',
|
||||
);
|
||||
final next = find.text(
|
||||
index == 11 ? 'Return to the notebook' : 'Turn the page →',
|
||||
index < 4
|
||||
? 'Next leaf →'
|
||||
: index == 11
|
||||
? 'Return to the notebook'
|
||||
: 'Turn the page →',
|
||||
);
|
||||
await tester.ensureVisible(next);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
Reference in New Issue
Block a user