office-gobmx/uitest
Miklos Vajna 015da04a8f sw floattable: fix current page number when editing document with a split fly
UITest_writer_tests6's
tdf124675.tdf124675.test_tdf124675_crash_moving_SwTextFrame_previous_page
failed in the SW_FORCE_FLY_SPLIT=1 case, since the current page after
typing was 3, not 2.

It seems this change is wanted, since the total page count increases by
2, so it's consistent that the current page increases similarly with
typing. Also, repeating the UITest in Word (after positioning the cursor
at the top paragraph in the document) also produces page 3 as the
current page.

Fix the problem by locally enabling split flys for this test and then we
can assert that we match Word. This requires a new context manager, but
that set_config() is really similar to other context managers in the
class that return no value.

The original purpose of the test was to make sure we don't crash,
anyway.

Change-Id: Id0dfde23a8726c8799950a6e4fdd1d85f135eafc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149315
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-03-22 13:29:47 +00:00
..
demo_ui
impress_tests uitest: reset value when changing the measurement unit 2023-02-07 09:33:40 +00:00
libreoffice
math_tests tdf#152850: Fix bad scoping of MathML frac command 2023-02-21 12:11:06 +00:00
packaging
ui_logger_dsl
uitest sw floattable: fix current page number when editing document with a split fly 2023-03-22 13:29:47 +00:00
__init__.py
loginterpreter.py
Makefile
Module_uitest.mk
README.md
test_main.py uitest: add a way to optionally use the same soffice process for a testsuite 2023-03-20 12:40:22 +00:00
UITest_demo_ui.mk
UITest_impress_demo.mk
UITest_math_demo.mk

UI Testing Framework

The code for the UI testing framework and the UI tests.