#8845 Nightly test failure (rawhide) in test_webui_general
Closed: worksforme by frenaud. Opened by frenaud.

The nightly test test_webui_general started failing in rawhide, see PR #906 with the following logs and report:
- test_webui/test_translation.py::TestSsbrowserPage::test_long_text_of_ssbrowser_page:

self = <ipatests.test_webui.test_translation.TestSsbrowserPage object at 0x7fd1cead5760>
    @screenshot
    def test_long_text_of_ssbrowser_page(self):
        """
        Tests whether the text from '@i18n:ssbrowser-page' is synced
        against '<noscript>' tag to ensure a similarity of the behavior.
        """
        self.init_app()
>       self.check_noscript_innerhtml('ssbrowser-msg')
test_webui/test_translation.py:140: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <ipatests.test_webui.test_translation.TestSsbrowserPage object at 0x7fd1cead5760>
html_id = 'ssbrowser-msg'
    def check_noscript_innerhtml(self, html_id):
        """
        Compare inner html under enabled javascript and disabled one
        """
        # check if js is enabled in browser
        assert self.has_no_child(html_id, 'noscript')
        html_js_enabled = self.innerhtml(html_id)
        raw_page = self.page_raw_source()
        html_js_disabled = self.innerhtml_noscript(html_id, raw_page)
>       assert html_js_enabled == html_js_disabled
E       AssertionError: assert ['<h1>Browser...ign-on.', ...] == ['<h1>Browser...ign-on.', ...]
E         At index 117 diff: '' != '</noscript>'
E         Right contains 1164 more items, first extra item: '</div>'
E         Full diff:
E           [
E            '<h1>Browser Kerberos Setup</h1>',
E            '',
E            '<h2>Firefox</h2>',...
E         
E         ...Full output truncated (1601 lines hidden), use '-vv' to show
test_webui/test_translation.py:121: AssertionError
  • test_webui/test_translation.py::TestUnauthorizedPage::test_long_text_of_unauthorized_page:
self = <ipatests.test_webui.test_translation.TestUnauthorizedPage object at 0x7fd1cea66af0>
    @screenshot
    def test_long_text_of_unauthorized_page(self):
        """
        Tests whether the text from '@i18n:unauthorized-page' is synced
        against '<noscript>' tag to ensure a similarity of the behavior.
        """
        self.init_app()
>       self.check_noscript_innerhtml('unauthorized-msg')
test_webui/test_translation.py:159: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <ipatests.test_webui.test_translation.TestUnauthorizedPage object at 0x7fd1cea66af0>
html_id = 'unauthorized-msg'
    def check_noscript_innerhtml(self, html_id):
        """
        Compare inner html under enabled javascript and disabled one
        """
        # check if js is enabled in browser
        assert self.has_no_child(html_id, 'noscript')
        html_js_enabled = self.innerhtml(html_id)
        raw_page = self.page_raw_source()
        html_js_disabled = self.innerhtml_noscript(html_id, raw_page)
>       assert html_js_enabled == html_js_disabled
E       AssertionError: assert ['<h1>Unable ...on</h2>', ...] == ['<h1>Unable ...on</h2>', ...]
E         At index 12 diff: '' != '</noscript>'
E         Right contains 65 more items, first extra item: '</div>'
E         Full diff:
E           [
E            '<h1>Unable to verify your Kerberos credentials</h1>',
E            '<p>',
E            '            Please make sure that you have valid Kerberos tickets '...
E         
E         ...Full output truncated (85 lines hidden), use '-vv' to show
test_webui/test_translation.py:121: AssertionError

The previous run was successful in PR #889.


@stsymbal could you have a look? thanks

The issue also happens in fedora34 + updates-testing, see PR #915 - logs, report

Issue did not occur in the last months, closing for now. Feel free to re-open if it is reproduced.

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

Metadata