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 <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2022-02-24 19:02:17 +01:00
parent 8e8236500c
commit ea25606de5
3 changed files with 3 additions and 3 deletions

View file

@ -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")

View file

@ -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")

View file

@ -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")