'Scenario: Ensure that the group configuration is rendered correctly in expanded/collapsed mode.
Given I have a course with 2 group configurations
And I go to the Group Configuration page in Studio
And I work with the first group configuration
And I see `name`, `id` are visible and have correct values
When I expand the first group configuration
Then I see `description` and `groups` appear and also have correct values
And I do the same checks for the second group configuration'

def test_group_configurations_have_correct_data(self):

    self.course_fixture._update_xblock(self.course_fixture._course_location, {'metadata': {u'user_partitions': [create_user_partition_json(0, 'Name    of    the    Group    Configuration', 'Description    of    the    group    configuration.', [Group('0', 'Group    0'), Group('1', 'Group    1')]), create_user_partition_json(1, 'Name    of    second    Group    Configuration', 'Second    group    configuration.', [Group('0', 'Alpha'), Group('1', 'Beta'), Group('2', 'Gamma')])]}})
    self.page.visit()
    config = self.page.experiment_group_configurations[0]
    self.assertEqual(len(config.groups), 0)
    self._assert_fields(config, cid='0', name='Name    of    the    Group    Configuration', description='Description    of    the    group    configuration.', groups=['Group    0', 'Group    1'])
    config = self.page.experiment_group_configurations[1]
    self._assert_fields(config, name='Name    of    second    Group    Configuration', description='Second    group    configuration.', groups=['Alpha', 'Beta', 'Gamma'])
