import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:smplayer/features/player/widgets/player_hold_speed_prompt.dart';

void main() {
  testWidgets('hold speed prompt uses light background', (tester) async {
    await tester.pumpWidget(
      const MaterialApp(
        home: Stack(
          children: [HoldSpeedPrompt(visible: true, isLeft: false, rate: 3)],
        ),
      ),
    );

    final container = tester.widget<Container>(
      find.descendant(
        of: find.byType(HoldSpeedPrompt),
        matching: find.byType(Container),
      ),
    );
    final decoration = container.decoration as BoxDecoration;

    expect(decoration.color, const Color(0x45181818));
  });
}
