Improve clicking and synchronization in Studio bok-choy tests

@cahrens @minhtuev @benpatterson 
@benmcmorran we should try this code for the "discard changes" dialog, which we are sporadically not clicking on. @jzoldak  a confirm_warning helper method would be helpful, as we will need to reuse it for other cases where the confirmation dialog is shown.