| 12345678910111213141516171819202122232425262728 |
- import 'package:cardash_launcher/core/theme/app_theme.dart';
- import 'package:cardash_launcher/data/models/system_status.dart';
- import 'package:cardash_launcher/features/home/widgets/status_cluster.dart';
- import 'package:flutter/material.dart';
- import 'package:flutter_test/flutter_test.dart';
- void main() {
- testWidgets('shows the yellow update dot on the Settings gear', (
- tester,
- ) async {
- await tester.pumpWidget(
- MaterialApp(
- theme: AppTheme.dark(),
- home: Scaffold(
- body: Center(
- child: StatusCluster(
- status: const SystemStatus(batteryLevel: 80, wifi: true),
- showUpdateAvailable: true,
- onOpenSettings: () {},
- ),
- ),
- ),
- ),
- );
- expect(find.byKey(const Key('settings-update-dot')), findsOneWidget);
- });
- }
|