diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-02-25 13:01:22 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-02-25 15:29:54 +0100 |
commit | 33a49a99c76ca1879dbb0202384aa939a6d44a75 (patch) | |
tree | 7a49e7eb2f1a25af9d679b6c711573484c244fa2 /sw/qa/uitest/writer_tests7 | |
parent | a24eac37fbf8a325b09c3b575c568621a696a560 (diff) |
uitest: introduce wait_until_file_is_available
For export - import tests
See https://gerrit.libreoffice.org/c/core/+/124654/5/sw/qa/uitest/writer_tests6/edit_file_properties_before_saving.py#91
Change-Id: I3c2537a43cc69067355f18162d6463e268420090
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130530
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/uitest/writer_tests7')
-rw-r--r-- | sw/qa/uitest/writer_tests7/tdf119661.py | 2 | ||||
-rw-r--r-- | sw/qa/uitest/writer_tests7/tdf90401.py | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/uitest/writer_tests7/tdf119661.py b/sw/qa/uitest/writer_tests7/tdf119661.py index 566372fc427c..689410f64a4b 100644 --- a/sw/qa/uitest/writer_tests7/tdf119661.py +++ b/sw/qa/uitest/writer_tests7/tdf119661.py @@ -64,6 +64,8 @@ class tdf119661(UITestCase): xFileName.executeAction("TYPE", mkPropertyValues({"KEYCODE":"BACKSPACE"})) xFileName.executeAction("TYPE", mkPropertyValues({"TEXT": xFilePath})) + self.ui_test.wait_until_file_is_available(xFilePath) + with self.ui_test.load_file(systemPathToFileUrl(xFilePath)): self.xUITest.executeCommand(".uno:LinkDialog") diff --git a/sw/qa/uitest/writer_tests7/tdf90401.py b/sw/qa/uitest/writer_tests7/tdf90401.py index 3cab231f72b2..b08c1f88248f 100644 --- a/sw/qa/uitest/writer_tests7/tdf90401.py +++ b/sw/qa/uitest/writer_tests7/tdf90401.py @@ -63,6 +63,8 @@ class tdf90401(UITestCase): xFileName.executeAction('TYPE', mkPropertyValues({'KEYCODE':'BACKSPACE'})) xFileName.executeAction('TYPE', mkPropertyValues({'TEXT': xFilePath})) + self.ui_test.wait_until_file_is_available(xFilePath) + with self.ui_test.load_file(systemPathToFileUrl(xFilePath)) as writer_doc2: # check removed personal info on comments @@ -134,6 +136,8 @@ class tdf90401(UITestCase): with self.ui_test.execute_dialog_through_action(xOpen, "CLICK", close_button="save"): pass + self.ui_test.wait_until_file_is_available(xFilePath) + with self.ui_test.load_file(systemPathToFileUrl(xFilePath)) as writer_doc2: # check removed personal info on comments |