summaryrefslogtreecommitdiff
path: root/sw/qa/uitest
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-12-15 21:54:18 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-12-15 23:21:11 +0100
commit2f52f92b13e523b1c7ff93a3f915af4293334c7d (patch)
treedec9020d2cd0159923fdcb51ee39468f931e6b7b /sw/qa/uitest
parentfa91a519c002442a369ffb1ff8b35cd5297d1dbc (diff)
uitest: sw: make sure there is one textfield
Otherwise this test wouldn't fail Change-Id: Idfca309d47b5518c8511503e5cac3a3028986f85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126896 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest')
-rw-r--r--sw/qa/uitest/chapterNumbering/tdf145215.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/qa/uitest/chapterNumbering/tdf145215.py b/sw/qa/uitest/chapterNumbering/tdf145215.py
index e262bd79a0d1..29c119730a71 100644
--- a/sw/qa/uitest/chapterNumbering/tdf145215.py
+++ b/sw/qa/uitest/chapterNumbering/tdf145215.py
@@ -30,8 +30,8 @@ class Tdf145215(UITestCase):
# Check field value (there is only one field)
textfields = writer_doc.getTextFields()
textfields.refresh()
- for textfield in textfields:
- self.assertTrue(textfield.supportsService("com.sun.star.text.TextField.GetReference"))
- self.assertEqual(textfield.CurrentPresentation, "1.2.1(i)")
+ textfield = textfields.createEnumeration().nextElement()
+ self.assertTrue(textfield.supportsService("com.sun.star.text.TextField.GetReference"))
+ self.assertEqual(textfield.CurrentPresentation, "1.2.1(i)")
# vim: set shiftwidth=4 softtabstop=4 expandtab: