You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/testing_app/test_driver/e2e_test.dart

22 lines
748 B

// Copyright 2020 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:e2e/e2e_driver.dart' as driver;
Future<void> main() => driver.e2eDriver(responseDataCallback: (data) async {
await driver.writeResponseData(
data['scrolling'] as Map<String, dynamic>,
// This result is saved to `build/scrolling.json`.
testOutputFilename: 'scrolling',
);
await driver.writeResponseData(
data['favorites_operations'] as Map<String, dynamic>,
// This result is saved to `build/favorites_operations.json`.
testOutputFilename: 'favorites_operations',
);
});