#8169 NIghtly test failure in fedora-rawhide/test_webui_policy
Closed: fixed 3 years ago by stsymbal. Opened 3 years ago by frenaud.

The nightly test fedora-rawhide/test_webui_policy failed in test_webui/test_selinuxusermap.py::test_selinuxusermap::test_undo_refresh_reset_update_cancel with the following trace:

self = <ipatests.test_webui.test_selinuxusermap.test_selinuxusermap object at 0x7f4eab1bd520>

    @screenshot
    def test_undo_refresh_reset_update_cancel(self):
        """
        Test undo/refresh/reset/update/cancel buttons
        """
        self.init_app()

        mod_description = (selinuxmap.DATA['mod'][0][2])

        # test selinux usermap undo button
        self.add_record(selinuxmap.ENTITY, selinuxmap.DATA)
        self.navigate_to_record(selinuxmap.PKEY)
        self.fill_fields(selinuxmap.DATA['mod'])
        self.click_undo_button('description')
        self.verify_btn_action(mod_description)

        # test refresh button
        self.fill_fields(selinuxmap.DATA['mod'], undo=True)
        self.facet_button_click('refresh')
        self.verify_btn_action(mod_description)

        # test reset button
        self.mod_record(selinuxmap.ENTITY, selinuxmap.DATA, facet_btn='revert')
        self.wait_for_request()
        self.verify_btn_action(mod_description)

        # test update button
        self.fill_fields(selinuxmap.DATA['mod'], undo=True)
        self.facet_button_click('refresh')
        self.verify_btn_action(mod_description)

        # test reset button after trying to leave the details page
        self.fill_fields(selinuxmap.DATA2['mod'], undo=True)
        self.click_on_link('SELinux User Maps')
>       self.dialog_button_click('revert')

test_webui/test_selinuxusermap.py:350: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_webui/ui_driver.py:705: in dialog_button_click
    self._button_click(s, dialog, name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ipatests.test_webui.test_selinuxusermap.test_selinuxusermap object at 0x7f4eab1bd520>
selector = ".rcue-dialog-buttons button[name='revert']"
parent = <selenium.webdriver.firefox.webelement.FirefoxWebElement (session="7e45c3b3-d321-45c1-beff-a6c1c939fbea", element="b4bb4ffc-6dba-4ca0-a278-d8f626e11ea1")>
name = 'revert'

    def _button_click(self, selector, parent, name=''):
        btn = self.find(selector, By.CSS_SELECTOR, parent, strict=True)
        self.move_to_element_in_page(btn)
        disabled = btn.get_attribute("disabled")
>       assert btn.is_displayed(), 'Button is not displayed: %s' % name
E       AssertionError: Button is not displayed: revert

test_webui/ui_driver.py:736: AssertionError

Logs available here in PR #118


Metadata Update from @frenaud:
- Issue tagged with: test-failure, tests

3 years ago

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

3 years ago

master:

  • 9418042 WebUI tests: Fix 'Button is not displayed' exception

ipa-4-8:

  • 664eed7 WebUI tests: Fix 'Button is not displayed' exception

ipa-4-7:

  • 220aba3 WebUI tests: Fix 'Button is not displayed' exception

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

3 years ago

Login to comment on this ticket.

Metadata