From fc03804505746be1c956dc018b84ce2aabc5937d Mon Sep 17 00:00:00 2001 From: Maurice McCabe Date: Wed, 17 Jul 2019 09:51:38 -0700 Subject: [PATCH] Added orientation to README --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 563b9760..188a736e 100644 --- a/README.md +++ b/README.md @@ -145,23 +145,18 @@ _Screenshots_ uses a configuration file to configure a run. The default config filename is `screenshots.yaml`: ````yaml # A list of screen capture tests +# Note: flutter driver expects a pair of files eg, main1.dart and main1_test.dart tests: - test_driver/main1.dart - test_driver/main2.dart -# Note: flutter driver expects a pair of files for testing -# For example: -# main1.dart is the test app (that calls your app) -# main1_test.dart is the matching test that flutter driver -# expects to find. - # Interim location of screenshots from tests staging: /tmp/screenshots # A list of locales supported by the app locales: - - de-DE - en-US + - de-DE # A map of devices to emulate devices: @@ -169,6 +164,7 @@ devices: iPhone XS Max: frame: false iPad Pro (12.9-inch) (3rd generation): + orientation: LandscapeRight android: Nexus 6P: @@ -182,6 +178,8 @@ Individual devices can be configured in `screenshots.yaml` by specifying per dev | Parameter | Values | Required | Description | | --- | --- | --- | --- | |frame|true/false|optional|Controls whether screenshots generated on the device should be placed in a frame. Overrides the global frame setting (see example `screenshots.yaml` above). +|orientation|Portrait \| LandscapeRight \| PortraitUpsideDown \| LandscapeLeft|optional|Controls orientation of device during test. Currently disables framing resulting in a raw screenshot. Ignored for real devices. + Note: images generated for those devices where framing is disabled are probably not suitable for upload, but can be used for local review.