image_picker_e2e_test.dart 559 B

123456789101112131415
  1. // Copyright 2019, the Chromium project authors. Please see the AUTHORS file
  2. // for details. All rights reserved. Use of this source code is governed by a
  3. // BSD-style license that can be found in the LICENSE file.
  4. import 'dart:async';
  5. import 'dart:io';
  6. import 'package:flutter_driver/flutter_driver.dart';
  7. Future<void> main() async {
  8. final FlutterDriver driver = await FlutterDriver.connect();
  9. final String result =
  10. await driver.requestData(null, timeout: const Duration(minutes: 1));
  11. await driver.close();
  12. exit(result == 'pass' ? 0 : 1);
  13. }