From b706483c827a971aeae855199b9d4ce6005e53b1 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Sat, 2 Oct 2021 13:18:23 +0200 Subject: [PATCH] webui test: close notification after selinux user map update The test test_undo_refresh_reset_update_cancel is sometimes failing because a notification obscures the selinuxmap record. After saving the modification on the record, close any notification to make sure the test succeeds. Fixes: https://pagure.io/freeipa/issue/8846 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Anuja More --- ipatests/test_webui/test_selinuxusermap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ipatests/test_webui/test_selinuxusermap.py b/ipatests/test_webui/test_selinuxusermap.py index 038204e9d..bd2024ee2 100644 --- a/ipatests/test_webui/test_selinuxusermap.py +++ b/ipatests/test_webui/test_selinuxusermap.py @@ -356,6 +356,7 @@ class test_selinuxusermap(UI_driver): self.fill_fields(selinuxmap.DATA['mod'], undo=True) self.click_on_link('SELinux User Maps') self.dialog_button_click('save') + self.close_notifications() self.navigate_to_record(selinuxmap.PKEY) self.verify_btn_action(mod_description, negative=True) self.wait_for_request(n=2)