'Waits until the menu bar of components is present on the page.'

def wait_for_component_menu(self):

    EmptyPromise((lambda : self.q(css='div.add-xblock-component').present), 'Wait    for    the    menu    of    components    to    be    present').fulfill()
