diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-11-04 12:26:17 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-11-04 13:53:46 +0100 |
commit | d1232ee6b5e5cc3c811ef3ad72c83e9bd884bfe3 (patch) | |
tree | 9ab0f38c46d4a814be8c3e97bf5c5a7a3b0665f8 /sc | |
parent | d842f8cdab1ceec151fdc9b5b0c5b55553fc46c8 (diff) |
uitest: reset formula syntax back to Calc A1
otherwise, it will interfere with other tests
Change-Id: Ib671d0e5e0a0d47a42ed911d4f9de68b2f7fee9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105288
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/uitest/range_name/tdf137617.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sc/qa/uitest/range_name/tdf137617.py b/sc/qa/uitest/range_name/tdf137617.py index 78039ff81369..f0184e4ad6d9 100644 --- a/sc/qa/uitest/range_name/tdf137617.py +++ b/sc/qa/uitest/range_name/tdf137617.py @@ -93,6 +93,25 @@ class tdf137617(UITestCase): self.assertEqual('Result4', get_state_as_dict(xPosWindow)['Text']) + # Change formula syntax back to "Calc A1" + self.ui_test.execute_dialog_through_command(".uno:OptionsTreeDialog") + xDialogOpt = self.xUITest.getTopFocusWindow() + + xPages = xDialogOpt.getChild("pages") + xCalcEntry = xPages.getChild('3') + xCalcEntry.executeAction("EXPAND", tuple()) + xCalcFormulaEntry = xCalcEntry.getChild('4') + xCalcFormulaEntry.executeAction("SELECT", tuple()) + + xFormulaSyntax = xDialogOpt.getChild('formulasyntax') + + props = {"TEXT": "Calc A1"} + actionProps = mkPropertyValues(props) + xFormulaSyntax.executeAction("SELECT", actionProps) + + xOKBtn = xDialogOpt.getChild("ok") + self.ui_test.close_dialog_through_button(xOKBtn) + self.ui_test.close_doc() # vim: set shiftwidth=4 softtabstop=4 expandtab: |