URL: https://github.com/freeipa/freeipa/pull/5481
Author: miskopo
 Title: #5481: Webui test hostgroup
Action: opened

PR body:
"""
NOT READY FOR REVIEW, TESTING SCENARIO
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5481/head:pr5481
git checkout pr5481
From 7ad291bb4bbd6b51dcb1623e5fa7499b14900f91 Mon Sep 17 00:00:00 2001
From: Michal Polovka <mpolo...@redhat.com>
Date: Tue, 26 Jan 2021 16:16:50 +0100
Subject: [PATCH 1/2] test_webui: test_hostgroup: Wait for cancel button

When cancelling error dialog while creating hostgroup, original dialog
is sometimes not immediately rendered, therefore making the test fail.
Add simple wait in between cancelling of opened dialogs.

Signed-off-by: Michal Polovka <mpolo...@redhat.com>
---
 ipatests/test_webui/test_hostgroup.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ipatests/test_webui/test_hostgroup.py b/ipatests/test_webui/test_hostgroup.py
index 63b4ad88553..d1ab9d0f4c2 100644
--- a/ipatests/test_webui/test_hostgroup.py
+++ b/ipatests/test_webui/test_hostgroup.py
@@ -278,6 +278,7 @@ def test_names_and_button(self):
         assert hostgroup.DESCRIPTION_ERROR_DIALOG in \
             self.get_last_error_dialog().text
         self.dialog_button_click('cancel')
+        self.wait(2)
         self.dialog_button_click('cancel')
 
         # duplicate

From 4fe5b76dee2844080f6ee45a8b9739366cba5135 Mon Sep 17 00:00:00 2001
From: Michal Polovka <mpolo...@redhat.com>
Date: Tue, 26 Jan 2021 16:21:15 +0100
Subject: [PATCH 2/2] temp commit

---
 .freeipa-pr-ci.yaml                        | 2 +-
 ipatests/prci_definitions/temp_commit.yaml | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.freeipa-pr-ci.yaml b/.freeipa-pr-ci.yaml
index abcf8c5b634..80656690080 120000
--- a/.freeipa-pr-ci.yaml
+++ b/.freeipa-pr-ci.yaml
@@ -1 +1 @@
-ipatests/prci_definitions/gating.yaml
\ No newline at end of file
+ipatests/prci_definitions/temp_commit.yaml
\ No newline at end of file
diff --git a/ipatests/prci_definitions/temp_commit.yaml b/ipatests/prci_definitions/temp_commit.yaml
index b297cd4e319..86c12a5f709 100644
--- a/ipatests/prci_definitions/temp_commit.yaml
+++ b/ipatests/prci_definitions/temp_commit.yaml
@@ -65,10 +65,10 @@ jobs:
     requires: [fedora-latest/build]
     priority: 50
     job:
-      class: RunPytest
+      class: RunWebuiTests
       args:
         build_url: '{fedora-latest/build_url}'
-        test_suite: test_integration/test_REPLACEME.py
+        test_suite: test_integration/test_hostgroup.py
         template: *ci-master-latest
         timeout: 3600
         topology: *master_1repl_1client
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org

Reply via email to