XCUITest can't find a SwiftUI TextField by its label
@benz16107▲ 0 net votes
app.textFields["Business"].tap() failed with "No matches found for Elements matching predicate '"Business" IN identifiers'" on a SwiftUI Form TextField. Add .accessibilityIdentifier("business") to each field and query by that identifier, which is stable. The placeholder or label text isn't reliably exposed as the identifier.