sc/qa/uitest/calc_tests4/trackedChanges.py |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit cb90eda86544fdda9bd49f394b7a286fa355ce90
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sat Jun 5 13:20:10 2021 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sat Jun 5 17:22:23 2021 +0200

    Blind fix for sporadically failing UITests
    
    Attempting to avoid this problem:
    
      ======================================================================
      ERROR: test_tracked_changes_acceptall (trackedChanges.CalcTrackedChanges)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "C:/lo/src/core/sc/qa/uitest/calc_tests4/trackedChanges.py", line 
127, in test_tracked_changes_acceptall
          gridwin = xCalcDoc.getChild("grid_window")
      uno.com.sun.star.uno.RuntimeException: Could not find child with id: 
grid_window
    
      ======================================================================
      ERROR: test_tracked_changes_reject (trackedChanges.CalcTrackedChanges)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "C:/lo/src/core/sc/qa/uitest/calc_tests4/trackedChanges.py", line 
173, in test_tracked_changes_reject
          gridwin = xCalcDoc.getChild("grid_window")
      uno.com.sun.star.uno.RuntimeException: Could not find child with id: 
grid_window
    
      ======================================================================
      ERROR: test_tracked_changes_rejectall (trackedChanges.CalcTrackedChanges)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "C:/lo/src/core/sc/qa/uitest/calc_tests4/trackedChanges.py", line 
239, in test_tracked_changes_rejectall
          gridwin = xCalcDoc.getChild("grid_window")
      uno.com.sun.star.uno.RuntimeException: Could not find child with id: 
grid_window
    
    The problem looks unexpected, since UITest.create_doc_in_start_center
    waits for "OnNew" event, but who knows...
    
    Change-Id: I38207944f0f2fb67cf6e97ee1c220bbd95dc7047
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116698
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sc/qa/uitest/calc_tests4/trackedChanges.py 
b/sc/qa/uitest/calc_tests4/trackedChanges.py
index eb16ed5c7cc3..4203ef728fcb 100644
--- a/sc/qa/uitest/calc_tests4/trackedChanges.py
+++ b/sc/qa/uitest/calc_tests4/trackedChanges.py
@@ -43,6 +43,7 @@ class CalcTrackedChanges(UITestCase):
 
     def test_tdf66263_Protect_Records(self):
         calc_doc = self.ui_test.create_doc_in_start_center("calc")
+        self.ui_test.wait_until_child_is_available("grid_window")
         xCalcDoc = self.xUITest.getTopFocusWindow()
         gridwin = xCalcDoc.getChild("grid_window")
         document = self.ui_test.get_component()
@@ -69,6 +70,7 @@ class CalcTrackedChanges(UITestCase):
     def test_tracked_changes_accept(self):
 
         calc_doc = self.ui_test.create_doc_in_start_center("calc")
+        self.ui_test.wait_until_child_is_available("grid_window")
         xCalcDoc = self.xUITest.getTopFocusWindow()
         gridwin = xCalcDoc.getChild("grid_window")
         document = self.ui_test.get_component()
@@ -123,6 +125,7 @@ class CalcTrackedChanges(UITestCase):
     def test_tracked_changes_acceptall(self):
 
         calc_doc = self.ui_test.create_doc_in_start_center("calc")
+        self.ui_test.wait_until_child_is_available("grid_window")
         xCalcDoc = self.xUITest.getTopFocusWindow()
         gridwin = xCalcDoc.getChild("grid_window")
         document = self.ui_test.get_component()
@@ -169,6 +172,7 @@ class CalcTrackedChanges(UITestCase):
     def test_tracked_changes_reject(self):
 
         calc_doc = self.ui_test.create_doc_in_start_center("calc")
+        self.ui_test.wait_until_child_is_available("grid_window")
         xCalcDoc = self.xUITest.getTopFocusWindow()
         gridwin = xCalcDoc.getChild("grid_window")
         document = self.ui_test.get_component()
@@ -235,6 +239,7 @@ class CalcTrackedChanges(UITestCase):
     def test_tracked_changes_rejectall(self):
 
         calc_doc = self.ui_test.create_doc_in_start_center("calc")
+        self.ui_test.wait_until_child_is_available("grid_window")
         xCalcDoc = self.xUITest.getTopFocusWindow()
         gridwin = xCalcDoc.getChild("grid_window")
         document = self.ui_test.get_component()
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to