[Libreoffice-commits] core.git: sc/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Fri May 15 17:07:59 UTC 2020


 sc/qa/uitest/calc_tests4/trackedChanges.py |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit bf89bd866caac65621c5915863c5ab9b9a5f0d38
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri May 15 16:28:10 2020 +0200
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Fri May 15 19:07:26 2020 +0200

    uitest: sc: relax assert a bit
    
    time is timezone dependent so remove date and time part
    from the assert
    See http://document-foundation-mail-archive.969070.n3.nabble.com/New-Unit-Test-for-tdf-130960-causing-Build-Failure-on-i686-td4279435.html
    
    Change-Id: I75c211af3750967e39154fe66ba2d384a877ec83
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94320
    Tested-by: Xisco Faulí <xiscofauli at libreoffice.org>
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

diff --git a/sc/qa/uitest/calc_tests4/trackedChanges.py b/sc/qa/uitest/calc_tests4/trackedChanges.py
index 72bfa89cf40c..abd26385a25d 100644
--- a/sc/qa/uitest/calc_tests4/trackedChanges.py
+++ b/sc/qa/uitest/calc_tests4/trackedChanges.py
@@ -29,8 +29,10 @@ class CalcTrackedChanges(UITestCase):
         xChangesList = xTrackDlg.getChild("calcchanges")
         self.assertEqual(1, len(xChangesList.getChildren()))
 
-        text = "Row inserted \tSheet1.1:1\t \t04/05/2020 17:01:10\t (Row 1:1 inserted)"
-        self.assertEqual(get_state_as_dict(xChangesList.getChild('0'))["Text"], text)
+        textStart = "Row inserted \tSheet1.1:1\t \t"
+        textEnd = "(Row 1:1 inserted)"
+        self.assertTrue(get_state_as_dict(xChangesList.getChild('0'))["Text"].startswith(textStart))
+        self.assertTrue(get_state_as_dict(xChangesList.getChild('0'))["Text"].endswith(textEnd))
 
         #it would crash here
         xRejBtn = xTrackDlg.getChild("reject")


More information about the Libreoffice-commits mailing list