// Basic smoke test — engine/UI covered separately when present.
import 'package:flutter_test/flutter_test.dart';
import 'package:key_resonance_destiny/main.dart';
import 'package:key_resonance_destiny/services/stripe_service.dart';

void main() {
  testWidgets('App loads home', (tester) async {
    await tester.pumpWidget(const KeyResonanceApp());
    await tester.pumpAndSettle();
    expect(find.byType(KeyResonanceApp), findsOneWidget);
  });

  test('Author unlock from query', () {
    AuthorAccess.applyFromLaunch(
      uri: Uri.parse('https://example.com/?unlock=master'),
    );
    expect(AuthorAccess.isUnlocked, isTrue);
  });
}
