mirrored_repositories/flutter_bytes_devops/code_infrastructure/logging_demo
// Copyright 2023 Fredrick Allan Grott. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// This is an example Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
//
// Visit https://flutter.dev/docs/cookbook/testing/widget/introduction for
// more information about Widget testing.

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
  group(
    'MyWidget',
    () {
      testWidgets(
        'should display a string of text',
        (WidgetTester tester) async {
          // Define a Widget
          const myWidget = MaterialApp(
            home: Scaffold(
              body: Text('Hello'),
            ),
          );

          // Build myWidget and trigger a frame.
          await tester.pumpWidget(myWidget);

          // Verify myWidget shows some text
          expect(
            find.byType(Text),
            findsOneWidget,
          );
        },
      );
    },
  );
}
