import 'package:flutter_test/flutter_test.dart'; import 'package:swyx_app/config/app_config.dart'; import 'package:swyx_app/main.dart'; void main() { testWidgets('App renders STOMP page', (WidgetTester tester) async { const config = AppConfig( stompUrl: 'ws://localhost:8080/ws/stomp', reconnectDelay: Duration(seconds: 5), webviewUrl: 'https://example.com', defaultTopic: '/topic/calls', topicPresets: ['/topic/calls'], defaultDestination: '/app/ping', defaultPayload: '{}', ); await tester.pumpWidget(const SwyxApp(config: config)); expect(find.text('Swyx'), findsOneWidget); }); }