oficina / meet Public

Calls: iPhone portrait snapshots test reads the snapshot, not the self view's accessibility frame

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 97e87ad670e4c0eb40202377710ac5d140709ab2 parent 844cc2f
1 file changed, +5 −3
  • native/ios/UITests/CallsPhoneUITests.swift +5 −3
diff --git a/native/ios/UITests/CallsPhoneUITests.swift b/native/ios/UITests/CallsPhoneUITests.swift
index 9efd708..127c31a 100644
--- a/native/ios/UITests/CallsPhoneUITests.swift
+++ b/native/ios/UITests/CallsPhoneUITests.swift
@@ -525,9 +525,11 @@ final class CallsPhoneUITests: XCTestCase {
dark: true)
XCTAssertTrue(app.descendants(matching: .any)["callStage"].firstMatch.waitForExistence(timeout: 15))
Thread.sleep(forTimeInterval: 1)
- let selfView = app.descendants(matching: .any)["selfView"]
- XCTAssertTrue(selfView.exists)
- XCTAssertGreaterThan(selfView.frame.height, selfView.frame.width, "an upright self view floats upright")
+ // The self view's shape is PiPLayout's, unit-tested there
+ // (VideoShapeTests): the element's accessibility frame here is not
+ // the drawn one (it reports 714 × 217 for a 112 × 150 view), so the
+ // snapshot is the evidence.
+ XCTAssertTrue(app.descendants(matching: .any)["selfView"].exists)
try snapshot(app, "portrait-video-two-landscape-\(before ? "before" : "after")")
}
}