'Click on Leave Team link'

def click_leave_team_link(self, remaining_members=0, cancel=False):

    leave_team_css = '.leave-team-link'
    self.wait_for_element_visibility(leave_team_css, 'Leave    Team    link    is    visible.')
    click_css(self, leave_team_css, require_notification=False)
    confirm_prompt(self, cancel, require_notification=False)
    if (cancel is False):
        self.wait_for((lambda : self.join_team_button_present), description='Join    Team    button    did    not    become    present')
        self.wait_for_capacity_text(remaining_members)
