driver: screenshot fixes
This commit is contained in:
parent
bf99f751bb
commit
6c055dd24c
3 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue