ios: isolate Agent input and read observation

This commit is contained in:
2026-10-16 11:51:07 -07:00
parent 7510603b77
commit bbaa5e8859
5 changed files with 390 additions and 199 deletions
@@ -37,8 +37,8 @@ final class TranscriptFadeUITests: XCTestCase {
}
private var transcript: XCUIElement {
// The tablet sidebar is also a scroll view; select the detail by its content.
app.scrollViews.containing(.staticText, identifier: "History message 160: local simulator fixture.").firstMatch
// Identify the transcript independently of any particular message row.
app.scrollViews["agent-transcript"]
}
private func capture(_ name: String) {
@@ -107,7 +107,7 @@ final class TranscriptFadeUITests: XCTestCase {
capture("agent-fade-reading-position-and-unread")
for _ in 0..<30 {
if app.buttons["Load earlier messages"].isHittable { break }
if app.buttons["Load earlier messages"].exists && app.buttons["Load earlier messages"].isHittable { break }
scroll.swipeDown(velocity: .fast)
}
let load = app.buttons["Load earlier messages"]