Files
swyx/app/test/widget_test.dart
Sven Carstensen ef4fa38244 Flutter-App mit WebView, STOMP-Client und Konfigurationssystem
- Flutter-App (app/) für iOS, Android, macOS, Windows und Linux erstellt
- WebView-Startseite mit flutter_inappwebview (iOS/Android/macOS/Windows),
  Linux-Fallback mit url_launcher
- STOMP-over-WebSocket: Topic-basierte Echtzeit-Kommunikation zwischen
  Flutter-App und Spring Boot Core
- Core: STOMP-Broker (/ws/stomp), CallEventBroadcaster auf /topic/calls,
  StompMessageController für /app/ping und /app/broadcast
- SecurityConfig: /ws/** permitAll + CSRF-Ausnahme
- Asset-basierte Konfigurationsdatei (app_config.json) für Server-URL,
  STOMP-Reconnect, Topics und WebView-URL
- launch.json um Flutter-Debug/Profile/Release-Konfigurationen erweitert
- macOS: FLTEnableMergedPlatformUIThread deaktiviert (WKWebView-Kompatibilität),
  network.client Entitlement gesetzt
- iOS: NSAllowsLocalNetworking für lokale Entwicklung
- Android: INTERNET-Permission und usesCleartextTraffic

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-20 10:32:14 +02:00

21 lines
648 B
Dart

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);
});
}