#8342 Nightly test failure in test_webui/test_selfservice.py::test_selfservice::test_permission_using_enter_key
Opened 6 months ago by frenaud. Modified 14 days ago

The nightly test test_webui/test_selfservice.py::test_selfservice::test_permission_using_enter_key failed in [testing_ipa-4.8-previous] in PR #215, see logs:

self = <ipatests.test_webui.test_selfservice.test_selfservice object at 0x7fe5bda722d0>

    @screenshot
    def test_permission_using_enter_key(self):
        """
        Try to add/delete persmission using enter key
        """
        # try to add using enter key
        self.init_app()
        self.add_record(data_selfservice.ENTITY,
                        data_selfservice.DATA1,
                        dialog_btn=None)
        actions = ActionChains(self.driver)
        actions.send_keys(Keys.ENTER).perform()
        self.wait()
>       self.assert_notification(assert_text=SERVICE_ADDED)

test_webui/test_selfservice.py:243: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ipatests.test_webui.test_selfservice.test_selfservice object at 0x7fe5bda722d0>
type = 'success', assert_text = 'Self Service Permission successfully added'

    def assert_notification(self, type='success', assert_text=None):
        """
        Assert whether we have a notification of particular type

        type: type for assertion
        assert_text: assert particular text when True

        Returns True if selector/text found
        """

        notification_type = 'div.notification-area .alert-{}'.format(type)
        # wait for a half sec for notification to appear
        self.wait(0.5)
        is_present = self.find(notification_type, By.CSS_SELECTOR)
>       assert is_present, "Notification not present"
E       AssertionError: Notification not present

test_webui/ui_driver.py:2314: AssertionError

Also happened in PR 332, see logs.

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

14 days ago

Login to comment on this ticket.

Metadata