Skip to content

Commit

Permalink
driver: screenshot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
deckerst committed Feb 27, 2025
1 parent bf99f75 commit 6c055dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/widgets/debug/app_debug_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class AppDebugPage extends StatelessWidget {
case AppDebugAction.prepScreenshotCountries:
settings.changeFilterVisibility({
LocationFilter(LocationLevel.country, 'Belgium;BE'),
LocationFilter(LocationLevel.country, 'Croatia;HR'),
}, false);
case AppDebugAction.mediaStoreScanDir:
// scan files copied from test assets
Expand Down
10 changes: 5 additions & 5 deletions scripts/screenshot_post_process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ fi

# expects:
# - ImageMagick 6
# - raw screenshots sized at 1080x2280 in `/screenshots/raw`
# - raw screenshots sized at 1080x2520 (21∶9) in `/screenshots/raw`

DEVICE_OVERLAY_LTR=~/code/aves_extra/screenshots/device_overlay_s10e_ltr_nav_gestures.png
DEVICE_FRAME=~/code/aves_extra/screenshots/device_frame_s10e.png
DEVICE_OVERLAY_LTR=~/code/aves_extra/screenshots/device_overlay_ltr_nav_gestures.png
DEVICE_FRAME=~/code/aves_extra/screenshots/device_frame_1142x2650_for_1080x2520.png
# FRAME_SIZE: dimensions of DEVICE_FRAME
FRAME_SIZE=1142x2410
FRAME_SIZE=1142x2650
# FRAME_OFFSET: offset for content in DEVICE_FRAME
FRAME_OFFSET=31x53
# PLAY_SIZE: contain FRAME_SIZE in 9:16
PLAY_SIZE=1356x2410
PLAY_SIZE=1490x2650

cd screenshots || exit

Expand Down
1 change: 1 addition & 0 deletions test_driver/driver_screenshots_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ void info() {

await driver.scrollY(verticalPageView, -600);
await _selectMapStyle('googleNormal');
await Future.delayed(const Duration(seconds: 1));

await _takeScreenshot(driver, '3');

Expand Down

0 comments on commit 6c055dd

Please sign in to comment.