From ea25606de5f1a60430a74107b0e2e0986ac1bb15 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Thu, 24 Feb 2022 19:02:17 +0100 Subject: uitest: check the value and not the text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fails for me with AssertionError: '90%' != '90\xa0%' - 90% + 90 % Change-Id: Ieec52a4aff721705451a0545eb606c97235b1248 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130507 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- sw/qa/uitest/writer_tests4/exportToPDF.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/qa') diff --git a/sw/qa/uitest/writer_tests4/exportToPDF.py b/sw/qa/uitest/writer_tests4/exportToPDF.py index e242428c40a9..14cc9f5b3fac 100644 --- a/sw/qa/uitest/writer_tests4/exportToPDF.py +++ b/sw/qa/uitest/writer_tests4/exportToPDF.py @@ -57,7 +57,7 @@ class exportToPDF(UITestCase): self.assertEqual("false", get_state_as_dict(xDialog.getChild(child))['Checked']) self.assertEqual("300 DPI", get_state_as_dict(xDialog.getChild("resolution"))['Text']) - self.assertEqual("90%", get_state_as_dict(xDialog.getChild("quality"))['Text']) + self.assertEqual("90", get_state_as_dict(xDialog.getChild("quality"))['Value']) self.assertEqual("FDF", get_state_as_dict(xDialog.getChild("format"))['DisplayText']) xOk = xDialog.getChild("ok") -- cgit