Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
26 views1 page

Share E2e.dart

The document tests sharing functionality in Flutter by launching the share dialog and asserting that sharing completes successfully when passing a message and title.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views1 page

Share E2e.dart

The document tests sharing functionality in Flutter by launching the share dialog and asserting that sharing completes successfully when passing a message and title.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

// Copyright 2019, the Chromium project authors.

Please see the AUTHORS file


// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:flutter_test/flutter_test.dart';
import 'package:share/share.dart';
import 'package:e2e/e2e.dart';

void main() {
E2EWidgetsFlutterBinding.ensureInitialized();

testWidgets('Can launch share', (WidgetTester tester) async {


expect(Share.share('message', subject: 'title'), completes);
});
}

You might also like