flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
166.24k stars 27.5k forks source link

Flutter drive --browser-dimension not working #136109

Open hoantruong opened 1 year ago

hoantruong commented 1 year ago

Is there an existing issue for this?

Steps to reproduce

I am trying to run flutter web test on Chrome, with the following command:

flutter drive \
  --driver=test_driver/integration_test.dart \
  --target=integration_test/main_test.dart > C:\Automation_test\Report_log\log.txt \
  --browser-dimension="1920,1080" \
  -d chrome

Expected results

The browser is resized to 1920 x 1080 when start.

Actual results

The browser is NOT resized to 1920 x 1080 when start.

Code sample

Code sample ```dart [Paste your code here] ```

Screenshots or Video

Screenshots / Video demonstration [Upload media here]

Logs

Logs ```console [Paste your logs here] ```

Flutter Doctor output

Doctor output ```console [Paste your output here] ```
darshankawar commented 1 year ago

Thanks for the report. I verified using a sample app and running using latest versions and observed that passing browser dimension is not taking effect. I tried passing different dimensions, but the browser window size is same:

  1. 1920 x 1080:
Screenshot 2023-10-09 at 1 42 17 PM
  1. 400 x 800:
Screenshot 2023-10-09 at 1 43 44 PM
  1. Without passing --browser-dimension argument:
Screenshot 2023-10-09 at 1 45 14 PM
hoantruong commented 1 year ago

Could you please help to fix this issue soon @darshankawar?

Thanks very much!