Wait for the driver test to settle before collecting screenshots (#10916)

This commit is contained in:
Hans Muller
2017-06-22 16:46:35 -07:00
committed by GitHub
parent b55441a027
commit da4950cf18

View File

@@ -22,6 +22,7 @@ void main() {
final List<String> paths = <String>[
@(paths)
];
await driver.waitUntilNoTransientCallbacks();
for (String path in paths) {
final List<int> pixels = await driver.screenshot();
final File file = new File(path);