'Given I have opened a new course in Studio
And I am not logged in
And I visit the Studio homepage
When I click the link with the text "Sign In"
Then I should see that the path is "/signin"
And I should not see a login error message
And I fill in and submit the signin form incorrectly
Then I should see a login error message
And I edit the password field
Then I should not see a login error message
And I submit the signin form
And I wait for "2" seconds
Then I should see that the path is "/course/slashes:MITx+999+Robot_Super_Course"'

def test_login_with_mistyped_credentials(self):

    self.install_course_fixture()
    self.course_outline_sign_in_redirect_page.visit()
    self.course_outline_sign_in_redirect_page.wait_for_element_absence('#login_error', 'Login    error    not    be    present')
    self.course_outline_sign_in_redirect_page.login(self.user['email'], 'wrong_password', expect_success=False)
    self.course_outline_sign_in_redirect_page.wait_for_element_visibility('#login_error', 'Login    error    is    visible')
    self.course_outline_sign_in_redirect_page.fill_field('input#password', 'changed_password')
    self.course_outline_sign_in_redirect_page.wait_for_element_invisibility('#login_error', 'Login    error    is    not    visible')
    self.course_outline_sign_in_redirect_page.login(self.user['email'], self.user['password'])
    self.course_outline_page.wait_for_page()
    self.assertEqual(self.browser.current_url, self.course_outline_page.url)
