fix(test): update F-A2-01 stale JarvisBusWorld assertion to .page
The Bus production switched from `WKContentWorld.world(name: "JarvisBusWorld")` to `WKContentWorld.page` infb41c5f, but `WebviewBridgeOutboundTests .test_sendWhenArmedCallsEvaluator` line 80 still asserted the retired named world. Test was reported green in HANDOFF but actually fails on a fresh run — the stale literal flagged in the 2026-05-03 tests audit. Updated assertion + comment trail explaining thefb41c5fdrift. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
b61ea72ab9
commit
6f6617e67b
1 file changed
+4
-1
@@ -77,7 +77,10 @@ final class WebviewBridgeOutboundTests: XCTestCase {
|
||||
let decoded = try BusCoder.makeDecoder()
|
||||
.decode(BusOutbound.self, from: Data((payload ?? "").utf8))
|
||||
XCTAssertEqual(decoded, .hudState(.idle))
|
||||
XCTAssertEqual(call.contentWorld, WKContentWorld.world(name: "JarvisBusWorld"))
|
||||
// F-A2-01: production WebviewBridge uses `WKContentWorld.page` (the
|
||||
// default since `fb41c5f`); the prior `JarvisBusWorld` named-world
|
||||
// assertion was retired in that commit but this test wasn't updated.
|
||||
XCTAssertEqual(call.contentWorld, .page)
|
||||
}
|
||||
|
||||
func test_sendWhenNotArmedThrows() async {
|
||||
|
||||
Reference in new issue
Block a user