#8341 Nightly test failure in test_webui/test_loginscreen.py::TestLoginScreen::test_reset_password_view_with_delayed_redirect
Opened 5 months ago by frenaud. Modified 10 days ago

The nightly test test_webui/test_loginscreen.py::TestLoginScreen::test_reset_password_view_with_delayed_redirect failed in [testing_ipa-4.8-latest] PR #213, see the logs:

self = <ipatests.test_webui.test_loginscreen.TestLoginScreen object at 0x7ff31f507250>

    @screenshot
    def test_reset_password_view_with_delayed_redirect(self):

        redir_url = self.get_base_url().lower() + '/'
        encoded_redir_url = urllib.parse.urlencode(
            {'url': redir_url, 'delay': 5}
        )
        target_url = '/'.join((self.get_base_url(), 'reset_password.html?{}'))
        self.load_url(target_url.format(encoded_redir_url))
        assert self.login_screen_visible()

        self.check_elements_of_form(loginscreen.RESET_PASSWORD_FORM)
        self.check_alerts(loginscreen.RESET_PASSWORD_FORM)
        username = loginscreen.PKEY
        current_password = loginscreen.PASSWD_ITEST_USER
        new_password = loginscreen.PASSWD_ITEST_USER_NEW
        self.reset_password(username, current_password, new_password,
                            link_text='Continue to next page',
                            link_url=redir_url,
                            )
        self.assert_notification(type='info',
                                 assert_text='You will be redirected in ')
        self.wait(3)
        # check url after start delay timer, but before end
        assert self.driver.current_url != redir_url
        self.wait(5)
        assert self.driver.current_url == redir_url
>       self.relogin_with_new_password()

test_webui/test_loginscreen.py:361: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_webui/test_loginscreen.py:134: in relogin_with_new_password
    if (self.logged_in()):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ipatests.test_webui.test_loginscreen.TestLoginScreen object at 0x7ff31f507250>

    def logged_in(self):
        """
        Check if user is logged in
        """
        login_as = self.find('loggedinas', 'class name')
>       visible_name = len(login_as.text) > 0
E       AttributeError: 'NoneType' object has no attribute 'text'

test_webui/ui_driver.py:467: AttributeError

Metadata Update from @frenaud:
- Issue tagged with: webui

10 days ago

Login to comment on this ticket.

Metadata