sc/qa/uitest/calc_tests4/exportToPDF.py   |    2 +-
 sd/qa/uitest/impress_tests/exportToPDF.py |    2 +-
 sw/qa/uitest/writer_tests4/exportToPDF.py |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit ea25606de5f1a60430a74107b0e2e0986ac1bb15
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Feb 24 19:02:17 2022 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Feb 24 19:48:26 2022 +0100

    uitest: check the value and not the text
    
    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 <xiscofa...@libreoffice.org>

diff --git a/sc/qa/uitest/calc_tests4/exportToPDF.py 
b/sc/qa/uitest/calc_tests4/exportToPDF.py
index a990291693f1..1e88659f1193 100644
--- a/sc/qa/uitest/calc_tests4/exportToPDF.py
+++ b/sc/qa/uitest/calc_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")
diff --git a/sd/qa/uitest/impress_tests/exportToPDF.py 
b/sd/qa/uitest/impress_tests/exportToPDF.py
index aef19907f61c..aa766741e3e3 100644
--- a/sd/qa/uitest/impress_tests/exportToPDF.py
+++ b/sd/qa/uitest/impress_tests/exportToPDF.py
@@ -60,7 +60,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")
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")

Reply via email to