#8355 Nightly test failure in test_webui/test_user.py::test_user::test_password_expiration_notification
Closed: fixed by frenaud. Opened by fcami.

testing_master_previous Nightly PR 223
logs

>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: div[name='ipapwdexpadvnotify'] input[type='text'][name='ipapwdexpadvnotify']
/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py:242: NoSuchElementException

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

Although the same test is failing but I am seeing an assertion error instead of NoSuchElementException

self = <ipatests.test_webui.test_user.test_user object at 0x7f5eae1c20b0>
    @screenshot
    def test_password_expiration_notification(self):
        """
        Test password expiration notification
        """
        pwd = self.config.get('ipa_password')
        self.init_app()
        self.set_ipapwdexpadvnotify('15')
        # create user and group and add user to that group
        self.add_record(user.ENTITY, user.DATA)
        self.add_record(group.ENTITY, group.DATA)
        self.navigate_to_entity(group.ENTITY)
        self.navigate_to_record(group.PKEY)
        self.add_associations([user.PKEY])
        # password policy for group
        self.add_record('pwpolicy', {
            'pkey': group.PKEY,
            'add': [
                ('combobox', 'cn', group.PKEY),
                ('textbox', 'cospriority', '12345'),
            ]})
        self.navigate_to_record(group.PKEY)
        self.mod_record('pwpolicy', {
            'pkey': group.PKEY,
            'mod': [
                ('textbox', 'krbmaxpwdlife', '7'),
                ('textbox', 'krbminpwdlife', '0'),
            ]})
        # reset password
        self.navigate_to_record(user.PKEY, entity=user.ENTITY)
        self.reset_password_action(pwd)
        # re-login as new user
        self.logout()
        self.init_app(user.PKEY, pwd)
        header = self.find('.navbar-pf', By.CSS_SELECTOR)
>       self.assert_text(
            '.header-passwordexpires',
            'Your password expires in 6 days.',
            header)
test_webui/test_user.py:393: 

Observed in PR 1916 Report

@sumedhs I opened https://pagure.io/freeipa/issue/9212 to track the new issue, it is a different problem.

Does not happen any more

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata