Commit graph

1133 commits

Author SHA1 Message Date
Rash419
e93a193ae0 Revert "Remove unnecessary .waits from image tests"
- image test consistently fails without waits in CI

This reverts commit b529c96a48.

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I66bd85c8fe1ce28ccab8d644a98265145d3de64b
2023-03-14 17:31:57 +05:30
Szymon Kłos
243bb8f3f0 cypress: adjust file description to new typing
we send value on every key press now, but core still
sends updates back, after we update core to not notify
us with the same value it can be reverted

this prevents us from having incorrect text when typing long
sentences and receiving updates with delay

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If87c3f1c83018920dfaa8f3c31f567b25df27c61
2023-03-14 10:31:26 +01:00
Gökay Şatır
1ba537d8bf Remove vex from _switchToEditMode function in permission.js.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I444ea61eb6cf6c92858833a30be92ee9a6a36509
2023-03-14 10:30:37 +01:00
NickWingate
b6652a3f29 Force viewport to be correct size for image tests
Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: I01d3b7ddaa0a48b59b43466ffdd2e5bb54ccc7c8
2023-03-14 11:25:43 +05:30
NickWingate
b529c96a48 Remove unnecessary .waits from image tests
Change-Id: I6ad9b0f256d7613a784684569966dbcf36ec6e2a
Signed-off-by: NickWingate <nick.wingate@collabora.com>
2023-03-14 11:25:43 +05:30
Gökay Şatır
a3e29e23cf Remove vex from parts.js.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I85a754f2bb6bd738bd30384c9b40f40104daacc5
2023-03-10 10:49:59 +01:00
Rash419
7dedd17f2e cypress: disabled flaky tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I066470a1284420aa8a906deeec47b2c6829916b9
2023-03-09 14:02:05 +01:00
Rash419
40abccbe31 cypress: fix spreadsheet-tab1 element getting detached from dom
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I3ad4c775d08095493dbde02d67dcd5727c07a699
2023-03-09 14:02:05 +01:00
Gökay Şatır
fe1b57c328 Remove vex from delete sheet modal.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I605104e16ab02d106717319e4a9bff537db13e3c
2023-03-09 10:38:51 +03:00
Gökay Şatır
fdd039e502 Modify cypress tests for JSDialogues.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I566ddb2c3111d2d1689b91c678ac9aa92e88ab05
2023-03-03 11:38:33 +03:00
Gökay Şatır
e665b58772 Update vex based tests for about dialogue.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I8d572a1256b51bdce9b5ad4605ab0c0105d75b07
2023-03-02 11:29:58 +03:00
Szymon Kłos
0b814c70a6 cypress: mobile hyperlink converted to jsdialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3bcc7d82f03ae5f9abfba796e482a0eefac6f3bc
2023-02-22 17:59:49 +01:00
Szymon Kłos
4193f79fa7 cypress: hyperlink converted to jsdialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2b79fdb15102fe4a7631cbb8ee654f9be9c72709
2023-02-22 17:59:49 +01:00
NickWingate
e6b26f3daf Consistent captial letters on tests
Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: Id8300044ef8a9f6cf60b0cb24b2ec18d82aae15d
2023-02-21 21:15:45 +05:30
NickWingate
e63b58eeff Specify which part of comment box to click
Three elements have the `.cool-annotation-collapsed` tag
Specify the correct one

Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: I1c8f16c9ef7cfedecf02fe0c46afbf5cbde90a7c
2023-02-21 21:15:45 +05:30
NickWingate
8ef1cb153b Document repair checks for jsdialog
Previous code checked for a tunneled dialog

Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: I87f78bd8ef6542dc11132f5938d8c5f3838c5c5c
2023-02-21 21:15:45 +05:30
Rash419
7d63a55119 cypress: disable impress searchbar tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Id3a2555cc9e3adbcf1a616ec3c5d4404c7293c5b
2023-02-10 18:45:16 +05:30
Szymon Kłos
61e76e0b0b jsdialog: convert delete slide modal from vex
can be found in menubar -> slide -> delete

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I04db9d5a071a229c1a964c3c512582eff05256bf
2023-01-30 09:02:48 +01:00
Gülşah Köse
fb6c4c96c0 Show pdf settings dailog on mobile view.
Merge downloadas-pdf and exportpdf actions to have same functionality
on desktop and mobile view. Now we can see setup dialog on mobile view.

On mobide view Download as -> PDF should show PDF download
settings dialog before downloading the document same like
desktop view.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Ib0dd3877973dae025e7a6d4f15f2fa26351ea369
2023-01-19 09:54:51 +01:00
Gülşah Köse
ce5d6360e0 Show epub settings dailog on mobile view.
Merge downloadas-epub and exportepub actions to have same functionality
on desktop and mobile view. Now we can see setup dialog on mobile view.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Iebe05e65f331de6737be88288fac34244cfcde18
2023-01-19 09:54:51 +01:00
Rash419
3434c0c67c cypress:refactor: undo_redo_spec.js
- make sure jsdialog-overlay doesnot exist

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic04ed73d91d3a019d89406322045221370349ac7
2023-01-14 02:29:53 +05:30
Szymon Kłos
350ce691b8 cypress: skip failing macro test
now we have text + icon in the cell

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2634ef8b23dff1ab3226f7a20e5305f9cb69487a
2023-01-05 15:24:18 +01:00
Rash419
8c2c732727 cypress: fix: inconsistent writer/image_operation_spec.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Iff79e224fa10b4b8462280dcae650c96b3a933e4
2022-12-16 09:09:07 +01:00
Szymon Kłos
80ebb7735c Simplify rename of tab
introduce JSDialog based input modal

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If0525c3baa50f8f45777f196e13e542cee789051
2022-12-16 09:09:07 +01:00
Szymon Kłos
f991361377 Delete row/column break from menu
This feature didn't have any visual indicator

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ice0a9f953cbd2028d21f514882b7997d775b7d7a
2022-12-01 08:53:53 +01:00
Rash419
abcf097795 cypress: fix: notebookbar test failing
impress/table_operation_spec.js was failing due to split dialog converting to jsdialog
writer/top_toolbar_spec.js failing due to change in name of clear formatting button

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia70b80540ebfee66b1499b931c1fc32ab6f9df95
2022-12-01 12:23:58 +05:30
Szymon Kłos
284b19a786 cypress: use class instead of id in writer/shape_properties_spec.js
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Icbd24e1dabe03a5acf24db5f99915125cbf165e9
2022-11-29 10:29:13 +01:00
Szymon Kłos
d02da6f985 jsdialog: introduce showModal
showModal is going to be replacement for vex

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic339dcb0338a6a15b85b7653e09f5a721e49640b
2022-11-29 09:39:28 +01:00
Szymon Kłos
863476ba9e cypress: add content controls mobile test
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I80963a7877d73be7075cdfab1a73eaad742e8d8a
2022-11-25 17:30:39 +01:00
Szymon Kłos
07c3538589 mobile-wizard: create separate window container
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8317cb7ec9ae31de07c3f2dd4a691afafce9073d
2022-11-25 17:30:39 +01:00
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