Commit Graph

1476 Commits (master)

Author SHA1 Message Date
Pranam Lashkari ed62a19701 cypress: add tests for tracked comments operation
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If1a2bbe7d9d3ec7fa821db91aea1f7b3ed6f2c1e
2024-02-18 09:45:46 +05:30
Szymon Kłos 2bd25b15df cypress: test disabled state updates
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib0c123e82360edcdf6c4bad533b40b3d5cc04bc2
2024-02-14 13:16:58 +01:00
Szymon Kłos a82d1feafe jsdialog: handle disable action on mobile
- unify desktop and mobile toolbox code
- toolbox should apply disabled state on child nodes
- this is needed to handle disable action, previously
  we received JSON for complete widget

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I018d7505a383ec45c9260f3629daaa9771579995
2024-02-13 13:46:22 +00:00
Neil Guertin d1822e4298 Cypress test logging improvements
Print full test name in beforeEach and afterEach
Hide xhr requests
Hide repeated actual and expected values on passed assertions
Add information to failure message

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ic1a20481c05afb05b9c29d0bd428b59615d49dc7
2024-02-08 11:55:06 -05:00
Miklos Vajna 944491024f cypress, desktop/writer/top_toolbar_spec.js, 'Insert Special Character.': add conditional 3rd click
My local run failed in this test, because scrolling to the right just
twice resulted in a partially clicked toolbar item, so:

cy.cGet('#Home-container .unospan-CharmapControl').click();

failed. Force the clicking so a half-visible toolbar item also gets the
click.

An alternative would be to add a 3rd click if scrolling to the right is
still possible, but that looks less clean.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I4caa3dc79df1bbbd5bd0c7e88ef1baea8ae4b17e
2024-02-08 08:25:55 +01:00
Neil Guertin 090a52cece Remove cSetLevel (unused)
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ic1eaae123ae70f5f09553d6c69bfa699a02a921f
2024-02-07 07:16:37 -05:00
Neil Guertin d209ec78cc Upgrade to Cypress 13
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I8edbcbb72e1ad016df0ff6a2466d20865f517683
2024-02-06 10:05:11 -04:00
Neil Guertin b69642e9fb Remove waits from cypress tests
Remove most calls to cy.wait(), reduce and comment the rest.
Stub waitUntilIdle and clickOnIdle
Fix many failing tests
Reduce total cypress runtime by 45%

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I62ddfdcbc3ab107654459ebece2d325eca0c6156
2024-02-02 17:05:40 -05:00
Neil Guertin d462bf907d Log test name when starting and finishing test
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I15b3e0c02ad841872dc9d472672c112860f2bf47
2024-01-31 12:51:56 +00:00
Szymon Kłos b085d3d214 cypress: fix writer/top_toolbar_spec.js insert special character
In 24.04 we activated dialog which informs about idle dialog.
It covers full screen so some tests fail on that.
Add {force: true} to ignore that in failing case.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I11a183deb91ca35a2ddecc63b62bcb82b8ad1d0f
2024-01-30 15:05:46 +01:00
Szymon Kłos f623c6edb3 cypress: adjust to simplified notebookbar structure
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id8748b333354abe2f5f75fb081915f6558243587
2024-01-30 07:17:32 +01:00
Miklos Vajna e68c8617f5 cool#8023 browser, clipboard: add image paste testcase
Fails when we don't check for '<img' in Clipboard.js
_navigatorClipboardGetTypeCallback().

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Idde76a7da26bac624c15c316be8cac638032c848
2024-01-29 08:50:25 +00:00
Miklos Vajna beb20e6ea4 cool#8023 browser, clipboard: add plain text paste testcase
Fails when Clipboard.js _navigatorClipboardReadCallback() doesn't check
for text/plain.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I1aa2ce52e48a8d03ec3af24f91a5eaced02f52b8
2024-01-29 08:50:25 +00:00
Miklos Vajna f8bc853fda cool#8023 browser, clipboard: add external HTML paste testcase
This is the case when the HTML has no own marker and we actually parse
the HTML data.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I8b1690faccbc9ebc6c67557cde8897eccf641fdc
2024-01-29 08:50:25 +00:00
Miklos Vajna d16ac21431 cool#8023 browser, clipboard: add internal HTML paste testcase
Fails with Clipboard.js _navigatorClipboardRead() returning false
unconditionally.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ib715cb205a1c01fb3c5208e88285124e68d3c232
2024-01-29 08:50:25 +00:00
Szymon Kłos b24a9183d8 cypress: test view jump on merged cell with split pane
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iec6ff179a28dce802d330a3f59ac484189a25c48
2024-01-25 09:58:31 +01:00
Neil Guertin ae918ea449 Enable Idle test
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I109e8c1b4e14be096741ceea5285456b77a38d04
2024-01-18 11:11:33 -05:00
Szymon Kłos 7ecbcc07f0 cypress: disable failing idle tests
Let's get this merged and try to fix later.
It works locally but not on CI.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I62dda307575f6b8e9eac40b061b2f8c9e609f2e7
2024-01-15 16:07:38 +01:00
Szymon Kłos a776ddf48d cypress: test idle handling
For faster testing use special values in Cypress case.
- check inactivity every 1s
- out of focus timeout - 1s
- inactivity timeout - 7s

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9dd51f2098486917898b7624ac5ade56521f9e96
2024-01-15 16:07:38 +01:00
Andras Timar 7d0d35fc25 Change 'Voice Over' to 'Screen Reading'
VoiceOver is the iOS name for the function. Let's pick a more neutral name.
"Screen Reading" was suggested by Michael Meeks.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I9d6f7f59d06bf83e0324dc095f3c141e122ad5f4
2024-01-11 15:58:36 +01:00
Caolán McNamara 534708fad3 cool#7951 add cypress test
add regression test for:
https://github.com/CollaboraOnline/online/issues/7951

confirmed test fails with reverted core commit of:

commit 754cd4309b5b055a05b57f5d25ed128c439f460b
Date:   Mon Jan 8 15:04:07 2024 +0000

    Related: cool#7951 don't invalidate when creating a new view

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I4e2bf09f8fbe36919a9826e8cf29cc5250520dc6
2024-01-11 10:25:42 +01:00
Neil Guertin 484214e7c4 Fix failing test desktop/calc/focus_spec.js
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ibcd6a2b3d27cbd56d8a24de5f12316bacbd2061f
2024-01-10 14:21:51 -05:00
Neil Guertin 7fcb928503 Fix failing test multiuser/writer/invalidations_spec.js
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: If34a07e6a70f2c4293e8a2eb9d5e3d5fd14258ac
2024-01-10 18:18:55 +03:00
Neil Guertin 0dad48ad18 Fix failing test multiuser/writer/annotation_spec.js
Wait for animation after annotation save

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Id1be5607e15ac23596e527c3e27fca83c91ee380
2024-01-09 07:58:12 -05:00
Neil Guertin 0dd5dd6f60 Rename getFrame() to cframe()
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I1f220687eb972d4b3d65cb26fe0201b1ccd24993
2024-01-05 07:12:17 -05:00
Szymon Kłos 5ed163faa1 cypress: autofilter dismiss by click outside popup
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib5a447c9ba772fdc8441b22e98e531505424a6f1
2024-01-05 12:48:47 +01:00
Darshan-upadhyay1110 798bb55143 Add more cypress test in Autofilter (Calc)
Below cases are covered in current patch
- `Filter by Color` in autofilter should have radio buttons.
- Changes should be applied whene we select any option from `filter by color` submenu.
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I1a757e09be81df934b46d48f71e8be28fc48c984
2024-01-02 10:16:49 +01:00
Neil Guertin 80a2f4cca6 Replace cy.cGet with cy.getFrame in document load
And other changes to reduce logs by about
20 lines per test (15% of total)

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ia6a1c96752816c5cd9fb11368cf921bdce9936ff
2023-12-28 14:58:06 +03:00
Szymon Kłos a4add51e93 calc: avoid jumping on large cell selection
If we had very long or tall cell - maybe bigger than a screen
on every selection we tried to show it on the screen what
caused view to jump. If cell is bigger and partially visible
left view at the same position to avoid "jumping".

Steps to reproduce:
1. merge many cells - longer than one screen width
2. scroll in the middle of merged cell
3. select the cell
Result: jump to the begining
Expected: no jump if it is paritally visible

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I04da5cd346f175728222888a039a796b271e00d1
2023-12-27 20:09:27 -05:00
Neil Guertin f4c855792f Use new custom command cy.getFrameWindow()
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I4f54b35f01b41bfb47a1d5d359de5cdab4cb9640
2023-12-27 10:06:05 +03:00
Neil Guertin 5979eb9a1f Add cy.getFrame() custom command
The intent is to eventually replace cy.cGet and some other helper
functions with getFrame, which is cleaner and has better logging on both
pass and fail.

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I911a5552d69634495a9036d020754351665419cf
2023-12-25 10:51:37 +03:00
Neil Guertin f86ab6ae9a Remove inadvertent it.only to re-enable tests
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ia9f2a35f0e334c97565edc4334df943723a958d7
2023-12-22 12:56:02 +03:00
Pranam Lashkari 31ece2a8fc cypress: enable all slide operation tests
test got disabled in e81b53a

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie40dc67d7f45dac702d69d7222c2bc32a4c89dd0
2023-12-21 23:35:26 +05:30
Neil Guertin fa87fb803e Better logging for cy.cGet()
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I587415c7601fd6bb10f3aa6e708109fd7ccd3b81
2023-12-21 08:10:34 -05:00
Pranam Lashkari e81b53ab29 cypress: check if comments are duplicated with slides duplicate
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie776fadfaf52b6424a83bd8aa0bdeea78e004309
2023-12-20 06:35:57 +05:30
Skyler Grey 61aa037ad9 Fix several regressions from touch unification
Touch unification (b3bff28bed, change ID
I9016fc15ad3ccb3664af348fdcdca006495b0778) was a rework of the input
system to better support touch devices, but unfortunately it caused some
fairly serious regressions. This commit fixes the following:
- Triple/Quadruple clicking was no longer recognized on non-touch
  devices.
- There were some issues recognizing wrapped events
- Pens were considered to be touch devices, but this broke some
  remote/virtual machine setups. It's possible that this change will
  cause a regression for apple pencil users. I plan to get an Apple
  pencil to test whether preventing pens from being touch devices breaks
  the Apple pencil workflow instead
- manualDrag was taken to mean "is on a touch device". This is only
  almost true, causing some input to be incorrectly ingnored when it was
  not
- manualDrag and _manualDrag were confused. They affect different
  things, and we now recognize this

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Iab0d3bcca588eaed14469597868a9c4e2dcf8488
Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
2023-12-18 15:28:13 +01:00
Caolán McNamara fe32aeffe4 Sometimes we only request two rows of tiles in writer on an initial load
Sometimes we only request and only get two rows of tiles in writer on an
initial load. Most frequently I see this with a non-debug online server
via nextcloud of the default "Welcome to Nextcloud" docx in firefox in
the 2nd or 3rd tab of opening the same document. While the page doesn't
visually resize there is a resize delivered after the initial request
of tiles.

clientvisiblearea x=-8160 y=0 width=28785 height=1575 splitx=0 splity=0 Socket.js:272:10
clientzoom tilepixelwidth=256 tilepixelheight=256 tiletwipwidth=1920 tiletwipheight=1920 Socket.js:272:10
tilecombine nviewid=0 part=0 width=256 height=256 tileposx=0,1920,3840,5760,7680,9600,11520 tileposy=0,0,0,0,0,0,0 oldwid=0,0,0,0,0,0,0 tilewidth=1920 tileheight=1920 Socket.js:272:10
...
tile: nviewid=1001 part=0 width=256 height=256 tileposx=0 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=72 ver=92 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=1920 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=73 ver=93 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=3840 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=74 ver=94 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=5760 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=75 ver=95 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=7680 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=76 ver=96 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=9600 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=77 ver=97 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=11520 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=78 ver=98 Socket.js:272:10
...
tileprocessed tile=0:0:0:0:1920:1920:1001,0:0:1920:0:1920:1920:1001,0:0:3840:0:1920:1920:1001,0:0:5760:0:1920:1920:1001,0:0:7680:0:1920:1920:1001,0:0:9600:0:1920:1920:1001,0:0:11520:0:1920:1920:1001 Socket.js:272:10
...
DEBUG: sizeincreased CanvasTileLayer.js:5702:11
...
tilecombine nviewid=0 part=0 width=256 height=256 tileposx=0,1920,3840,5760,7680,9600,11520 tileposy=1920,1920,1920,1920,1920,1920,1920 oldwid=0,0,0,0,0,0,0 tilewidth=1920 tileheight=1920 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=0 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=71 ver=99 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=1920 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=79 ver=100 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=3840 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=80 ver=101 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=5760 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=81 ver=102 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=7680 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=82 ver=103 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=9600 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=83 ver=104 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=11520 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=84 ver=105 Socket.js:272:10
tileprocessed tile=0:0:0:1920:1920:1920:1001,0:0:1920:1920:1920:1920:1001,0:0:3840:1920:1920:1920:1001,0:0:5760:1920:1920:1920:1001,0:0:7680:1920:1920:1920:1001,0:0:9600:1920:1920:1920:1001,0:0:11520:1920:1920:1920:1001 Socket.js:272:10
...
clientvisiblearea x=-8160 y=0 width=28785 height=12075 splitx=0 splity=0 Socket.js:272:10
...
...no tile requests...

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id263adbbd98ad0a7c6143d241d0d91e1c28eaac5
2023-12-14 10:28:45 +00:00
Pranam Lashkari 009cb14c07 cypress: added multiuser annotation tests
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I9afae096d7a9e925e01e0c9faee57254ed1d074d
2023-12-07 22:38:59 +05:30
Pranam Lashkari 93bdcc349b Annotation: revamp comment autosaving
Original approach before comment autosave:
When we save a new comment, original DOM element which user was editing
is removed from the DOM and new comment DOM element is created from the data and message sent by core.

Previous comment autosave approach:
When we save a new comment, original DOM element which user was editing
is not removed but kept in editing mode. We register the comment message sent by the core
but react and create new comment DOM element only after user clicks on save or cancel.
This lazy initialization caused many regression due to juggling of the new and old comment DOM element.
All these problems were in JS side only, reloading doc would bring comment in correct state.
This approach gave smoother transition between different comment states without any flickers.

New comment autosave approach:
Simple as the original approach, when comment loses focus we save it as normal comment.
When new DOM element created via core comment message, we immidietly set it to edit mode.
This approach may have a little flicker when we replace old comment DOM element with new comment DOM element.
Overall this approach requires less condition checking which makes it easy to maintain and hopefully reduces any regression from previous method.

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I4098085825ede65cdbf2e2243fc4d2bb1f63c716
2023-12-07 15:38:13 +01:00
Henry Castro 60e4552ca4 cypress: add unit test to check slide pane height
Change-Id: I9aacf3dcf123348e9e2b6308695a44bd14cd079b
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-11-29 09:22:47 +00:00
Szymon Kłos a0f36adf41 jsdialog: close dropdown properly
Make sure we don't expect response from server for online-only component: dropdown which doesn't have corresponding widget in the core

fixes regression on close from:
commit a23adac78c
browser: fix undefined property 'isPopup'

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I005647c77da3a866cec88a78f03dd409a098a469
2023-11-27 12:53:39 +01:00
Pranam Lashkari cfc6874c22 cypress: refector mismatching parameter in function call
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8fa8e4b1e20de0af16368cb23ca641b8d7186bfc
2023-11-24 18:36:26 +05:30
Skyler Grey e817f03785 Unify touchscreen handling, remove L.Browser.touch
L.Browser.touch is sometimes nice, but it's ultimately a flawed concept
to use it for input events. Using L.Browser.touch for input handicaps
people with mice if it's too liberal in what it classes as touchscreens,
and handicaps people with touchscreens if it's too conservative. There's
also no sweet spot: it's impossible to choose correctly if someone is
using both a touchscreen and a pointer device, as there's no right
option!

Previously many of our event handlers and some of our UI was gated
behind L.Browser.touch. This commit adds a new "window.touch" property
which is used instead. It has functions to help with event detection,
allowing you to easily make event handlers that work for only the input
devices they are designed for, without gating them behind feature
detection. This has the added bonus that - as you register all the
events - switching between a touchscreen and pointer is now not only
possible but already implemented!

For cases which don't have reasonable events to tag onto (e.g. the
teardrop for cursor movement) this commit adds "hasPrimaryTouchscreen"
and "hasAnyTouchscreen" which use the CSS media queries to detect if
there's a touchscreen attached to your device (either as the primary
input mechanism or at all). This works a lot more similarly to
L.Browser.mode, but being dynamically updated allows you to effectively
swich between touchscreen and not at-will. This still has all of the
disadvantages that L.Browser.touch did when used to register event
handlers, so my advice would be to avoid using it with events.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I9016fc15ad3ccb3664af348fdcdca006495b0778
2023-11-22 15:48:06 +01:00
Henry Castro 8b89b5271a cypress: add popup dialog unit test
Change-Id: Ieab263deaca67c7e473e028b01d9eac1c4eaafcc
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-11-21 20:28:57 +01:00
Caolán McNamara 164159ab26 add regression tests via cypress for unwanted no-change invalidations
multi-user scenarios

d) Rejoin triggers invalidations: fails with core:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=f1633dc0e06b046a9ca0f2fa53e7858be1584ffb
reverted

e) Rejoin after save triggers constant invalidations: fails with core:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=770df258bc0a66ee7551a59807d79cebcdcbb85e
reverted

https://github.com/CollaboraOnline/online/issues/7167

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I27795027a1bd186953c71807c5cfc35685af0e70
2023-11-14 19:12:26 +00:00
Caolán McNamara 7229eed150 add regression tests via cypress for unwanted no-change invalidations
single user scenarios

a) Click Empty Header: fails with core:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=f425c0aab6e33b8029bf7e87ac9b10b4b4489ac9
reverted

b) Enter Numbering Portion: fails with core:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=643c6b9a96020d5498d981c7ab081226415ab016
reverted

c) Click Existing Header: fails with core:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=ce948053b1fa9a2843886dce4642cc36c94dd0e0
reverted

https://github.com/CollaboraOnline/online/issues/7167

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I7d7283cabe6803d9258a09a858beb29083634738
2023-11-14 19:12:26 +00:00
Caolán McNamara 73a5b97b99 make this other test more robust if partial page 1 is still visible
when cursor is on page 2

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Iae8d28ad54401fbbe78a2f2429f1a6912f1ea967
2023-11-13 13:39:23 +00:00
Marco Cecchetti a5f56ce12d NC: Accessibility toggle button not set to the right state on doc load
When a document is loaded the Accessibility Support toggle button was
not set to the right state.
The problem affeced Online when integrated in Nextcloud.

Moreover the button label has been renamed to 'Voice Over' in
accordance with what suggested by NGI audit

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I5bc7d8348397691f469b6274af58e18a8d6d603c
2023-11-13 14:34:42 +01:00
Pranam Lashkari 7ab2938761 cypres: enable impress comment autosave tests
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I2197b1d485c612cbf1dd3ab712181d75c0f6ae98
2023-11-09 04:20:28 +05:30
Caolán McNamara 83f5f18d6c make this test more robust if partial page 1 is still visible when on page 2
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I6f5cc5a1d22b77fe3f9adebdb5fde086fa8e2a3b
2023-11-08 13:13:56 +01:00
Pranam Lashkari 82e76d8cb0 cypress: introduce impress comment autosave tests
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I40b2dac1e87ca465ca92bbf64b2a6ee556c23c7f
2023-10-31 20:43:58 +05:30
Pranam Lashkari 517f3fa760 cypress: introduce calc comment autosave tests
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I9e3f406938689321ac2df9f87f308466e9d5b19b
2023-10-31 20:43:58 +05:30
Pranam Lashkari e71f082412 cypress: introduce writer comment autosave tests
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ic79e9cf935f29ac407a8c5ff3900f2ad1f7449a6
2023-10-31 20:43:58 +05:30
Caolán McNamara 7d37ba6a41 we can remove this unconditional wait by conditionally waiting for enabled state
on the table toolbar items

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Icb2ea52f95c32a8163d93a7fb772d60c932a1621
2023-10-19 17:16:45 +01:00
Caolán McNamara 9ae85964db use table-delete-rows-button instead of table-delete-rows
table-delete-rows-button is inside table-delete-rows so right not
it doesn't make a difference if table-delete-rows is clicked, but
in follow up we want to check if table-delete-rows-button is enabled
not table-delete-rows

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I7f21dd6a423192ba80791bc94bf63ff39d12f0c6
2023-10-19 17:16:45 +01:00
Szymon Kłos 1d48bff888 Disable failing impress/editable_area_spec.js
this was failing on CI recently

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0332a1ea47298059ba2dac4fcc7af70738431a5c
2023-10-14 19:29:19 +02:00
Marco Cecchetti 022e32e5d2 a11y: impress: screen reader support for text shape editing
Now accessibility support can be enabled in Impress.
Created cypress tests for editable area in Impress

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: Ia2fd4e55bce3785320ec0cc9f31a6d7550ca3a82
2023-10-11 10:18:46 +02:00
Szymon Kłos 1d6d3806b7 cypress: autofilter: test autofilter on mobile
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I63f05af3f618f150bf6550b03a25ff83dfa9d3b4
2023-09-25 16:41:11 +02:00
Gökay Şatır 8ab9dd7e07 Fix the mobile comment issues of writer.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ia089ae8348c718f82fb39e80234a29a17e602a61
2023-09-11 19:47:44 +03:00
Marco Cecchetti 39132e23ec a11y: improved screen reader caret tracking on text navigation
In order to allow screen reader to track caret navigation properly
even if there is some connection delay default behaviour for
Left/Right arrow key press is no more prevented in
Map.Keyboard._handleKeyEvent. In TextInput._onKeyDown, it has been
needed to handle some special caret position, such as when cursor is
at begin or end of a list item prefix.
When left/right arrow is pressed and text is selected, selection is
cleared and caret needs to be moved by one char left/right.
However, for an editable div the behaviour is different:
- when left arrow is pressed caret moves at start of previously
selected text
- when right arrow is pressed caret moves at end of previously
selected text
So we needed to prevent default behaviour and simulate the same
behaviour that occurs in LibreOffice.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: Ifa5e9847bbbf77b934a3bcbd04545f4a55afd19d
2023-09-11 16:42:14 +02:00
Darshan-upadhyay1110 5f2ad3e5e6 Add option for print sheet
Added 2 options to print
    - Active sheet
    - All sheets
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ic4514648bd998575990bce877eda5d45884a8514
2023-09-11 14:24:33 +02:00
Szymon Kłos 03cd99d6d2 cypress: adjust mobile insert hyperlink to new dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iab68d99e9f35a7a93152466103b23e5344eea72b
2023-09-11 09:48:25 +02:00
Szymon Kłos 9cb37bc439 cypress: make slide page format test more reliable
it seems we generate previews later now
it might be related to commit 04ac02b033
    Do not request tiles until we are sure a canonical id is set

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I250c37049ba62c4cdc06b16413767edafc362dc0
2023-09-10 18:46:39 +02:00
Szymon Kłos e47f959a0c cypress: skip failing mobile annotation test
regression introduced in commit d4dcc9e748
Correct the naming of highlightComment function.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifdb4e821e7102d8efc480231aaa52aefea394b62
2023-09-10 18:46:39 +02:00
Szymon Kłos 08194fa06d cypress: skip failing switching sheet test
this is only desktop test that fails, let's skip
it until we fix the regression and not block others
from testing their patches

regression was introduces in:
commit 04ac02b033
Do not request tiles until we are sure a canonical id is set

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1de44a94121648b381df67d926bbc33dd1044b76
2023-09-10 18:46:39 +02:00
Szymon Kłos cb1c62eda6 cypress: adjust tests to new combobox
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ieb6982abbea68f5d2e8a8215d2a69f10f4123fac
2023-08-31 12:56:10 +02:00
Gökay Şatır 71e375a551 Fix typo.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I66062157325b44e37dcff0c18752894fb24b4ce0
2023-08-28 23:45:51 +03:00
Gökay Şatır d03b2cb0bb Update Cypress tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ia0a89b93762a7cd589755408b9dd22ba6652bd73
2023-08-28 23:45:51 +03:00
Szymon Kłos 6ddbc4dd75 Fix regression in tab cycle in dialogs
this is regression from commit:
f8e53bd851
Assign tab ids while defining tabs.

When opened Format -> Page Style dialog in Writer.
There was "123" label next to the tabs.
Also when switching between widgets using tab key
it was moving focus outside window.

Core is sending id as plain number what is easy to duplicate.
Let's add some unique name.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iebf70c7968f336761baf19442101ac98a948218c
2023-08-24 15:05:41 +02:00
Gökay Şatır 9fd60f55e0 Update Cypress tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I7bc9bca411f8caade56a56e9de16ad31921db16c
2023-08-16 14:30:14 +03:00
Gökay Şatır 3d1725ea44 Cypress updates.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ieefdcae70be0fce920e2e2b3d3b6ba1b179a6857
2023-08-14 14:24:46 +03:00
Gökay Şatır 7d084e40cb Update cypress tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I1c60f89d6ab68e4a61861d77383010dd7f22480a
2023-08-14 14:24:46 +03:00
Szymon Kłos eee6e49e8a cypress: fix unstable alignment test
sometimes svg generation takes more time it seems

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0e6ad493cb452a9725235f2c01c6792126b8de9c
2023-08-13 11:35:40 +02:00
Szymon Kłos 697f4a6109 cypress: fix failing table tests
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6132ec3a794de75caa6d1ba0c94e730cda94ea0b
2023-08-13 11:35:40 +02:00
Szymon Kłos b85eb1b03f cypress: fix svg text-decoration detection
this was changed in the core:
commit 0a549b2c9595cd076e3b503b67df93bff380885a
svg: export text decoration for text run not paragraph

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8906ee07c7ff88c9dcdbebe73d2c620e797a8b3a
2023-08-12 10:34:15 +02:00
Marco Cecchetti 96a7cfb25e a11y: provide info about current table and cell to screen reader
When we get in one or more tables screen reader reports row and column
count.
When we get out one or more table screen report reports "out of table"
for each table.
When the fosused cell changes screen reader reports new row/col index.
Screen reader reports cell paragraph content, too.
Added also cypress tests for checking that the table/cell description
string is correct.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I078b29a2f76f91df479f75db76113c80405f7169
2023-08-10 09:29:09 +02:00
Henry Castro 8773e0e050 cypress: cypress logs for cool.html iframe
Also logs unhandled exceptions from iframe cool.html

Change-Id: I6f7b7d1340c8818d3f81916d42d6d9ed2920e35c
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro 3c0731bf2c cypress: add emacs mode lines
Change-Id: I2cb19d34639ea6af55c693fad7bef8855a0ccba3
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro aa6be258fa cypress: upgrade version 12.17.0
Change-Id: I1464063e5149143f9a0aa4a1f5a433f5171b1d8e
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro fc791bbf37 cypress: fix missing package 'semver'
Change-Id: Ica5bd8d562127b9369b7b1fdf19a0dad3a861ef0
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro 6ea782103f cypress: logging 'npm install'
Change-Id: I6b188bae89f2389124946c0fda497c9f9744e6b4
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro 95436dcb3f cypress: fix missing dependencies
Change-Id: I5439d769dce043b8fc33416d0aa618a371314c26
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro a396c91886 cypress: check if NODE_PATH env exits
Change-Id: I69b64f1ad29e2ddd09663444922e8c1dc16411f2
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro 9bcc79b266 cypress: add option baseURL
Setting a baseURL cypress verify if the server is
running and prevents to refresh when command cy.visit()

Change-Id: I1cffc0932d6a1ec4ee9793eb3935f60e02ca2545
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro f3787c85e8 cypress: install package 'cypress-terminal-report'
https://github.com/archfz/cypress-terminal-report

Change-Id: I242e421aeb02ee3861b16af78af87c6a9db22ad5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro e69969a07b cypress: install package "@cypress/webpack-preprocessor"
"https://github.com/cypress-io/cypress-webpack-preprocessor"

Change-Id: Id261c7d1675c6f6c30d5f1661b4988511528b0d7
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro 1ac16a13f1 cypress: remove plugin package 'cypress-failed-log'
It has a bug, it executes twice beforeEach function
if fails or unhandled exception.

Change-Id: I005815d440af0309cf797e52fbfb3693896418a9
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro 2ec6bd70a2 cypress: disable screenshot
not useful for C.I. for now.

Change-Id: I1940d617b6b7c5f0a7dcae7e38c58dc5bd57f2e4
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro 51ae4a836e cypress: logging stack traces of the unit test failing
Change-Id: Ic06c62b1cbd467abe17a5ff859848ca10673b4a4
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro a32cbb311d cypress: logging unhandled exceptions
Change-Id: I82bd3552fbf0b844492340762899b5c492148eca
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro a2048ce70d cypress: fix "loadTestDoc" remote server
If it is a remote 'coolwsd' server,
there is no way to rename or copy files.

Change-Id: Ic38302de5ecf3fa08fedd485d6060ede320867bc
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro 119eee8036 cypress: fix work folder if remote server
If it is already running remote "coolwsd"" server,
there is no way to create a remote work folder.

Change-Id: I17932fcca321e2f7e0cdfcab2ad678dbcffc56ed
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro 54e79ce289 cypress: add option "verbose=1"
To debug and trace command executions

Change-Id: I5e458c2db4cedef32b24e5925b38c1ee2aaaa4cd
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro ffb0bb8f7e cypress: add option "coolwsd=server:port"
It is useful inspect logs and run unit test
with an already running coolwsd instance.

Change-Id: I6b01316d552e3d12bf63db9cc7e813adb33a20c0
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro dec0fe5a83 cypress: fix missing config file, builddir != srcdir
"Could not find a Cypress configuration file in this folder""

Change-Id: I7d5b2094d6cd10ca3da2a099650f830bee31dfb1
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Henry Castro a2920949d0 cypress: fix eslint error, buildir != srcdir
11:26  error  'process' is not defined  no-undef

Change-Id: I637bda97d3ba360a095c04a1987c9c64eef1349c
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-07-10 10:49:04 -04:00
Marco Cecchetti ff34b16947 cypress tests for accessibility toggle ui
Helper functions:
checkAccessibilityEnabledToBe
  check accessibility state independently from current desktop ui
setAccessibilityState
  set accessibility state independently from current desktop ui

Both helper functions check that ui state and a11y support in text
input element are in sync.

Enable/Disable Accessibility Support
  test state toggling and state preservation when switching ui

Typing after switching accessibility state
  check editable area content after toggling accessibility support

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: Icce5ae148024a8abf9b65a90229915f28f720554
2023-07-10 16:02:18 +02:00
Gökay Şatır 15cde8c880 Sometimes Cypress doesn't try multiple times when commands are chained.
Breaking the chain may be useful in this case, in order to benefit from timeout.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I4242df23698b2019028cb4e8a3c6206499b80083
2023-07-07 01:27:27 +03:00
Szymon Kłos c94be3e5f8 formulabar: use IME with new contenteditable
It converts textarea into contenteditable div.
Input is handled by TextInput.js used for document
and already in the past for formulabar. Replaces
usage of keyevents which are not triggered with
eg. Japanese.

Fixes also #6737
Fixes on mobile #6767 requires: https://gerrit.libreoffice.org/c/core/+/153717

New widget consists of text layer with visible content
and cursor layer with selections and cursor. When clicked
it focuses TextInput.js field for typing.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ieb7cf148a5aba80ab790e0b53c3a5ba27f166b73
2023-07-02 18:55:12 -04:00
Marco Cecchetti 226a758594 cypress tests when editing with a11y disabled
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I54ae4515ba1b59711cfbd719db777d02f4735d7a
2023-06-29 13:43:13 +02:00
Marco Cecchetti 2cf2a1e891 cypress: expectTextForClipboard helper function never fails
expectTextForClipboard(expectedText) never fails for any passed
expectedText string
The value returned by the function passed to `then` cypress construct
must not be regarded as an implicit assertion.

I don't see anymore the '\n TEXT" case. It seems that comparing for
equality against the selected plain content is enough.

Fixed some cypress test that was failing after modifying
expectTextForClipboard.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I64ce31fa2127efcc70bbc3da3ac45fe456e66803
2023-06-29 13:43:13 +02:00
Marco Cecchetti ef02d909a2 a cypress env var for enable/disable a11y on testing + a a11y tags
Now you can use CYPRESS_A11Y for enable/disable accessibility state on
testing.
Moreover you can use the taga11yenabled tag for tests that should be
run only when accessibility is enabled, and the taga11ydisabled tag
for test that should be run only when accessibility is disabled

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I4c44e78e5394477b64cc17ac6b815d9d70b059f5
2023-06-29 13:43:13 +02:00
Henry Castro 8803bfa9a4 cypress: fix failing unit test apply_paragraph_props_text_spec.js
The unit test fails by 1 pixel offset, add some tolerance

"'assert expected [ <tspan.TextPosition>, 1 more... ] to have attribute y with the value '7822', but the value was '7823'""
.

Change-Id: Ieb36eedf1a17aadd3ba4872e9c4f94a3b18d0a73
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-06-28 18:15:53 -04:00
Henry Castro e38bc519ae cypress: fix possible random file duplicates
The failing unit test it is due to a duplicate file
that was modified with new properties.

Change-Id: I02824cfeaf8c496e84dc4e285975e95e79edb9df
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-06-28 18:15:53 -04:00
Henry Castro 91b83bd44d cypress: adjust values for '#copy-paste-container' elements
The element '#copy-paste-container' according to the documentation
it is only to prevent flickering, so check only if has children.

Change-Id: I11ecdf156c6fee8657e5cd42c2c7daf9f206410b
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-06-28 18:15:53 -04:00
Marco Cecchetti 11767353b3 a11y: editable area: cypress tests for list editing
New tests:
- Check content
- Moving between entries
- Add entries
- Typing <backspace> at entry beginning
- Typing <delete> at entry end
- Selecting at entry beginning

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: Ib831bb9f44f9fe3828e8f77fcdaf7f12ef901644
2023-06-15 15:00:18 -04:00
Marco Cecchetti 809234805e refactored cypress tests for editable area
Helper functions has been moved to external file:
contenteditable_helper.js

Tests have been subdiveded in groups.

Spec file renamed from editing_spec to editable_area_spec

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: Ifdb18b0de4851a2fc927b3a8fb3b1472165f2b7f
2023-06-15 15:00:18 -04:00
Marco Cecchetti 39be94e852 Force notebookbar ui when a11y is enabled
When accessibility is enabled in coolwsd.xml, overrides setting in
<user-interface> section by force to use the notebookbar UI.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I98f4b288439b21110214ca2a67df639b397184c9
2023-06-15 08:54:51 +01:00
Marco Cecchetti d01bedc09c a11y: add config for enable/disable accessibility in general
A new section about accessibility has been appended to coolwsd.xml
config file

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I086abdf73646639283eb655ae60f200fb64e495a
2023-06-08 00:00:51 +02:00
Gökay Şatır 31a74f7537 Disable navigator tests for now.
There will be a setting for them.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I75264e7de14f79642cfd33a7d798ec78188f9213
2023-06-06 14:49:30 +03:00
Marco Cecchetti b9f9cef60a a11y: populating editable area with focused paragraph
We handle notification from core about currently focused paragraph:
content, caret position, text selection start/end.
Notifications are sent on any text changes, even when the text has
been modified in another view.
Moreover we can request such info to core at any time.
That allows AT software to read focused paragraph and selected text.
All that keeping editing still working.
A set of new cypress tests for checking clipboard content has been
developed.

failing cpp unit test:
- HTTPWSTest::testInactiveClient
'unexpected message' assertion was failing since an idle client can
receive an a11yfocuschanged message when the same paragraph has focus
in both view and the active view is editing the paragraph.

failing cypress tests:
desktop
- calc/autofilter_spec.js
  - added more wait time before performing clickOnFirstCell
- impress/undo_redo_spec.js
  - Repair Document was broken
    - we need to select 'Hello world' in order to overwrite it

mobile
- impress/spellchecking_spec.js
  - Apply suggestion
    - better use selectTextOfShape instead of Ctrl-A

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I070d390543fa66fe786c4a0661fa09f891b9883e
2023-05-31 22:43:51 +02:00
Marco Cecchetti d7e302c94a a11y: TextInput: switch from <textarea> to content editable <div>
Refactored TextInput implementation. A content editable <div> is used
in place of <textarea>.
<img> elements are used as pre/post spaces.
Minimal changes to FormulaBarJSDialog, since some code was
dependendent on
TextInput details.
Refactored some cypress helper funcions, too, since cypress tests
expected a <textarea> element.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I13fd7d5c6446dea054a5a9e88f22ed100a66b3fb
2023-05-31 22:43:51 +02:00
Attila Szűcs 46a44c743a Navigator: cypress test for draw
Added Desktop tests for draw

Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
Change-Id: I94a5048c8bf6082059375c5742fb781263c643f4
2023-05-30 14:19:01 +02:00
Attila Szűcs f2d89c93a7 Navigator: more cypress tests
Added Desktop tests for calc and impress.

Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
Change-Id: I80616cc9e8a9dd7160e9b33fa50047db83911590
2023-05-30 14:19:01 +02:00
Attila Szűcs 74181fed7a Navigator: cypress tests
Added Desktop, and Multiuser tests for writer.

Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
Change-Id: I1bbb32303c66eb499cb837289a51caafdf2055a8
2023-05-30 14:19:01 +02:00
Szymon Kłos 8fe7cf5fec navigator: fix switching in compact mode
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia5582f36df528235e6ca3f8df583412becd47203
2023-05-25 13:16:29 +02:00
Gökay Şatır 529f48e423 Remove notebookbar seperation from Cypress tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: If07b5f54b60cd0d7a934f97973a487f103702581
2023-05-16 14:20:17 +03:00
Gökay Şatır 71fe95eb92 Skip multi-user tests for now.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ie747587e9589872bc99be9bb4204cd11803aaac1
2023-05-15 16:34:29 +03:00
Szymon Kłos afbf052bb5 jsdialog: use minial size of a dialog needed
Use 'position: absolute' in jsdialog-window and jsdialog-container
so we don't stretch the dialog. It will use minimal needed size.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7b38b9200e190cfc184bf4bfe8b7bd814c60d5a6
2023-05-15 07:55:22 +02:00
Gökay Şatır 9018e3f174 Enable one writer desktop test in track changes spec.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I3d465f331bda1f2619939e8d6d9ca89ef95a0026
2023-05-13 15:10:08 +03:00
Gökay Şatır 9a680bf2c7 Enable skipped tests in desktop writer top toolbar spec.
Remove notebookbar tag and use switch UI functionality.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I49cfc7340b7ef07d06b0b7c37d24d88127c03735
2023-05-13 10:26:44 +03:00
Gökay Şatır e433c42cc7 Replace notebookbar tag of writer desktop image operation spec with desktop tag.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ic9ff5eaeafa75d2968b7b0a9a4acc6960c28a079
2023-05-13 07:50:01 +03:00
Gökay Şatır 3703c72d73 Replace tagnotebookbar tag with tagdesktop tag in calc image operation spec.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ic09bb64a06b6287a3c953ee4ea1f8fbb46c854b6
2023-05-13 07:50:01 +03:00
Gökay Şatır a883a23b65 Replace calc annotation tagnotebookbar with tagdesktop.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Icacf4d387e9c8df4d0e5defa2fec0cdcc8899aae
2023-05-13 07:50:01 +03:00
Gökay Şatır 1a15c0a1d2 Replace notebookbar tag in table operation writer desktop spec.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I15a53f8d1b70152646d7799821de10a8df4fdc60
2023-05-11 21:14:34 +03:00
Gökay Şatır 3f9fc143ac Writer desktop enable one test in scroll spec.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ief09792894d4a2dc7d11eaa90bfc3286598cfa41
2023-05-11 21:14:34 +03:00
Gökay Şatır 1664169dda Enable 1 desktop writer file properties test.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Iad0e4959d79c2394d6174fd81e5e349460fe5246
2023-05-11 19:09:03 +03:00
Gökay Şatır d0aa99d25f Enable desktop writer complex image operation spec.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Iebd862ff5c01078e07f1af93e81c4e528f24d978
2023-05-11 19:09:03 +03:00
Gökay Şatır a2838cca3a Enable desktop writer annotation tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I5ee91f32da271b5fdb209262f52a6828aa248500
2023-05-11 19:09:03 +03:00
Gökay Şatır 43e701084e Enable impress delete objects spec.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ib26227b453a8e21e9c5393872aaa04fe6142fd77
2023-05-11 15:42:47 +03:00
Gökay Şatır 9d5d153972 Enable desktop impress undo redo spec.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I71f5d43bb1e52e1962db0dfd9e66c6a4a4726e51
2023-05-11 15:28:13 +03:00
Gökay Şatır 31e94b6cb7 Enable 1 test in desktop calc table operation spec and remove notebookbar tag.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I36bf9b14d44c6cde651da78808c4c783ebf794b2
2023-05-11 15:06:53 +03:00
Gökay Şatır 0ce09a3ae6 enable 1 desktop impress test in sidebar spec.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I711c8a771aa6f6830da69888646ed66cd7ffb4b9
2023-05-11 15:06:53 +03:00
Gökay Şatır 1122f5a5e6 Add tag to searchbar spec.
Tests are failing on a valid reason.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I029f9d1079b81a79a6ecb0aca4ed930c75b29c90
2023-05-11 15:06:53 +03:00
Gökay Şatır f5d9654e87 Remove tagnotebbokbar and use switchUI function on image operation spec (impress).
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I4f2097cbfd0e2401783b065b63f70b34d1d9d3b1
2023-05-11 15:06:53 +03:00
Gökay Şatır acc944c176 Disable 3 mobile tests for now.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Icd45cff770b1cc64365a1713d683451aeffe3618
2023-05-11 13:55:55 +03:00
Gökay Şatır 731c5b8d8c Increase default command timeout to 10 seconds.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Id6271261dde7d45bdf05e4f01d3a1f1732fd44b0
2023-05-11 13:55:55 +03:00
Gökay Şatır e8acb950b0 Enable calc text editing mode test.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ib03f0aa24268a104b6815c813a795c9a21e8e932
2023-05-11 13:55:55 +03:00
Gökay Şatır 71687e1c66 Enable calc switch sheets test.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I1adda596e402a3be116459b3669080844f79ade7
2023-05-11 13:55:55 +03:00
Gökay Şatır 442830484d Enable calc row_column_operation_spec.js.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Iebda9cb893602e827f945c08e5a6b05e5c1c6d5d
2023-05-11 13:55:55 +03:00
Gökay Şatır 31d70be23f Enable impress text paragraph props test.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I75540d483b71b4d61ad274097c61b3f974be1393
2023-05-10 18:57:53 +03:00
Gökay Şatır 88129f9911 Remove notebookbar tag and add switchUIToNotebookbar to impress desktop annotation spec.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I19140e62566cd341ebb035ee0c4e43271661fb30
2023-05-10 13:30:37 +03:00
Gökay Şatır 7d2084c700 Enable desktop pdf spec.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I3b37aeca2d8c6f28412c2161abd6336558a82ac7
2023-05-10 13:30:37 +03:00
Gökay Şatır edeb764958 Enable desktop calc add-delete decimal places spec.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I6d665c7e7561f5096b5b860f5a8cdea5a86e2b00
2023-05-10 13:30:37 +03:00
Gökay Şatır 3bb8c28939 Enable calc desktop focus spec.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I5d11a05acbe512c2fd13be8816dbdca7c2464ad9
2023-05-10 08:59:00 +03:00
Gökay Şatır bd4fda8895 Enable one more desktop calc test.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I754c98f91aa5a8a4791e017e59432c08759b2355
2023-05-10 08:59:00 +03:00
Gökay Şatır 94db748f1b Enable disabled cell appearance tests.
Add switch UI to notebookbar function to desktop helper.
Remove tagnotebookbar.
Remove clickonidle function calls.

Tests should be more reliable and faster now - tested locally.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I8b05f0b7cf3755ce6e1fe35a26a4ec1154bb2510
2023-05-09 16:09:43 +03:00
Gökay Şatır ff02dc7381 Skip some tests for now.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Idb21db8f295c960b7bed64372060d1590ec1da35
2023-05-08 14:54:31 +03:00
Gökay Şatır 8d7a93bd4b Skip some mobile tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I964e6f1a690f074fe97607bf9a8394740044554d
2023-05-08 12:18:01 +03:00
Gökay Şatır bf9470911f Skip some tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ia8a2f1d58a3a083c38d259450343b597c64c5919
2023-05-06 19:05:51 +03:00
Gökay Şatır 6481a1c72a Disable some unstable tests for now.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ib527fbd70c0c50d31fb984b2f379d252aa7badc1
2023-05-05 12:15:55 +03:00
Gökay Şatır 55376d0336 Enable notebookbar tests and skip some of them.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Icddd2300874d99118603561e5c140e86fbe2829e
2023-05-05 07:07:14 +03:00
Gökay Şatır ba17736181 Update some package versions.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I92b9d8a6149bf4e4e4a9f25e0b8644f8a5a45016
2023-05-05 07:07:14 +03:00
Gökay Şatır 5e57d04f48 Enable tags for tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I9c9116981c1a9e48a55cdcb49644388307f5bcc6
2023-05-05 07:07:14 +03:00
Gökay Şatır 8e8e644d55 Add nextcloud, notebookbar and screenshot tags to relevant files.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I1b3c1f586d4e030ed02310a57788a7ed40765dde
2023-05-05 07:07:14 +03:00
Gökay Şatır a6e6add60f Add multiuser tags for relevant tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ib7a45673fb17e2ebe9b62925618db1a32d360e3a
2023-05-05 07:07:14 +03:00
Gökay Şatır 7b52bc086d Add mobile tags for relevant tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: If0bb80548bb5d390d986bb53fedb2d86bf92e4e8
2023-05-05 07:07:14 +03:00
Gökay Şatır 9148b57ef4 Add desktop tags to relevant tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Id0e2a335c82e253eb97e647254ef32e2a18dcd89
2023-05-05 07:07:14 +03:00
Gökay Şatır 86c45ae5ee Add specpattern to desktop tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ib878d6449aa0e72bf2ce96da8ccb4e3f71fb0b23
2023-05-05 07:07:14 +03:00
Gökay Şatır 8aa6824f0c Use if - codeQL warns.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I4ab747611708b3776020359a5b74e89c595a58d4
2023-05-05 07:07:14 +03:00
Gökay Şatır cf38a03aac Disable interference test for now.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I73a494cebdfe7dffec1795aa72771d3dd76c494a
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2023-05-05 07:07:14 +03:00
Gökay Şatır cf24f725e2 Update multi-user tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I75125728e20bee789fce085c31d93b7650312eec
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2023-05-05 07:07:14 +03:00
Gökay Şatır 83c4ced3f5 Update writer mobile tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ibac2beade335519885877c14bc97cda9d02fb3d3
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2023-05-05 07:07:14 +03:00
Gökay Şatır 5deb474685 Update impress tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I0b47edf6e2788b8e3faaef0d0f6aad2ca033782b
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2023-05-05 07:07:14 +03:00
Gökay Şatır 52b060f984 Update calc mobile tests.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ia16008b638f5f48ad890c80ea04d04515ff3c29a
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2023-05-05 07:07:14 +03:00
Gökay Şatır 2a1db594ad Update writer desktop tests.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I974bb8ee2e7d77cae29ac97b2c0f6b687e90e005
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2023-05-05 07:07:14 +03:00
Gökay Şatır f87539a325 Update impress desktop tests.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I26d0fbf83b894a759c550bee7b0374f367fdd6f8
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2023-05-05 07:07:14 +03:00
Gökay Şatır 014c7b17b5 Update draw desktop test.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ieea40808df9ff20a1cf4fbda62674651b1d601e8
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2023-05-05 07:07:14 +03:00
Gökay Şatır 74fa2ab02c Update calc desktop tests.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ia53a5a8a3c783f59254a183341d483640e6a2525
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2023-05-05 07:07:14 +03:00
Gökay Şatır c9217176bb Update Cypress and make related changes.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ie896ea22b5591ea5e7d574f2436ece7a31da4c0c
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2023-05-05 07:07:14 +03:00
Gökay Şatır 701e14e443 Add close button to paste warning dialogues.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ic9e7b11ddcca432b7ec4d218c4085496c56059bc
2023-04-24 15:40:17 +03:00
Gökay Şatır 54d425c980 Improve Cypress tests and fix one comment related case for Impress.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ib243a70b8a0cf5f3abfd8f713525520f7b152c57
2023-04-24 11:34:04 +03:00
Gökay Şatır fdbe377797 Update comments related Cypress tests.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I0318c8104b6ef5e3ba649dce31a2894335b5ab6e
2023-04-24 11:34:04 +03:00
Gökay Şatır 5f6a6d6f9f Required Cypress changes after replacing popups.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ice48a7c83afb9311b2eb9ebcf1d3dbccb9ad5f8b
2023-04-24 11:34:04 +03:00
Michael Meeks 91c8803913 Cypress: easy to use debugging hook for failing tests.
Enabled by removing the code comments.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: I88ffb02ec2a06f8d717fe1a5b3fba2fe6b5427f8
2023-04-21 19:20:50 -04:00
Jaume Pujantell 72103a4858 only click on toolbar scroll if it's visible
Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: I2f04ee5d49dbad2b630740aa86d4f78c8826307a
2023-04-21 10:03:49 +01:00
Jaume Pujantell 21161cecdd wait before a click that triggers too early
Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: I59e190159f077f67af6ccdb6f40aab0b0b283a61
2023-04-21 10:03:49 +01:00
Jaume Pujantell 70fb652393 reclick edit button on mobile test if it failed to respond
Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: I00030da53cba62414cee7646b0d619e23f60f7f9
2023-04-21 10:03:49 +01:00
Jaume Pujantell ffd73830f0 improvement on commit 6407fff
Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: I89720c6cfd16d27375a87375154e7cb2f050a180
2023-04-21 10:03:49 +01:00
Michael Meeks b1bbd75cc6 cypress: add flag to delay update popup in Chrome indefinitely.
The suspicion is that the update popup messes with focus, and can
break tests after they start intermittently - at least in
interactive mode.

cf. also https://github.com/cypress-io/cypress/pull/16694

Date syntax is altered to avoid another bug with cypress
parameter parsing.

Change-Id: I92b9911eb7b3673a64a9d123b2c110111b7c3549
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-04-19 11:43:24 +02:00
Jaume Pujantell 6407fff7b0 Various cypress fixes
This changes make cypress tests more reliable, specially in slow or loaded machines.

Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: I574b0db3e81e57a2dc682fbe2ed3f0301ad8e52d
2023-04-19 03:13:22 +01:00
Michael Meeks 93b41527e3 Cypress: accelerate tests by not re-downloading & JITting JS.
add forcecaching parameter to coolwsd for debug mode.

Change-Id: I6f38e9a4fd6dbb76e92105c76e8abe3e75f19ef5
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-04-15 11:45:22 -04:00
Gökay Şatır 04019a0953 Update cypress tests.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I3d5735bec2162e359c012355781ca70de309ff9b
2023-04-07 17:57:24 +03:00
Gökay Şatır 8cb0c44e1f Update cypress test according to latest changes.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I226abb663edbb15384233a5c2461c1e8f3a36455
2023-04-07 17:57:24 +03:00
Szymon Kłos 57ff9a3334 Revert of "a11y: TextInput: switch from <textarea> to content editable <div>"
This reverts commit 1d2607e836.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6de00182cee32b37c6ced957431c3c21f2734c24
2023-04-07 12:09:53 +02:00
Marco Cecchetti 1d2607e836 a11y: TextInput: switch from <textarea> to content editable <div>
Refactored TextInput implementation. A content editable <div> is used
in place of <textarea>.
<img> elements are used as pre/post spaces.
Minimal changes to FormulaBarJSDialog, since some code was
dependendent on
TextInput details.
Refactored some cypress helper funcions, too, since cypress tests
expected a <textarea> element.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I2141d7769588bb5bf8a0fbb62f036cb78f914966
2023-04-03 14:57:58 +02:00
Gökay Şatır ca8746f3db Uncomment about dialog tests for closing the dialog.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I547a7c75df95b5cbbe269a53ab392193a3043347
2023-03-22 07:49:07 +03:00
Gökay Şatır 707630a007 Update Cypress tests.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Iba3da8f540d353298941145bd59cd7d1ef3cc03d
2023-03-21 14:24:41 +03:00
Gökay Şatır 03e6cc491f Remove vex from comments.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I3ebb052bdac91e3e2fd084dca06d8f221d82083e
2023-03-21 14:24:41 +03:00
Gökay Şatır 0d0f056f71 Skip delete chart test for now.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I57ed634cb821be2cfdae9b4d8d1ab587c65635d6
2023-03-20 20:10:49 +03:00
Gökay Şatır 63964d8fcb copy-paste-field behaviour is changed for some reason.
Probably due to core side changes. I needed to comment out the property checks.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I26683265b827447e676a6463b19b5cb84a0040fc
2023-03-20 20:10:49 +03:00
Rash419 2d3b93feed cypress: updated tests for co-23.05
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I08d82284f88beea96fa931c691a9208c64d4a940
2023-03-20 20:10:49 +03:00
Rash419 a5dbe0a430 cypress: updated the test for core co-23-05
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If4c2b252ca53ecfe4e3db6722d2bb7cb5069a242
2023-03-17 21:27:01 +01:00
Rash419 e93a193ae0 Revert "Remove unnecessary `.wait`s 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 `.wait`s 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