init(_:)
Creates an expectation that each entity in the block is onscreen.
Declaration
init(@OnScreenEntityExpectationBuilder _ content: () -> [any ResolvableAppEntityExpectation])Discussion
Onscreen entities are identity-based. A staged view shows entities the author already knows, so property matching is not offered here. For property-based matching of search results, see Finds.
The following shows how you can use the builder syntax:
OnScreen {
EventEntity.expectIdentifier("An identifier")
}