Commit graph

1103 commits

Author SHA1 Message Date
user
b94652030a cypress: fix run-* on remote desktop
This takes coorect DISPLAY for remote desktop

Signed-off-by: user <szymon.klos@collabora.com>
Change-Id: I2abe7dc463c6b381ec54ad98d8bbffde5b38d892
2022-11-22 12:43:09 +01:00
user
371e4b41de cypress: fix check-* on remote desktop
Signed-off-by: user <szymon.klos@collabora.com>
Change-Id: I3207aa000610d2b560dd36c096c8743b2746ebb6
2022-11-22 12:43:09 +01:00
user
f5513da43e cypress: adjust desktop/calc/scrolling_spec.js
Signed-off-by: user <szymon.klos@collabora.com>
Change-Id: I6592908543595b182ca632c871ca8b2f30687800
2022-11-10 12:12:10 +03:00
Dennis Francis
5d0dbe8b90 fix for autofilter test-case
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5e631495e0fd08e94249f22d3ed5e9f709537405
2022-10-14 11:55:39 +03:00
Szymon Kłos
3b1658eff7 cypress: fix mobile repair test
rollbackPastChange function already opens the menu
so don't do it twice

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I930f669589da1f9e18840dae4013d81a49707639
2022-09-13 19:51:44 +02:00
Szymon Kłos
68d381c608 cypress: use class instead of id in impress/apply_paragraph_props_text_spec.js
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I19dec053df5039a803580c7f59f9db07195f6159
2022-09-13 16:17:24 +02:00
Szymon Kłos
8585e0e933 cypress: use selectFromColorPicker which doesn't rely on generated id's
prefer picker id, not palette id with number which is generated

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I52d30c3991b516378e82455fdc104b5d94e94f91
2022-09-13 11:29:21 +03:00
Szymon Kłos
23fc2b3137 cypress: use class instead of id in calc/alignment_options_spec.js
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic3a6035dd0ace1305f2e48fc39972f8227d24fa8
2022-09-13 11:29:21 +03:00
Skyler Grey
fd0c49a0be Make the repair document dialog into a JSDialog
- The repair document dialog is a leaflet dialog
- As this dialog is online-side only, I'll use the JSDialog builder
  directly rather than writing a UI file
- Most of the code to build the dialogs is already very adaptable from
  looking at the protocol of existing JSDialogs that come from the
  server & where the code goes, however a small change had to be made to
  dialog modifications to allow us a callback function, as otherwise we
  would send off to the server whenever we pressed on a list item
- Finally, if there's no list to show, we'll show a bit of text saying
  that there's nothing, as otherwise it looks like an empty/broken dialog
- If we're on mobile, we'll need to use the alternative helper (the one
  that handles mobile wizard building)
- Fix a cypress test for writer (although impress and calc seem to have
  tests for this too that aren't implemented: this should be handled in
  a follow-up PR)
- Fix mobile tests

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Iab9e943a428e66b05e28819c2ee1001a2deffd2c
2022-09-08 12:52:19 +05:30
Pedro Pinto Silva
3dd88b5af6 Cypress: Force click zoomin and zoomout plus wait before check value
Form tests seems to be a bit unreliable due to toolbar down items
- Not be visible sometimes
- And when the zoom check up is too fast

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4319db1a833335300780d052555f33afc976f33a
2022-09-06 17:01:21 +02:00
Pedro Pinto Silva
8896ad25b5 Cypress: Scroll before attempting access StateTableCellMenu
Before scrollbar-right would get in the way making it impossible
to click in the desired element

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6a00dfe8cddf503d39d8e7207b46bba1588f9b96
2022-09-06 17:01:21 +02:00
Pedro Pinto Silva
1a29f1004a Don't use vex btn default btn CSS classes (rename)
By Renaming .vex-dialog-button-primary -> .button-primary and
.vex-dialog-button-secondary -> .button-secondary

- So we can remove duplicity on CSS buttons
- Easier to set vex primary and secondary button to use our css classes
- This way there is no need to hunt those specific cases down.
- Update cypress tests

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I82f4b33560367805eeeeb5aec9af8d1abd313788
2022-09-06 17:01:21 +02:00
Szymon Kłos
9e7f528778 jsdialog: correctly setup & test value for spinfields
Adding attribute by jQuery and testing in cypress was
not working: visible value was correct after change but
in DOM we had original value which was tested by cypress.

Use val() to setup value and have.value for cypress to test.

Unify inputs so we don't use attributes but always props.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1b3acccbd6d4ba493f867044b9b3c1f17b16873e
2022-08-26 18:26:00 +05:30
Andras Timar
cf6e22c22c Fix typos in comments
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I813f652b516c79f350b46317e589b91e0ef39a1a
2022-08-23 18:37:44 +02:00
Szymon Kłos
cba04c9570 jsdialog: allow boolean as treeview entry state
after core commit:
https://cgit.freedesktop.org/libreoffice/core/commit/?h=distro/collabora/co-22.05&id=62d5622540c7251bb870a837b5ca6a836fac6f01
DumpAsPropertyTree: use more efficient overloads of JsonWriter::put

we use boolean not string

this also enables test broken by that core commit

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I029463ecf100f31ed567af2c7434b87dbfb84265
2022-08-23 18:10:04 +02:00
Rash419
0dff307695 cypress: temporarily disable autofilter test
problem: when we click on checkbox to filter the data in autofilter dialog the checkbox itself disappear
if that is expected behaviour then cypress test needs to modified if not bug needs to be fixed first before
enabling this test

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I4dbfcf8abebe1c65e27c8c090bfce3ed0c59d086
2022-08-23 13:13:52 +05:30
Skyler Grey
fdc8ef970d Adjust scroll test coordinates
- The test contains coordinate ranges for where the scrollbar must be
- As PR #5131 moves the scrollbars, we need to adjust these coordinates
  so the test passes

Signed-off-by: Skyler Grey <skyler3665@gmail.com>
Change-Id: I6d037a304cc86553c47e81acbc63643742db2f66
2022-08-18 11:25:27 +02:00
Szymon Kłos
9664627cab Revert "cypress: skip file properties for now"
Now it is merged on core side.
This reverts commit 4e3b34d6dd.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie8f7e8f3e8d269af186e0a3d82aed73f63577789
2022-08-18 08:36:20 +02:00
Szymon Kłos
9dea7201b2 jsdialog: unify clear formatting icon
There is no reason for custom handler.
Thanks to that we don't need special css.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9b576d4a6ef5668ec281c4e1348335d3b93bbac0
2022-08-17 10:21:26 +02:00
Szymon Kłos
4e3b34d6dd cypress: skip file properties for now
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1be203229599912e3099f9a3e904e0562479ed3d
2022-08-16 16:04:22 +02:00
NickWingate
a70415fe7b cypress: add tests for file properties
- test document description
- write test for custom properties
    - text, duration, yes/no types
    - disabled until core implements custom props

Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: If0205b90d899772ac8f7f98d4eda2cbc23117d0f
2022-08-16 16:04:22 +02:00
Skyler Grey
f182183d6b Rewrite testing of splitting table cells
- This is a followup to 3ce47b0c16
  (https://github.com/CollaboraOnline/online/pull/5106)
- This commit rewrites the split cells test to work with JSDialogs
  (merged in https://gerrit.libreoffice.org/c/core/+/137791) and
  re-enables that test

Signed-off-by: Skyler Grey <skyler3665@gmail.com>
Change-Id: I7901cfa1489618d005faffe68af0883e0ca998a1
2022-08-07 08:14:53 +02:00
Skyler Grey
3ce47b0c16 Disable testing of splitting table cells
- The split cells test currently uses tunneled dialogs to make sure that
  we can split table cells
- There is an open gerrit review to switch the split cells dialog to
  JSDialogs (https://gerrit.libreoffice.org/c/core/+/137791) which is
  blocked because the tunneled dialog needs to be removed in it, and
  that fails this test
- This test needs to be temporarily disabled to give coreside a chance
  to merge that review and build a new version of the libreoffice
  archive. Once that has happened, this test should be replaced with a
  rewritten version

Signed-off-by: Skyler Grey <skyler3665@gmail.com>
Change-Id: I0bb51e3cdbc04020e03c8d87696d014a0f693554
2022-08-05 07:57:47 +02:00
Rash419
cff30c51d5 cypress: fix: ui-pushbutton element keeps getting detached
clickonIdle waits for the DOM element to be idle so test doesnot fail due to ui flickering

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I43b0800b23970326a4a6e84bfc662b67fea4f364
2022-08-05 01:06:13 +05:30
Szymon Kłos
3982724e53 cypress: allow correct plain text clipboard formatting 3
Our plain text clipboard output generated additional newlines
at the beginning of every paragraph. To fix that we need
fix in core side which now fails due to expected bad format in cypress.
This is interim state where we accept both old and new format.

see for reference: https://gerrit.libreoffice.org/c/core/+/136893
lok: don't pretty print html for online
I2b17d62398d947fcf1d3fb1ed6005c3063d114f2

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia2d75c75f40dffbe08d1c77e09c2331db18734f4
2022-07-11 11:14:27 +05:30
Szymon Kłos
e3c6ff58f3 cypress: allow correct plain text clipboard formatting 2
Our plain text clipboard output generated additional newlines
at the beginning of every paragraph. To fix that we need
fix in core side which now fails due to expected bad format in cypress.
This is interim state where we accept both old and new format.

see for reference: https://gerrit.libreoffice.org/c/core/+/136893
lok: don't pretty print html for online
Change-Id: I2b17d62398d947fcf1d3fb1ed6005c3063d114f2

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6adea1250bb4d54713e0a189b89930e82522a571
2022-07-09 10:05:53 +02:00
Szymon Kłos
63f718e35e cypress: allow correct plain text clipboard formatting
Our plain text clipboard output generated additional newlines
at the beginning of every paragraph. To fix that we need
fix in core side which now fails due to expected bad format in cypress.
This is interim state where we accept both old and new format.

see for reference: https://gerrit.libreoffice.org/c/core/+/136893
lok: don't pretty print html for online
Change-Id: I2b17d62398d947fcf1d3fb1ed6005c3063d114f2

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I70fa8be619a62709d6e5ada32b7a670f90d7b2bf
2022-07-08 18:04:15 +05:30
Pedro Pinto Silva
e1b25c69a8 Cypress: Adjust scrollbarPosition assertion
Since we remove a bottom padding in the toolbar-wrapper
with 3d27de7eb14e77cb4f0a94685b474ec2c42d6229

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icf272e5c29455868cd43cf494935401ec10229e0
2022-07-08 13:22:08 +02:00
Rash419
3667fbc2d8 cypress: NB: update tests to click on arrow to open color picker
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I57cd50a532c0fdb5a6f0ebebf77e97c9e8e990e3
2022-07-05 22:12:30 +05:30
Marco Cecchetti
3f21f15d7a cypress test for fullscreen presentation anim spin, grow and shrink
Added test for 2 emphasis animations:
- spin
- grow and shrink

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I3e5477b327e2d56776258cddf5de84617c1dc0a2
2022-06-27 16:01:30 +02:00
Szymon Kłos
13ef21aa1e notebookbar: unify color control with core
in desktop case color widget should show the latest selected
color not current one. split the button into arrow with dropdown
and "last color" button (icon)

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I07fcc94d69e14b030cf9f1bfe3ae50f0df333ec7
2022-06-24 12:45:16 +02:00
Rash419
9d06f8d5cc cypress: re-enable impress/table_operation_spec.js
modify the test to use 2x2 table when testing 'insert column before/after' tests
no idea why we don't get svg when there is 3x2 table

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Id927fede691c4483206fa2b65c450f11cc980581
2022-06-06 15:48:08 +03:00
Rash419
82eacd26bc cypress: skipping columns test in impress/table_operation_spec.js
cannot reproduce locally temporarily skipping the test

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2007a2dc643306551be859b1bdcf48982fe4a33d
2022-05-19 13:33:20 +05:30
Rash419
f90fbe23bb cypress: added new function selectCellsInRange
after the jumbo sheet patch selecting entire row and merging all the cells becomes costly and cypress timeouts
therefore select first 100 cells and test the merging functionality

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I8568bbdbabdccc55c2938f886619a1d178ae7d22
2022-05-18 19:14:07 +05:30
Luboš Luňák
b999f12500 make cypress tests work also with 16384 columns
Some places tested for AMJ being the last column, but with 16k
columns it's XFD. Without this those tests run in an endless
loop when run with Calc set to 16k columns.

Signed-off-by: Luboš Luňák <l.lunak@centrum.cz>
Change-Id: I6249e0ec975634b60aaf3291e021b74b4aa3cc5d
2022-05-18 06:59:08 +02:00
Rash419
0a203ad91e cypress: added desktop calc/autofilter_spec.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I48f4ceb591cbdf178b08b44ad1f833b52d5c004d
2022-05-10 22:31:16 +05:30
Rash419
3e095928aa fix:cypress: abort without error in CI
Identified the faulty test, on heavy load the test gets stuck on waitUntil command
skipped the test for now

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia4b7ca081098e7e5b6f15135304131521629e524
2022-05-04 11:13:14 +05:30
Szymon Kłos
256b50e926 cypress: fix after formulabar conversion to jsdialogs
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0792e2b1e044220dc44ae8155ac7b30b47a7ea8d
2022-04-23 10:58:55 +02:00
Szymon Kłos
cbde6f324a cypress: tunneled formulabar was removed
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I040bbc8c9a5c76a367de046acf2a05e6dfb88920
2022-04-23 10:58:55 +02:00
Szymon Kłos
c4f5d2735f formulabar: move buttons to jsdialog implementation
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2ad2c345435453456ad69c036b7d7e5a73a27550
2022-04-23 10:58:55 +02:00
Szymon Kłos
496256a96b jsdialog: remove table- prefix hack
so we will not have problem with updates not catching
widgets with modified name - not needed not

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifa29d3971120482c3dae4ede3db5bcf31ea1af95
2022-04-23 10:58:55 +02:00
Andras Timar
4c7332f44f Fix cypress test after InsertZWNBSP->InsertWJ
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia21c27e80507d7be4b44935e0a7dc225ad0f7776
2022-04-21 15:01:57 +02:00
Mert Tumer
4d5cd2b54b cypress: modify writer/annotation_spec test
now we dont need to click on the collapsed comment
because now after insert comment they will be selected
already.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ica69e5a092f29896c1d872deb384d31b867dddc6
2022-04-18 10:22:31 +03:00
Rash419
4dc39241f0 cypress: fix:ui-expander-label getting detached from dom
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I471d220cd15b66693b6e43bcf5ee83276921ff9c
2022-04-14 13:23:21 +05:30
Pedro Pinto Silva
83b13fd454 Cypress: Do not hard target buttons based on their position
No need to specify if it's first or second button as there is always
only one primary button. On top of that this avoids maintenance work
whenever for some reason the button is not the first in line.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idd3ef60023e88d1a9a8fd6f465dc4c63c068debd
2022-04-03 19:29:49 +02:00
Pedro Pinto Silva
8d9317daa8 Fix button order on HyperlinkDialog
Follow the same order as anywhere else such as annotations, JSdialog or
even tunneled dialogs:
primary action aligned to the left

Also update cypress test: Do not target button position related classes
instead, rely solely on main classes

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iac209aa343f22ddfdbd5662eba43d7adaa3f0892
2022-03-28 14:15:44 +02:00
Szymon Kłos
ff7e4a8b3b co-22.05: mobile writer/table_properties_spec.js
- use .unoXXX class instead of id
- check only if height was changed on Optimal Row Height command

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibfa93076237b15e16ae1851e3a66b4b239c42a2d
2022-03-21 09:35:49 +01:00
Szymon Kłos
7e6f3d5590 co-22.05: mobile writer/insert_formatting_mark_spec.js
- add possibility to specify UNO command alias for newer
  version of core so we will call all the versions for
  compatibility of online with many versions of core

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I380fb1d2fd7f63bac297745401fa9d619f693348
2022-03-21 09:35:49 +01:00
Rash419
23f0790413 cypress: change template files tests to assert readOnly
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib557424de7407346ca947bfe06289b772ec46d10
2022-03-15 14:05:12 +01:00
Rash419
42204db587 cypress: removed repeated tests and enabled notebookbar tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2c31b7433559d776dbde179c2659e23d8b104d59
2022-03-15 15:57:18 +05:30