'Scenario: Ensure that the group configuration can be used by split_module correctly
Given I have a course without group configurations
When I create new group configuration
And I set new name and add a new group, save the group configuration
And I go to the unit page in Studio
And I add new advanced module "Content Experiment"
When I assign created group configuration to the module
Then I see the module has correct groups'

def test_use_group_configuration(self):

    self.page.visit()
    self.page.create_experiment_group_configuration()
    config = self.page.experiment_group_configurations[0]
    config.name = 'New    Group    Configuration    Name'
    config.add_group()
    config.groups[2].name = 'New    group'
    config.save()
    split_test = self._add_split_test_to_vertical(number=0)
    container = ContainerPage(self.browser, split_test.locator)
    container.visit()
    container.edit()
    component_editor = XBlockEditorView(self.browser, container.locator)
    component_editor.set_select_value_and_save('Group    Configuration', 'New    Group    Configuration    Name')
    self.verify_groups(container, ['Group    A', 'Group    B', 'New    group'], [])
