Reland: Skia gold driver test#50160
Conversation
|
/cc @Piinks |
Do you mean for the roll? |
|
I have three main concerns on this.
Discussed with @blasten just now. To resolve 2 and 3, we could split I would also suggest that we think about issue 1 as well. We could, maybe add another entrypoint to make it clearer about the limitation, or move the requirement to somewhere more contained and less depended on, like |
|
@chingjun thanks for the suggestion. Thinking this through, it makes sense to just change the |
This reverts commit 9b3e163.
9deabe6 to
91c599f
Compare
|
PTAL |
8495070 to
caca404
Compare
| // https://github.com/flutter/flutter/issues/49837 | ||
| await expectLater( | ||
| driver.screenshot(), | ||
| bufferMatchesGoldenFile('red_square_driver_screenshot__$deviceModel.png'), |
There was a problem hiding this comment.
I was wondering as I've been working on #49815, is there anything in the environment that indicates this is a driver test? Or what device it is running on?
There was a problem hiding this comment.
Not in the environment, unfortunately.
enableFlutterDriverExtension() has an assert WidgetsBinding.instance is _DriverBinding. Maybe we could make _DriverBinding public.
cc @jonahwilliams do you have any suggestions?
There was a problem hiding this comment.
Maybe we can just provide a flag then, or include something in the file name. When we get down to the skia client I would like to specify in the parameters that this is a device test and/or the device it is running on, but it may not be necessary.
https://github.com/flutter/flutter/pull/49815/files#r376168906
There was a problem hiding this comment.
The test is always under a test_driver directory. Potentially that could be the heuristic.

Re-land for #49905.
The solution is to add
import 'package:flutter_test/src/_goldens_web.dart';to_scuba_test_config_web.dart.