I've created a new and better function for closing my application at the end of each test. I'd like to update all existing tests, which all currently end with clicking 2 buttons. I cannot find a way to search-and-replace these operations with the new operation I'd like to use in their place.
Below is an illustration of what I want to do.