diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-05-15 16:28:10 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-05-15 19:07:26 +0200 |
commit | bf89bd866caac65621c5915863c5ab9b9a5f0d38 (patch) | |
tree | d5214db0f155067938414ec4af42cc96141b967a /sc/qa/uitest | |
parent | db0e0c455e1a9f21c29d08790269979b995e5b0c (diff) |
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@libreoffice.org>
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest')
-rw-r--r-- | sc/qa/uitest/calc_tests4/trackedChanges.py | 6 |
1 files changed, 4 insertions, 2 deletions
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") |