diff options
author | Artur Neumann <artur@jankaritech.com> | 2019-06-19 12:15:08 +0545 |
---|---|---|
committer | Zdenek Crhonek <zcrhonek@gmail.com> | 2019-07-03 07:08:05 +0200 |
commit | 25bf2c5c0074fbcc162c02593d896705e225b5b5 (patch) | |
tree | 08ac12619509ea6087cccfacd70379a0fef82913 /sc/qa/uitest/range_name | |
parent | af4d86a664e36cd8a0a985dd13f95300b9b48fbd (diff) |
UI tests opening all dialogs in calc and see if it crashes
Open a dialog, close it by the given button e.g. "cancel" or "close".
If the dialog has an enabled "OK" button open the dialog again
and try to close it also using the OK button.
For every dialog a complete new document is opened to ensure test-separation,
otherwise one action could hamper the next action.
E.g. ".uno:Protect" would hamper any edit action.
For dialogs that already have other tests a "cancel/close" test was added to
the previous test. As far as possible opening new documents was avoided in those
cases. And in some cases a simple check was added to check if the "cancel" button
does not change anything.
Change-Id: I727cad43603770245f27baf752a1985f9a754847
Reviewed-on: https://gerrit.libreoffice.org/74333
Tested-by: Jenkins
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
Diffstat (limited to 'sc/qa/uitest/range_name')
-rw-r--r-- | sc/qa/uitest/range_name/tdf119954.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/qa/uitest/range_name/tdf119954.py b/sc/qa/uitest/range_name/tdf119954.py index abda0088218c..c7ac8d56ce8b 100644 --- a/sc/qa/uitest/range_name/tdf119954.py +++ b/sc/qa/uitest/range_name/tdf119954.py @@ -78,5 +78,11 @@ class tdf119954(UITestCase): self.assertEqual(get_cell_by_position(document, 0, 1, 2).getFormula(), "") self.assertEqual(get_cell_by_position(document, 0, 1, 1).getFormula(), "") + # check cancel button + self.ui_test.execute_modeless_dialog_through_command(".uno:DefineDBName") + xDefineNameDlg = self.xUITest.getTopFocusWindow() + xCancelBtn = xDefineNameDlg.getChild("cancel") + self.ui_test.close_dialog_through_button(xCancelBtn) + self.ui_test.close_doc() # vim: set shiftwidth=4 softtabstop=4 expandtab: |