'Scenario: Clicking on the Let Student Skip Entrance Exam button with
email address or username of a non existing student should result in error message.
Given that I am on the Student Admin tab on the Instructor Dashboard
When I click the Let Student Skip Entrance Exam Button under
Entrance Exam Grade Adjustment after entering non existing
student email address or username
Then I should be shown an error message'

def test_skip_entrance_exam_button_with_error(self):

    self.entrance_exam_admin.set_student_email_or_username('non_existing@example.com')
    self.entrance_exam_admin.skip_entrance_exam_button.click()
    alert = get_modal_alert(self.entrance_exam_admin.browser)
    alert.accept()
    self.entrance_exam_admin.wait_for_ajax()
    self.assertGreater(len(self.entrance_exam_admin.top_notification.text[0]), 0)
