blob: c996a319200c8120ec40befd5a90764fa93abc95 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. 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:regular_integration_tests/target_platform_main.dart' as app;
import 'package:flutter/material.dart';
import 'package:e2e/e2e.dart';
void main() {
E2EWidgetsFlutterBinding.ensureInitialized() as E2EWidgetsFlutterBinding;
testWidgets('Should detect MacOS platform when running on MacOS',
(WidgetTester tester) async {
await tester.pumpAndSettle();
final Finder macOSFinder = find.byKey(const Key('macOSKey'));
expect(macOSFinder, findsOneWidget);
final Finder iOSFinder = find.byKey(const Key('iOSKey'));
expect(iOSFinder, findsNothing);
final Finder androidFinder = find.byKey(const Key('androidKey'));
expect(androidFinder, findsNothing);