'Scenario: The component visibility modal shows a validation error when visibility is set to multiple unknown
group ids.
Given I have a unit with one component
And that component\'s group access specifies multiple invalid group ids
When I go to the container page for that unit
Then I should see a validation error message on that unit\'s component
And I open the visibility editor modal for that unit\'s component
Then I should see that I have selected multiple deleted groups
And the container page should display the content visibility warning
And I de-select the missing groups
And I save the modal
Then the visibility selection should be \'All Students and Staff\'
And I should not see any validation errors on the component
And the container page should not display the content visibility warning'

def test_missing_groups(self):

    self.update_component(self.html_component, {'group_access': {self.id_base: [(self.id_base + 3), (self.id_base + 4)]}})
    self._verify_and_remove_missing_content_groups('Deleted    Group,    Deleted    Group', ([self.MISSING_GROUP_LABEL] * 2))
    self.verify_visibility_set(self.html_component, False)
