sw/qa/uitest/writer_tests6/save_readonly_with_password.py |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 54e99c0bdea45ee76fd5d10c9712e848a010ed39
Author:     Xisco Fauli <[email protected]>
AuthorDate: Tue Mar 1 14:30:27 2022 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Thu Mar 24 21:10:26 2022 +0100

    uitest: add prints to see the current dialog
    
    See
    
https://ci.libreoffice.org//job/lo_tb_master_linux_dbg/36931/consoleFull#-156104958948ce9c26-9d0a-43a8-83d8-c44f54920d59
    
    I suspect it might fail because there is a dialog displayed
    
    Change-Id: Ia68b780d5a3881a6e555e6a4bc3086c6c9644749
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130793
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sw/qa/uitest/writer_tests6/save_readonly_with_password.py 
b/sw/qa/uitest/writer_tests6/save_readonly_with_password.py
index 5e6e8380345f..5593e852d7ed 100644
--- a/sw/qa/uitest/writer_tests6/save_readonly_with_password.py
+++ b/sw/qa/uitest/writer_tests6/save_readonly_with_password.py
@@ -10,6 +10,7 @@ from uitest.framework import UITestCase
 from libreoffice.uno.propertyvalue import mkPropertyValues
 from org.libreoffice.unotest import systemPathToFileUrl
 from uitest.uihelper.common import select_by_text
+from uitest.uihelper.common import get_state_as_dict
 from tempfile import TemporaryDirectory
 import os.path
 
@@ -47,6 +48,9 @@ class save_readonly_with_password(UITestCase):
                         with self.ui_test.execute_dialog_through_action(xOk, 
"CLICK", close_button="save"):
                             pass
 
+            win = self.xUITest.getTopFocusWindow()
+            print(get_state_as_dict(win))
+            print(win.getChildren())
             self.ui_test.wait_until_file_is_available(xFilePath)
 
             with self.ui_test.load_file(systemPathToFileUrl(xFilePath)) as 
document:

Reply via email to