mirror of
https://github.com/lahfir/agent-desktop.git
synced 2026-08-06 06:00:39 +00:00
test: give ffi consumer targets accessibility identifiers
The FFI live driver addresses its AE2 targets by native_id per the R4 identity spine, but the fixture's async buttons only ever set accessibility labels, so ref_for could never match and both release-FFI AE2 checks failed on every live run. These checks were unreachable until the zero-bounds abort was fixed, which is why no prior run surfaced it. Assign identifiers to exactly the three buttons the FFI consumer addresses; name-based CLI paths are unaffected.
This commit is contained in:
parent
a65d4530a1
commit
fc3e08a667
1 changed files with 3 additions and 0 deletions
|
|
@ -16,9 +16,11 @@ struct AsyncFixtureCard: View {
|
|||
}
|
||||
}
|
||||
.accessibilityLabel("enable-later")
|
||||
.accessibilityIdentifier("enable-later")
|
||||
Button("Delayed Button") { delayedActionCount += 1 }
|
||||
.disabled(!delayedEnabled)
|
||||
.accessibilityLabel("delayed-button")
|
||||
.accessibilityIdentifier("delayed-button")
|
||||
StatusReadout(name: "delayed-text", value: delayedText)
|
||||
StatusReadout(name: "delayed-action-status", value: String(delayedActionCount))
|
||||
|
||||
|
|
@ -28,6 +30,7 @@ struct AsyncFixtureCard: View {
|
|||
delayedActionCount = 0
|
||||
}
|
||||
.accessibilityLabel("reset-delayed-button")
|
||||
.accessibilityIdentifier("reset-delayed-button")
|
||||
|
||||
Button("Permanently Disabled") { delayedActionCount += 100 }
|
||||
.disabled(true)
|
||||
|
|
|
|||
Loading…
Reference in a new issue