While doing a UI test, I can test that a text exists like this:
XCTAssertTrue(tablesQuery.staticTexts["Born: May 7, 1944"].exists)
But, how do I test if a text exist, if I only know the prefix?
I would like to do something like:
XCTAssertTrue(tablesQuery.staticTextWithPrefix["Born: "].exists)
or even better:
XCTAssertTrue(tablesQuery.staticTextWithRegex["Born: .+"].exists)