flutter_gherkin icon indicating copy to clipboard operation
flutter_gherkin copied to clipboard

Is it possibe to start the the test cases in chrome with a specific screen size?

Open murilodag opened this issue 2 years ago • 2 comments

I would like to run the tests in a specific screen size. I found this link describing how to do it, but it does not seem to work for chrome/chromedrive.

murilodag avatar Sep 07 '22 20:09 murilodag

You can add --browser-dimension to the flutter drive command and set the screen size -

flutter drive --driver=test_driver/integration_test_driver.dart --target=integration_test/gherkin_suite_test.dart -d web-server --no-headless --browser-name=chrome --browser-dimension 1680,1000

umangdivyanshu avatar Sep 08 '22 11:09 umangdivyanshu

@umangdivyanshu Thanks for your answer. It did in fact resize the screen.

Do you know why -d chrome does not allow to respect --browser-dimension flag?

murilodag avatar Sep 15 '22 13:09 murilodag