Commit graph

192 commits

Author SHA1 Message Date
Szymon Kłos
5efe701294 Reenable cypress mobile tests
Partial revert of commit aa259d7337.
Also make idle tests run before multiuser

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I87024193d81bcadc9ea77e9033dceb3c6250d966
2024-03-20 08:46:49 -04:00
Szymon Kłos
aa259d7337 cypress: disable mobile, idle, multi tests for now
so we will check desktop only which can pass

This change should be reverted after we fix problems

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id34bf6446c7ea56fc8dd8ddf750abafd693c0aa1
2024-03-13 18:49:07 +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
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
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
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
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
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
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
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
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
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
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
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
Ashod Nakashian
f8b05a0f83 wsd: support unattended runs
With --unattended, do not wait for a debugger
upon seg-faulting. This avoids the unnecessary wait
that prolongs failed unit-tests in automated runs.
Now run_unit.sh and Cypress Makefile set this flag.

Note that the wait only happens when in debug
builds, or when envar COOL_DEBUG is set. This
prevents us from waiting when running a debug
build where we can't see the output, or indeed
the run is on a CI build machine.

This flag can also be used by devs when reproducing
failures where there is no interest in attaching
a debugger. The logs are shorter and more
readable, too. At least in trace level.

Change-Id: Ice15482c6724abc47f5955402295198eb7f671ee
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Rash419
8a83e5c2a8 cypress: fix: input element getting detached
*waitUntilIdle make sure that element remains attached to the DOM
*removed a specific configuration for multiuser tests in makefile and
 now it follows cypress.json config

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2bfd22ef0b4d8306b944d772e3536206a207e00c
2022-01-26 19:19:03 +05:30
Rash419
265c275a81 cypress: update help dialog screenshot automatically
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I9f3e3c9cc7838f89d5a66a25c1f6dd0ef8f8a946
2021-12-01 11:57:00 +05:30
Andras Timar
f07ff8c7e0 rename: remaining lool->cool changes
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib7d4e804bebe52dead8d53b0e0bbaed0f08bf3d0
2021-11-18 14:14:11 +01:00
Mert Tumer
5ebabf9f58 rename: loolwsd -> coolwsd only binary
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ia44f7f96bcad7200031ad87f6a6fdd3e361f2808
2021-11-17 18:08:19 +03:00
Henry Castro
ec4772be6f cypress: update Makefile.am
rename loleaflet -> browser

Change-Id: I2d3c309a75147fc6442f0781c7821a39891e3faa
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
e3088abe35 cypress: makefile: add capabilities parameter
This is useful to run cypress with the preference
"capabilities" parameter of the developer.....

Change-Id: I1f365ff7cc9790debef44d522c54d0f222680583
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-01 09:15:56 -04:00
Rash419
cc59ceeed2 cypress: added a new target for notebookbar
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I77ca43368942c38e51b0cb9cdf903d259d5af496
2021-08-30 17:23:07 +05:30
Rash419
74844c3dc8 cypress: introducing multiuser tests
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib6c86d74dd7f0414f3c63ed66e99504c870516a3
2021-07-27 14:58:09 +05:30
Rash419
70afec5bfb cypress:added table_operation tests for writer and impress
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ife9398bc6b2fe92aafe9df3b26a99c47b04f8a16
2021-06-22 13:15:32 +05:30
Rash419
4ab08eea1b cypress: introducing notebookbar tests
fix: image_operation test unstable

leaflet: fix: scroll button not available in top toolbar of notebookbar when it is directly opened in small window

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib27f3019fbee4ad87239eb659912074f41d42874
2021-06-12 11:28:57 +05:30
Andras Timar
33be889652 now we initialize SSL unconditionally, we need to amend cypress test's Makefile
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I54c743fb0e8737b82e642ca87ef262f290c534f1
2021-04-21 11:19:36 +02:00
Tamás Zolnai
dacffbc3ee cypress: remove this unreliable test.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I00467a0c0102b0a5022cf9c809c48f2a7965f7e9
2021-03-18 10:36:14 +01:00
Szymon Kłos
986e062fff cypress: test macro execution warning
- split helper method for loading document into 2 pieces
  because in case of interactive dialogs on doucment load
  we need to perform some action before we can check if document
  is already loaded

Change-Id: If6caf2168498a6d185c4a5199cf4b10b32ca23b7
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-03-16 16:56:20 +01:00
Tamás Zolnai
e034866430 cypress: make: spec can be optional here.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I98448dbb8710ea869618b341b251a0f8657386da
2021-03-08 19:08:25 +01:00
Tamás Zolnai
cfc0f73f91 cypress: php-proxy: make sure that the preferred port is available.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I62c707c1b36e026f0f90a7109b040437acd34d26
2021-03-05 13:11:24 +01:00
Tamás Zolnai
b358cb3477 cypress: php-proxy: port was changed: 9982 -> 9983.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I6e5135cdc89c5790f11e1cf7fb4ee497e7a43078
2021-03-04 15:39:34 +01:00
Tamás Zolnai
fd481bf669 cypress: fix spec existence check usage.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ie71828942e0f67df7e33be51f4727af8edbd1340
2021-03-03 14:34:14 +01:00
Tamás Zolnai
45300cc51b cypress: make: fix typo in function name.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id72466486ed8c1ea13e61db4bcc03a98096bbad3
2021-03-02 17:58:52 +01:00
Tamás Zolnai
ad301743e2 cypress: make sure we don't do test retry in interactive test runner.
In the cypress.json we configure retries for headless mode only,
however when we run 'cypress run' with 'headed' flag we still have
retries, that we would like to avoid for consistency.
Cypress differentiate modes based on the command: e.g. 'cypress open' or
'cypress run'. We however differentiate based on headless or headed mode,
whether we run the test in an opened browser or in the background.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ib34ac3de105dfe410116019e3c3c2afe253636f2
2021-02-26 14:19:31 +01:00
Tamás Zolnai
cee3e40bb1 cypress: add clearer error message when the specified spec file does not exist.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I10bc046639a997385256c006f9a7127fd71030a5
2021-02-19 16:44:46 +01:00
Tamás Zolnai
f8f6509745 cypress: put wsd related logs into cypress folder.
Workdir folder is for the build system, and for copies
of data files. cypress folder it for output of tests, like
videos, screenshots, cypress logs. So let's put wsd related
logs here too.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Icdb757d50d3c2bfef6013b92055b49ba222193e2
2021-02-17 13:37:31 +01:00
Tamás Zolnai
5dadd2c545 cypress: put copy of a test file under data subfolder of workdir
To make workdir structure easier to understand.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I1d0d8a16bd12cf9fc9abf9d350509f20ad322a7a
2021-02-17 13:37:31 +01:00
Tamás Zolnai
aa7bcc0490 cypress: make: generate better error message for interference tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ie6347999debc6be0c11672dda29afed0c05e4059
2021-02-05 15:14:45 +01:00
Tamás Zolnai
cd1095028f cypress: make: replace some duplicated paths.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Iec87086864938203169fba0460cd216438221b28
2021-02-05 15:14:45 +01:00
Tamás Zolnai
0b8973696d cypress: interfer: we can enable retries for the test user.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I40172946709fc50290b568be26d510b4cbb12531
2021-02-02 16:00:46 +01:00
Tamás Zolnai
b52d169686 Revert "cypress: remove workaround for multi-user test cases."
This reverts commit c3e1986d63.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ib0d6d0972262b2ec82bc60672bf5ae27be32fb2e
2021-01-15 23:01:30 +01:00
Tamás Zolnai
c3e1986d63 cypress: remove workaround for multi-user test cases.
We had an issue with loading two views to the same document
at the same time.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I8b1ba92eca5e59bfa50cbcd637f1076d5e15c664
2021-01-14 15:04:13 +01:00
Miklos Vajna
78f192399d Revert "wsd: disable ssl by default, enable ssl termination by default"
This reverts commit f6bf6f49ed. I did not
consider that this makes it harder to do a local developer setup with
reverse proxy + make run; also that if you don't read the doc to set up
a reverse proxy, then the default now serves http content and advertises
https, which is not helping sysadmins.

This needs more thinking how to improve one scenario without hurting
others.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ic789faa2dc5bb19a79d651dc81d4eaaf0b48607a
2021-01-14 13:59:44 +01:00
Miklos Vajna
f6bf6f49ed wsd: disable ssl by default, enable ssl termination by default
The intention is to have defaults which are close to how people
typically use Online in production.

However, keep using ssl for 'make run', so that the https environment in
the browser is unchanged.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I7fd725a83b0e9ca1012f2c0e0c3bf038e5fa0059
2021-01-13 13:33:44 +01:00
Tamás Zolnai
7887056213 cypress: make: remove unneeded run_interactive_multi() funtcion.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ib6642b57a11d0ae181358fe74f0be48cbd65f774
2021-01-08 13:24:11 +01:00
Tamás Zolnai
1276580794 cypress: make: restructure and document desktop interference test functions.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I20c170a8da84191f333d7a9584ba073a3feebf40
2021-01-08 13:24:11 +01:00