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

import 'package:design_system/design_system.dart';

void main() {
  group('KcStatusChip', () {
    testWidgets('renders label text', (WidgetTester tester) async {
      await tester.pumpWidget(
        const MaterialApp(
          home: Scaffold(
            body: KcStatusChip(label: 'Active', background: Colors.green, foreground: Colors.white),
          ),
        ),
      );

      expect(find.text('Active'), findsOneWidget);
    });
  });

  group('KcCard', () {
    testWidgets('renders child widget', (WidgetTester tester) async {
      await tester.pumpWidget(
        const MaterialApp(
          home: Scaffold(body: KcCard(child: Text('Hello'))),
        ),
      );

      expect(find.text('Hello'), findsOneWidget);
    });
  });

  group('buildKcTheme', () {
    test('returns a ThemeData', () {
      final theme = buildKcTheme();
      expect(theme, isA<ThemeData>());
    });
  });
}
