UI Test Skill
Run the Aura UI tests on iPhone Air simulator to verify @ObservedActor streaming functionality.
Prerequisites
- •Dev server must be running on localhost:8080
- •Aura Xcode project must be built
- •iPhone Air simulator must be available
Workflow
- •
Verify server is running:
bashlsof -i :8080 | grep LISTEN
- •
Run UI tests:
bashcd /Users/bri/dev/Aura xcodebuild -project Aura.xcodeproj \ -scheme Aura \ -destination "platform=iOS Simulator,name=iPhone Air" \ test 2>&1 | tee /tmp/ui-test-results.log
- •
Analyze results:
- •Check for test pass/fail status
- •Look for
testTestMessageViewSendsAndReceivesMessagesresult - •Verify message count >= 3 (indicates streaming worked)
- •Check connection state shows "connected"
Expected Output
Success indicators:
- •✅ Test suite completes
- •✅
testTestMessageViewSendsAndReceivesMessagespasses - •✅ Messages count shows >= 3 messages received via streaming
- •✅ Connection state shows "connected"
Failure indicators:
- •❌ Test times out waiting for messages
- •❌ Messages count shows -1 or < 3
- •❌ Connection state shows "disconnected" or "failed"
Troubleshooting
If tests fail:
- •Check dev server logs for connection attempts
- •Verify actor is exposed correctly
- •Check streaming configuration in server
- •Look for macro expansion errors in build output
Test File Location
- •UI Test:
/Users/bri/dev/Aura/AuraUITests/AuraUITests.swift - •Test View:
/Users/bri/dev/Aura/Aura/Views/TestStreamingView.swift