diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-03 22:20:04 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-06 17:38:15 +0200 |
commit | 89aaa17a0a4413f07da2bc5084b0164f15dc01ac (patch) | |
tree | f7e207793fbab64e00af5a9ce6dfe2212af5e331 /sw/qa/extras | |
parent | 3b75f9add7ed80e803b0771d86892d6ca0f47e71 (diff) |
UITest: introduce guarded context managers
They should be used wherever we need to make sure to execute
some action in tests regardless of the assertion success. They
follow their plain counterparts, and execute finalizing code
at all outcomes. This e.g. allows to assert when a dialog is
open, and have it properly closed on failure, so that the test
is not left in hung state.
Only two wrappers are implemented now: load_file and
execute_dialog_through_action.
sc/qa/uitest/chart/chartLegend.py is updated to use them.
Change-Id: Ib9cf44304f0d3ab8fa3377922ed36d2d866031b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116692
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/qa/extras')
0 files changed, 0 insertions, 0 deletions