'Scenario: Ensure that creation of the group configuration can be canceled correctly.
Given I have a course without group configurations
When I click button \'Create new Group Configuration\'
And I set new name and description, add 1 additional group
And I click button \'Cancel\'
Then I see that there is no new group configurations in the course'

def test_can_cancel_creation_of_group_configuration(self):

    self.page.visit()
    self.assertEqual(len(self.page.experiment_group_configurations), 0)
    self.page.create_experiment_group_configuration()
    config = self.page.experiment_group_configurations[0]
    config.name = 'Name    of    the    Group    Configuration'
    config.description = 'Description    of    the    group    configuration.'
    config.add_group()
    config.cancel()
    self.assertEqual(len(self.page.experiment_group_configurations), 0)
