summaryrefslogtreecommitdiff
path: root/uitest/writer_tests
AgeCommit message (Collapse)Author
2020-03-03uitest: split up UITest_writer_demoMiklos Vajna
I used solenv/gbuild/Trace.mk to measure where the time is spent at the end of an incremental 'make check'. The last 141 seconds is spent executing UITest_writer_demo alone. If that test is executed in isolation, it takes 289 seconds. I measured the cost of all the individual .py suites and arranged them into 8 separate UITests, this way the make -j8 cost is 101 seconds (i.e. 35% of the baseline). IOW this is supposed to speed up 'make check' with 3m13s, provided you have the code already built. Change-Id: I1ffee3a06b8fd84d7b9a0295547900df11f11f68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89835 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-02tdf#129568 Rename Default Style to Default Paragraph/Page/Table Styleayhanyalcinsoy
Change-Id: I21672c9b78e52c3c9b2687cb2c0ab21dcf67f19a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86538 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2019-12-28UITest: fix spellDialog.SpellingAndGrammarDialog.test_tdf46852Mike Kaganski
Two problems were present: 1. If local system default locale is not en_US, then in created document, text has some other language initially; and instrted text also gets this language. This may result in no replacement suggestions for the spelling errors, and "changeall" is not active, so expected sequence of changes and clicks does not happen. Fixed by setting language at cursor before paste explicitly. 2. On Windows, the returned text has \r\n paragraph breaks, which didn't match the regex having \n. Fixed by postprocessing the text before match. Change-Id: I320fc62c3c27dfe699fb45669c081df30cb66d6e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85877 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2019-11-18Fix 'is' operator for comparisonJens Carl
The 'is' operator should not be used for comparison on some types of literals. In CPython this works by accident and CPython 3.8 introduced a SyntaxWarning (see https://bugs.python.org/issue34850). Change-Id: Ic4ba481579d13fd1496431ded59dd626a05fc0c6 Reviewed-on: https://gerrit.libreoffice.org/83033 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-11-08Add UI Test for tdf#128004Muhammet Kara
Change-Id: Id2b95d21799f8fa4b55a304afda739219fee06ff Reviewed-on: https://gerrit.libreoffice.org/82323 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-07-26UI tests opening all dialogs in writer and see if it crashesArtur Neumann
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. 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. Simmilar tests for calc have been renamed and code dublication has been removed by moving main part of the code to a helper file Change-Id: I01f197cae8bc6fe0345661fe042b655f16229485 Reviewed-on: https://gerrit.libreoffice.org/75124 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2019-07-12Add test_edit_target to AutoRedactDialog UITestMuhammet Kara
Change-Id: I105ce2e5f4d72369b05f776624979c3e82950757 Reviewed-on: https://gerrit.libreoffice.org/75469 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-07-12Add UITest for AutoRedactDialogMuhammet Kara
Includes: * test_open_AutoRedactDialog_writer() * test_add_target() Change-Id: Ia70f4cdf01f8a69aa42d0514eecc20d2a2ada530 Reviewed-on: https://gerrit.libreoffice.org/75429 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2019-03-11weld SvxMenuConfigPage/SvxToolbarConfigPageCaolán McNamara
Change-Id: I166ac6c0be8461ea38db711796d1e14fc5b78998 Reviewed-on: https://gerrit.libreoffice.org/68889 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-20Add UI test for the Customize dialogMuhammet Kara
Change-Id: I00109ef54ec7cfc1f4976794daa92ded3cd6ce4b Reviewed-on: https://gerrit.libreoffice.org/53119 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-05-09Typos in change 53934heiko tietze
Change-Id: I7d2dd64beb70d44113c3c548ff6e13ff1d766614 Reviewed-on: https://gerrit.libreoffice.org/54017 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
2018-05-09tdf#114006 - New default set of gradient presetsheiko tietze
New set of gradients incl. l10n and ui test Change-Id: Iee303a39ad721b5a4e8b9adb78ee5a82227b84f4 Reviewed-on: https://gerrit.libreoffice.org/53934 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2018-04-03Create temp copies of test docs in Python/UITestsStephan Bergmann
...where necessary, so the tests will succeed if SRCDIR is a read-only tree. Change-Id: Iea4c52d5982d3eba079088ef1670ff557ce30c3f Reviewed-on: https://gerrit.libreoffice.org/52122 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-02-18tdf#114817 new bitmap presets for Area Fillandreas kainz
Change-Id: Icc48efc2f6c085ccf0754620dc1cbf5132a7f824 Reviewed-on: https://gerrit.libreoffice.org/49551 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
2018-02-02uitest for tdf#114724 headings outline tracking in NavigatorJim Raykowski
Change-Id: I4390c3d33d69ddd93880545f58d0ef81469c960d Reviewed-on: https://gerrit.libreoffice.org/47865 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-11-25fix uitest/writer_tests/data/3pages.odtRene Engelhard
This in uitest/writer_tests/goToPage.py is supposed to be a uitest for "go to page 2 and 3" but uses hardoded enters until page flips over. Looks overly flaky to me. Replaced by proper page breaks Change-Id: I8c0ea5809bd24d4122cfd956fcd048af97c01480
2017-11-24uitest - writer Go to page dialogZdeněk Crhonek
Change-Id: I3088bb4b802b533db46dc3ab1d9d2fd241aa1fb0 Reviewed-on: https://gerrit.libreoffice.org/45009 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-10-13don't assume concrete spelling substitutionsDavid Tardon
E.g., on my F-27 with system hunspell 1.5.4, the substitutions are dogg -> dodgy catt -> cat frogg -> frog which causes the test to fail... Change-Id: I6d192fcc74629c2f3b9d4780576499c47de96b26
2017-08-08Fix UITest_writer_demo with --enable-ext-languagetoolStephan Bergmann
...which would insert requests to fix duplicate "frog frog" and capitalize "frog" at the start of a paragraph, confusing test_tdf46852 Change-Id: I76704af9e2e87ffdb3093ae68f0949b67ef9bf9b
2017-07-23uitest: handle the case without dictionaries in the UI testsMarkus Mohrhard
Change-Id: Icc63deeb182f0c380780332793a3af1f7a51577b
2017-07-20tdf#46852 fix spellcheck continue at beginningLuke Deller
When a spellcheck reaches the end of the document, it is supposed to be able to continue from the beginning of the document to the point at which the spellcheck was started. This was not working in the case where the word at the starting position was replaced due to a spelling correction, which causes the starting position to be lost. Fix this situation by recording the position immediately *before* the spellcheck starting position, so that it will not be affected by a spelling correction *at* the starting position. Change-Id: I9483fd5937dc1e235f6f9639d4856fe15e3d47a6 Reviewed-on: https://gerrit.libreoffice.org/40123 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-06-15uitest: Test text directionXisco Fauli
Change-Id: I66943e432eadedaf4a1bc362861ea8be67b076c3 Reviewed-on: https://gerrit.libreoffice.org/38839 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-15uitest: test page orientationXisco Fauli
Change-Id: I265730664cf7dfb1d4a105023ae1e3b4c1fca4f5 Reviewed-on: https://gerrit.libreoffice.org/38838 Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org> Tested-by: Jenkins <ci@libreoffice.org>
2017-06-15uitest: Using dimensions in assert isn't a good idea...Xisco Fauli
... as they're normally not equal across platforms and machines At least, check the paper format we choose Change-Id: I7f1047157f3b6135c2a037b9cc783889d17d3072 Reviewed-on: https://gerrit.libreoffice.org/38785 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-14uitest: Add test for insertPageHeader and tdf#107427Xisco Fauli
Change-Id: I8dd7c1a802b021392f25e92d25d9122082f17722 Reviewed-on: https://gerrit.libreoffice.org/38770 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-14disable UI test that does exact comparisonMarkus Mohrhard
Change-Id: I3e66a0574f6833fcd45a95a336fc07b523c0011c
2017-06-13uitest: Check default paper formatsXisco Fauli
Change-Id: Iaf889339f6a757fa5a3e992fb4438df842ea76eb Reviewed-on: https://gerrit.libreoffice.org/38738 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-13uitest: Use subtest hereXisco Fauli
Change-Id: I0e54b950412b4130bb4155d93af2ccafb03d2950 Reviewed-on: https://gerrit.libreoffice.org/38744 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-07Fix uitest failureXisco Fauli
It doesn't break for me locally Change-Id: I61957fe4e7699937d17b74e8655efe2a6d1f6e6a Reviewed-on: https://gerrit.libreoffice.org/38502 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-07uitest: InsertBreak dialogXisco Fauli
Change-Id: Iab997ecedd11167cc079b3c5e3c4308383439448 Reviewed-on: https://gerrit.libreoffice.org/38468 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-06-07uitest: Combine all table tests in one fileXisco Fauli
Change-Id: Ief374a02eabed4587874cb6182742ae86c084d62 Reviewed-on: https://gerrit.libreoffice.org/38474 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-05-17tdf#104649: Add uitestXisco Fauli
Change-Id: I0e1c757e4857ff11481230606a0f982d260c24c0 Reviewed-on: https://gerrit.libreoffice.org/33065 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-04-13Related tdf#105922: step increment is a property of the shapeKatarina Behrens
not of the gradient. Therefore don't reset selection in the gradient list if step increment changes. This hopefully fixes also the failing UI test Change-Id: Ia3da23d80ee9601b40309a2f213bd3b2c850ff5a Reviewed-on: https://gerrit.libreoffice.org/36508 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-04-08uitest: disable failing assertMarkus Mohrhard
Seems to be related to ff1f83dd08b7b0169301ffe0a53499a27af613b9 Change-Id: I75c750c1fced15c766dd7fce7eae675b57cba25e
2017-03-09uitest: test backgrounds in writerXisco Fauli
Change-Id: If3bf2848bb9437c7cb7ffec37c315888fef47c88 Reviewed-on: https://gerrit.libreoffice.org/35008 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-03-08tdf#87199: Add uitestXisco Fauli
Change-Id: Ib57d71777f3e8a1b17dfc8127365dbf2f6ad6102 Reviewed-on: https://gerrit.libreoffice.org/34981 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-02-27uitest: use correct method to close a dialogMarkus Mohrhard
Change-Id: Ib62cc9465bb874d48b4e294a6f18d98de04a5518 Reviewed-on: https://gerrit.libreoffice.org/34672 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-02-07tdf#79236: Add uitestXisco Fauli
Change-Id: I916438d688ec24c67b581bf2e025215dda228e97 Reviewed-on: https://gerrit.libreoffice.org/34000 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-01-15tdf#80663 Add uitestXisco Fauli
Change-Id: Icc9d7d84b44ecbd0531f538ec227b37998b1f5e2 Reviewed-on: https://gerrit.libreoffice.org/33097 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-01-15tdf#92611: Add uitestXisco Fauli
Change-Id: I9b07b185fd1c3f43c06713d4e5fde8d97b2991ef Reviewed-on: https://gerrit.libreoffice.org/33099 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-01-14tdf#96067 Add uitestXisco Fauli
Change-Id: Iac2690789c5a82bfdf140067c1b0dcdaa423a8ab Reviewed-on: https://gerrit.libreoffice.org/33066 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-01-14Check number of columns and row in the inserted tableXisco Fauli
Change-Id: I6c6c9b38a9eb1a2912373008564b4838bd3fc3f8 Reviewed-on: https://gerrit.libreoffice.org/33067 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2017-01-14tdf#104158: Add uitestXisco Fauli
Change-Id: If2391365e71df0e95dc1be177e3595a62e0d6eab Reviewed-on: https://gerrit.libreoffice.org/33057 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2016-12-24uitest: add a helper method for typing textMarkus Mohrhard
Change-Id: If450e3f0ff1e2a8f33db05e9512a13e5771115a8 Reviewed-on: https://gerrit.libreoffice.org/32406 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-10-26normalize existing emacs/vim mode-lines in python filesMichael Stahl
Bunch of these were setting C++ or Make modes and icky tabs... Also, reportedly Emacs can figure out to enable python-mode automatically. Change-Id: I50072488fb92cb4d27aa3f74f717a28ae3967543
2016-07-13uitest: move more parts to the new directory structureMarkus Mohrhard
Change-Id: I9dab4c0beef08b04e65dc0dae337a822041cf218
2016-07-13uitest: remove the imports for pyuno and timeMarkus Mohrhard
Change-Id: I384e9ee1a38aad80bf3a4906a4955c57e4895538
2016-07-13uitest: move more code into the new directory layoutMarkus Mohrhard
Change-Id: Ic5d08f08c1fccc74be09cea7887d3acb910e7636
2016-06-26uitest: bring some order into the file messMarkus Mohrhard
The uitest/uitest directory will be used for the actual uitest framework. The libreoffice directory should contain any common LibreOffice related code. Change-Id: I3f6394ff4be83b89a8764eab10a154e755237d35
2016-06-22uitest: remove sleeps and prints from impress and writer partsMarkus Mohrhard
Change-Id: Ic4c4ba74701303df1ff38c5ed6ed7d521b369053