#8177 Nightly test failure in test_webui/test_netgroup.py::test_netgroup::test_unsaved_changes
Closed: worksforme a month ago by stsymbal. Opened 5 months ago by frenaud.

The nightly test testing-fedora/test_webui_host_net_groups failed in test_webui/test_netgroup.py::test_netgroup::test_unsaved_changes. Logs available in PR #120 at the following llocation

Test logs:

self = <ipatests.test_webui.test_netgroup.test_netgroup object at 0x7f008ad68210>

    @screenshot
    def test_unsaved_changes(self):
        """
        verifying unsaved changes dialog ticket#2075
        """
        self.init_app()
        self.add_record(netgroup.ENTITY, netgroup.DATA8,
                        dialog_btn='add_and_edit')
        mod_description = (netgroup.DATA8['mod'][0][2])

        # verifying Cancel button
        self.fill_fields(netgroup.DATA8['mod'])
        self.click_on_link('Netgroups')
        self.assert_dialog()
        self.dialog_button_click('cancel')
        self.assert_facet_button_enabled('save')

        # verifying Revert button
        self.click_on_link('Netgroups')
        self.assert_dialog()
        self.dialog_button_click('revert')
        self.navigate_to_record(netgroup.PKEY8)
        self.verify_btn_action(mod_description)

        # verifying Save button
        self.fill_fields(netgroup.DATA8['mod'])
        self.click_on_link('Netgroups')
        self.assert_dialog()
>       self.dialog_button_click('save')

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

self = <ipatests.test_webui.test_netgroup.test_netgroup object at 0x7f008ad68210>
selector = ".rcue-dialog-buttons button[name='save']"
parent = <selenium.webdriver.firefox.webelement.FirefoxWebElement (session="81f9d6ff-92c4-4584-8f7b-0b47077b0781", element="010112ca-c3e2-4217-9737-088ac8304c6a")>
name = 'save'

    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: save

test_webui/ui_driver.py:736: AssertionError

The test suite currently is pretty stable in all branches (master, ipa-4-6, ipa-4-8).

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

a month ago

Login to comment on this ticket.

Metadata