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:
parent
8e8236500c
commit
ea25606de5
3 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue