'Set the current view mode, e.g. "Staff", "Learner" or a content group.'

def set_staff_view_mode(self, view_mode):

    self.q(css=self.VIEW_MODE_OPTIONS_CSS).filter((lambda el: (el.text.strip() == view_mode))).first.click()
    self.wait_for_ajax()
