def assign_to(self, user):
    assignee = self.browser.find_element_by_css_selector('.assigned-to')
    assignee.find_element_by_css_selector('[role="button"]').click()
    assignee.find_element_by_tag_name('input').send_keys(user)
    options = assignee.find_elements_by_css_selector('[data-test-id="assignee-option"]')
    assert (len(options) > 0), 'No assignees could be found.'
    options[0].click()
    self.browser.wait_until_not('.loading-indicator')
def assign_to(self, user):
    assignee = self.browser.find_element_by_css_selector('.assigned-to')
    assignee.find_element_by_css_selector('[role="button"]').click()
    assignee.find_element_by_tag_name('input').send_keys(user)
    options = assignee.find_elements_by_css_selector('[data-test-id="assignee-option"]')
    assert (len(options) > 0), 'No assignees could be found.'
    options[0].click()
    self.browser.wait_until_not('.loading-indicator')