'Scenario: The user should be able to see error message in case of increasing length for required fields.
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
When I add text > than 255 characters for name field
And I click Create button
Then I should see the error message for exceeding length.'

def test_user_can_see_error_message_for_incorrect_data(self):

    self.verify_and_navigate_to_create_team_page()
    self.team_management_page.value_for_text_field(field_id='name', value='EdX    is    a    massive    open    online    course    (MOOC)    provider    and    online    learning    platform.    It    hosts    online    university-level    courses    in    a    wide    range    of    disciplines    to    a    worldwide    audience,    some    at    no    charge.    It    also    conducts    research    into    learning    based    on    how    people    use    its    platform.    EdX    was    created    for    students    and    institutions    that    seek    totransform    themselves    through    cutting-edge    technologies,    innovative    pedagogy,    and    rigorous    courses.    More    than    70    schools,    nonprofits,    corporations,    and    internationalorganizations    offer    or    plan    to    offer    courses    on    the    edX    website.    As    of    22    October    2014,edX    has    more    than    4    million    users    taking    more    than    500    courses    online.', press_enter=False)
    self.team_management_page.submit_form()
    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'))
