'Deselect the missing groups for a component.  After save,
verify that there are no missing group messages in the modal
and that there is no validation error on the component.'

def remove_missing_groups(self, visibility_editor, component):

    for option in visibility_editor.all_group_options:
        if (option.text == self.MISSING_GROUP_LABEL):
            option.click()
    visibility_editor.save()
    visibility_editor = self.edit_component_visibility(component)
    self.assertNotIn(self.MISSING_GROUP_LABEL, [item.text for item in visibility_editor.all_group_options])
    visibility_editor.cancel()
    self.assertFalse(component.has_validation_error)
