'Certificate details are expanded.'

def wait_for_hide_details_toggle(self):

    EmptyPromise((lambda : self.find_css('a.detail-toggle.hide-details').present), 'Certificate    details    are    expanded').fulfill()
