Is it safe to replace all instances in my UI testing code of .element(boundBy: 0) with .firstMatch?
I would think so, but the documentation from Apple isn't very clear about it (especially in the case of multiple matches even though I only care about the first one). https://developer.apple.com/documentation/xctest/xcuielementtypequeryprovider/2902250-firstmatch