Commit graph

1505 commits

Author SHA1 Message Date
Caolán McNamara
be940ae030 run cypress tests with mount namespace defaults
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I72749f46090f90f73835eabfc02dab9e1771b229
2024-07-17 16:49:30 +02:00
Caolán McNamara
6e73f37a7c disable mount_namespaces for tests for now
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I535ddda2a8c68f57a5f9372e6d452c8a0de63ef2
2024-07-16 07:09:42 +02:00
Gökay Şatır
ba4165f19a Update cypress test.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I1eda2452534645a48a55b63aead216ae7dedc144
2024-07-15 13:42:40 +02:00
Gökay Şatır
9932ad7516 Remove unused files, variables and functions.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I2a3d802905705775ce58266a57d0d50149cf3bfa
2024-07-11 12:54:25 +03:00
Gökay Şatır
8a8149b292 Fix failing impress hyperlink mobile test.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ic1446d2b89ba6f60899181c3748c61cfaa3ee3be
2024-07-02 23:59:58 +03:00
Neil Guertin
6fd6cb1ccf Fix failing impress annotation tests
There is some instability with annotation ids. Sometimes it has
the id annotation-content-2 instead of annotation-content-1.
(or -3 instead of -2). The fix is to make the test look for either id.

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ie3759b5001f7194efea2d613752363bb0462f61f
2024-07-02 15:41:48 -04:00
Jaume Pujantell
fa7e792eeb cypress test for hyperlink pop-up copy in calc
Adds a test for copying a hyperlink in calc outside of edit mode
throught the hyperlink pop-up.

Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: Iac42f785aeb3170486c594c31098ca2e143c4c04
2024-07-02 16:24:37 +02:00
Neil Guertin
510ed07741 Fix failing test mobile/calc/cell_appearance_spec.js
Mobile wizard was failing to reopen after being forced
closed by selecting a cell. In this file, it only affects
this one testpoint. Solution: Close mobile wizard gracefully
before reopening

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I39c5e8e7da5e576d65e13426f7074aa4547dfba0
2024-07-02 07:57:03 -04:00
Neil Guertin
94420363de Improve logging for helper.copy()
Before: cy:command ✔  window
After:      cy:log ✱  helper.copy()

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: If3d0383364a5aca4de3efc2cb034031a658d4c69
2024-07-02 07:57:03 -04:00
Gökay Şatır
bccde29e5b Skip 2 unstable tests for now.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I84f34be6253af1fd1c103027575e7b0b1bf946e5
2024-06-29 09:31:19 +03:00
Szymon Kłos
8b665983f3 cypress: fix apply font in top_toolbar_spec
probably broken due to on demand rendering rework

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I37379b423748922a93297720ee0401ac1510f96b
2024-06-28 22:17:13 +01:00
Neil Guertin
5b126820d2 Fix failing test multiuser/writer/annotation_spec.js
Increased wait before inserting comment
Wait was added in a5e6a81cdd

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ia2aa4c901fc57d6700b43c7e0db0380055877081
2024-06-26 16:27:09 +02:00
Neil Guertin
5c26cd67cd Fix failing test mobile/writer/table_properties_spec.js
typeIntoInput was failing. Solution: Wait for the field to fully
load before typing

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I9c9fc50a1bfa3a579278bfaaf1a5a5e43b5f9f02
2024-06-26 16:19:39 +02:00
Szymon Kłos
df158a918a calc: don't jump to own cursor if not looking
If we have cell selected on the bottom of the sheet and
we scroll up to watch something else so we don't see the
cursor: if other user will add row above - we will jump
to our own cursor. It's because it changed the address:
like A500 to A5001.

Let's use "following off" mode to avoid that.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7908dba5c3ae8d18d9f9478d038212eaf91187cf
2024-06-21 14:34:16 +02:00
Szymon Kłos
0f461ed312 calc: scroll to the cell so it is visible
This fixes a bug in scroll distance calculation.
When we opened spreadsheet with initial position
somewhere down - we didn't scroll enough to see
the selected cell. Let's be sure it is visible
by showing it on the center of the screen. So
behavior is similar to the desktop application.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7f6699d5c512851678aaf2d0f624b84542485598
2024-06-21 14:34:16 +02:00
Gökay Şatır
bbb1af4c98 Fix multi-user tests.
Disable some lines for now.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ib27bc79c574e7b5dfe9360b82705942d116da763
2024-06-21 14:56:40 +03:00
Gökay Şatır
966736c766 More Cypress updates.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I58c47a8a775ff98ea315eeb4454ad1ca8324b85b
2024-06-21 14:56:40 +03:00
Gökay Şatır
4ddfcb924b Fix impress_helper and insertion_wizard. Cypress tests.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I55f244357c5f36f95f33f1611e3eed48c5bc918e
2024-06-21 14:56:40 +03:00
Gökay Şatır
2acf157be3 Cypress mobile fixes.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Iebeacd904117667aba23ea2607bc8ea04873e1ae
2024-06-21 14:56:40 +03:00
Gökay Şatır
5d450ac34b Update Cypress.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ic8c0ef2a149931d8a28eaf8f7c8bea99fad9722b
2024-06-21 14:56:40 +03:00
Gökay Şatır
371e674e2e More Cypress updates.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I45a8f5edee5cfa3e7649f22c7e6f0a9084b72483
2024-06-21 14:56:40 +03:00
Gökay Şatır
2502c9c397 Cypress changes.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ief91f61ba67868d12612267fe9c265dd67fb6fb0
2024-06-21 14:56:40 +03:00
Gökay Şatır
0174ac971c Cypress changes.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I0cb935b2d0a1a97d272ebf73bc407dad93af670b
2024-06-21 14:56:40 +03:00
Caolán McNamara
220593408e make header invalidation regression test reliable
On each side of the header there are two markers that are invalidated
when the header is entered/exited.

The two invalidations follow each other and were sufficiently
geometrically close enough that they fall into the same tile. Depending
on timing the 2nd invalidated marker square might be handled as an empty
update to the updated tile from the 1st marker invalidation.

Just make the header taller to move the markers into different tiles to
always generate changes to two seperate tiles.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Iba548d6972c17552f95c798cf3b4e4f7691354a5
2024-06-18 10:19:14 +02:00
Caolán McNamara
ef93803305 drop cypress 'ResizeObserver loop limit exceeded' workround
to see if we still see this problem, which might be indicative
of something that happens outside of tests too.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I88fdeb11bb5820457f02c5c89ef4559bdb624669
2024-06-11 12:04:43 -04:00
Andras Timar
abf67f009f Adapt cypress test to string changes in co-24.04
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibf706971dee4119a0bb3b4c897e6a51a712add83
2024-06-10 20:38:13 +02:00
Gökay Şatır
772339446c Skip a failing test for now.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I5f662c186bbb87c58e5b3e56861628612f1ed012
2024-06-06 21:22:17 +03:00
Gökay Şatır
441642c9da Don't check text selection handlers on desktop. They're hidden on desktop.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I826c7c2af914f1480b55b1dd394eb57307a41997
2024-06-06 21:22:17 +03:00
Skyler Grey
e36d6ffb9b fix: fix UI preference inconsistencies
Add helper functions for fetching preferences from localstorage and
ui_defaults. By having these in unified helpers, we can be certain that
we're not making differences in the priority or use of different stores
which can cause UI inconsistency.

BREAKING-CHANGE: This changes the naming of many of the preferences in localStorage, effectively resetting lots of UI preferences

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I4cc9cc885aa8cd0b40646629cd73bef236963a94
Fixes: CollaboraOnline/online#9166
2024-06-03 16:16:50 +00:00
Darshan-upadhyay1110
74f0979880 Add cypress test to verify input element state after update message
- this test will check input element getting set to it's right state after update on jsDialog
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ib22dd0c5d6c6ab95650617480c137b306b8a6e80
2024-05-28 13:28:18 +02:00
Szymon Kłos
f8a64d5407 cypress: quick fix for rounding error
unblock CI from:
cy:command ✘  assert	expected **<tspan.TextPosition>** to have attribute **y** with the value **'3286'**, but the value was **'3285'**

error

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0ccb209c12e15a829f99f8323bf7b1ee8ca39aa0
2024-05-28 12:17:42 +02:00
Neil Guertin
6bb1054c52 Upgrade to cypress-tags 1.2.2
cypress-tags has fixed their npm publishing
Upgrade to take advantage of dependency updates
Reverts commit 873485f479

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ib4128dd4224a70777eaace0bf1e4bc14974a5189
2024-05-20 06:44:54 -04:00
Neil Guertin
36a58aa7ef Reenable screenshots on cypress failure
Also remove SCREENSHOT_FOLDER environment variable, this
information is available from Cypress.config(), and if it needs
to change it should be set there.

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Idbfb627fa818a6864da355a990dbac2589f8df37
2024-05-18 12:30:31 +02:00
Neil Guertin
873485f479 Lock cypress-tags to 1.1.2
cypress-tags published an update today with some missing files.
This keeps us on the old version until they can fix their release.

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ie7b2ec506cae4bc244a70b4502a85d3a7530954b
2024-05-16 17:06:26 +01:00
Neil Guertin
1ea58908be Fix failing tests [desktop|mobile]/impress/apply_paragraph_props_text_spec.js
Another test failing because of shape selection.
Select text directly and remove calls to shape selection helpers.
Unskip a testpoint.
Merge horizontal alignment testpoints (also vertical alignment testpoints).

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I729870d6cd43457d2297005f4c815fe29de39f42
2024-05-16 12:23:37 +01:00
Michael Meeks
0c7cb448ca cypress and C++ tests: enable full trace logging to keep timing the same.
It appears that both cypress and the C++ WOPI tests are extremely
timing sensitive, and fixing this should not hold up merging the
logging improvements. So for now don't disable logging in these modes.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I43e8397263e6960b668a29e7ad67f45394c52b52
2024-05-14 18:37:52 +02:00
Michael Meeks
ff8dbe7fde cool#9045 - close clipboard race by waiting for completion.
To avoid the HTTP[S] request racing the websocket and sometimes
loosing we need to:

* get a notification from the Kit when the copy / cut is complete
* wait on a Promise for this, to allow the HTTP fetch to start
* re-work to do a single, rather than two fetches by sharing
  the download promise.

Change-Id: Ic23f7f817cc855ff08f25a2afefcd73d6fc3472b
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-05-14 13:19:52 +02:00
Neil Guertin
6bc7e3a356 Fix mobile/impress/apply_font_text_spec.js
Stabilize test by removing lots of extra shape selection
Stabilize "Apply highlight on selected text" by waiting before
color picker.

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I60e5e571be181bd6f43db1727854973aca446b99
2024-05-12 11:47:22 -04:00
Neil Guertin
5a9c6a0e37 Cypress: Add cypress-terminal-report printLogsToConsole option
This is already the default behavior. Writing it here just
makes it easier to change.

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Iebde47f5b64ae1509e7f37b884ad71fdc067b164
2024-05-09 08:27:42 -04:00
Neil Guertin
982f865cc7 Skip failing test desktop/writer/invalidations_spec.js
Test is failing because of an extra empty invalidation
when clicking between the body and the header

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I887c9bc028f2b831d205bba2944c734cafb1743d
2024-05-09 08:27:37 -04:00
Gökay Şatır
62239215da Update the test for now - it omits visibility check.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I9c55379afa9175360e16e036e7620b83168ce9f8
2024-05-09 13:28:54 +03:00
Gökay Şatır
e0e5a6a418 Cypress updates.
Change the cell selection circle color in dark mode.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I23826bdf0a09fa7e8b1c25132842f98e37997034
2024-05-09 13:28:54 +03:00
Gökay Şatır
b9e7d071a2 Add functions for sections' shown status.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ia480364c76b149177643971a0a29a2410c32475e
2024-05-09 13:28:54 +03:00
Gökay Şatır
932b99cf12 Finalize text selection handles.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I3d7a9a01903455c2b4c9303a27dd37702650cbb3
2024-05-09 13:28:54 +03:00
Caolán McNamara
70a89a4d43 allow a test to start without sidebar
instead of starting with sidebar and then removing it

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: If2ea433cd3d5fc18ad549bd3df095de15c126ad0
2024-05-08 21:04:48 +01:00
Caolán McNamara
e40bcccc4f update impress/apply_font_shape_spec.js to pass
probably since merge of

commit 5140abd2c94b96f2a32f0f7416ae79239a2af187
Date:   Fri May 3 14:14:26 2024 +0500

    tdf#152906: use correct Y offset

or similar of that topic

change 3285 to 3286

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I4bd3509313c7a5801d5284eebc3882bf3550eed9
2024-05-08 18:53:46 +02:00
Neil Guertin
c54683f349 Fix failing test mobile/writer/table_properties_spec.js
Was failing in moveCursor after slowdown introduced by
https://git.libreoffice.org/core/+/ca31493a
Rewrote test to use the same select helper as all the other
tests in the file

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I5197a095d47e727526636b232df1f3be45e5bb52
2024-05-08 10:58:17 +02:00
Neil Guertin
ec83c14f3d Fix failing test desktop/writer/top_toolbar_spec.js
Follow up of be235b1386

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Idab5a5bac4ac15aa0e13a2d660271a305fad945a
2024-05-08 08:06:51 +02:00
Neil Guertin
be235b1386 Fix failing test desktop/writer/top_toolbar_spec.js
Remove scrolling to get to toolbar buttons
Add test specifically for scrolling

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I885d3ec33c8d570dfad45893c5d267b7fe8cc0b9
2024-05-07 16:00:44 -04:00
Caolán McNamara
b440a86f73 get coolwsd log on failure
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I88545054c4a79dd0152d13699f80e7f1b235d267
2024-05-07 15:12:55 +01:00