'Scenario: The user should be able to see error message in case of missing required field.
Given I am enrolled in a course with a team configuration and a topic
When I visit the Create Team page for that topic
Then I should see the Create Team header and form
And When I click create team button without filling required fields
Then I should see the error message and highlighted fields.'

def test_user_can_see_error_message_for_missing_data(self):

    self.verify_and_navigate_to_create_team_page()
    time.sleep(0.5)
    self.team_management_page.submit_form()
    self.team_management_page.wait_for((lambda : self.team_management_page.validation_message_text), 'Validation    message    text    never    loaded.')
    self.assertEqual(self.team_management_page.validation_message_text, 'Check    the    highlighted    fields    below    and    try    again.')
    self.assertTrue(self.team_management_page.error_for_field(field_id='name'))
    self.assertTrue(self.team_management_page.error_for_field(field_id='description'))
