Author: damjan Date: Fri Nov 10 16:28:00 2017 New Revision: 1814885 URL: http://svn.apache.org/viewvc?rev=1814885&view=rev Log: Sleep 1 second after sending Tab+Enter, as the UI needs time to perform that action before we can copy the text out of the box. If we don't wait then the wrong thing gets copied (a picture box instead of the text in it), and as a text value it becomes an empty string, and tests fail.
Patch by: me Modified: openoffice/trunk/test/testgui/source/bvt/gui/FileTypeTest.java Modified: openoffice/trunk/test/testgui/source/bvt/gui/FileTypeTest.java URL: http://svn.apache.org/viewvc/openoffice/trunk/test/testgui/source/bvt/gui/FileTypeTest.java?rev=1814885&r1=1814884&r2=1814885&view=diff ============================================================================== --- openoffice/trunk/test/testgui/source/bvt/gui/FileTypeTest.java (original) +++ openoffice/trunk/test/testgui/source/bvt/gui/FileTypeTest.java Fri Nov 10 16:28:00 2017 @@ -218,6 +218,7 @@ public class FileTypeTest { impress.waitForExistence(10, 2); sleep(1); impress.typeKeys("<tab><enter>"); + sleep(1); Assert.assertEquals("The typed text is saved!", text, copyAll().trim()); }