blob: 6f32322248e47617021d8dd82b77f405a2c1531a [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 iOS platform when running on iOS device',
(WidgetTester tester) async {
await tester.pumpAndSettle();
final Finder macOSFinder = find.byKey(const Key('macOSKey'));
expect(macOSFinder, findsNothing);
final Finder iOSFinder = find.byKey(const Key('iOSKey'));
expect(iOSFinder, findsOneWidget);
final Finder androidFinder = find.byKey(const Key('androidKey'));
expect(androidFinder, findsNothing);