sw/qa/uitest/chapterNumbering/tdf145215.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 2f52f92b13e523b1c7ff93a3f915af4293334c7d Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Dec 15 21:54:18 2021 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Dec 15 23:21:11 2021 +0100 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 <xiscofa...@libreoffice.org> 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: