'Show confirmation prompt
We can\'t use confirm_prompt because its wait_for_notification is flaky when asynchronous operation
completed very quickly.'

def wait_for_confirmation_prompt(self):

    EmptyPromise((lambda : self.q(css='.prompt').present), 'Confirmation    prompt    is    displayed').fulfill()
    EmptyPromise((lambda : self.q(css='.prompt    .action-primary').present), 'Primary    button    is    displayed').fulfill()
    EmptyPromise((lambda : self.q(css='.prompt    .action-primary').visible), 'Primary    button    is    visible').fulfill()
