Unfortunately, information about which segues exist is stored in the UIStoryboard
internal presentation graph and is not accessible using public APIs. There is no way to get this information so that you can publish it on the App Store.
However, searching for a specific named segue is a kind of fragile way to write this test. Ideally, you should write something like this as an integration test, which ensures that, given that the user is performing an action, the expected view controller is presented.
source share