Commit graph

178 commits

Author SHA1 Message Date
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
Tamás Zolnai
45f1211899 cypress: make: restructure and document mobile interference test functions.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I5540d537672ff0384354d25a7c92111fa45fe927
2021-01-08 13:24:11 +01:00
Tamás Zolnai
ce43db6ec9 cypress: make: document multi-user test functions.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I304fc0e44c64f7eccf35f75f8eed6d9c1810bced
2021-01-08 13:24:11 +01:00
Tamás Zolnai
6672170932 cypress: make: remove unneeded '\' character.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ifb20a849e5f3e9115d6453eba63257d281cdbf9b
2021-01-08 13:24:11 +01:00
Tamás Zolnai
7fe262127e cypress: make: restructure and document run_multiuser_test() function.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic4623cb89a97f32e88020c61996eddbe060e389e
2021-01-08 13:24:11 +01:00
Tamás Zolnai
66282b1030 cypress: make: move this echos to the rigth place.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic77663a9c3debbe39e34ba5575cda381fa4d70ef
2021-01-08 12:24:03 +01:00
Tamás Zolnai
31fee645fc cypress: make: restructure and document run_desktop_tests() function.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I1c8138ae400e25ab198ea10acf438813b2b7eb6a
2021-01-08 12:24:03 +01:00
Tamás Zolnai
54ff9bf7ad cypress: make: restructure and document run_interactive_desktop() function.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ib409f724a8a4214fb473c96cda37fa54cf626df2
2021-01-08 12:24:03 +01:00
Tamás Zolnai
5dbf5a9c56 cypress: make: restructure and document run_mobile_tests() function.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I41b1dd78fb98897b11fd03f3e9778011b4faaa31
2021-01-08 12:24:03 +01:00
Tamás Zolnai
7413a298e4 cypress: make: restructure and document run_interactive_mobile() function.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I9ebd5f765f37757c310e2963ddbc0ca9b55668fc
2021-01-08 12:24:03 +01:00
Tamás Zolnai
9796f47994 cypress: make: extract run_test_headless() function.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id1592c418e54a50c06db1ecb5d8f106b95b2502e
2021-01-08 12:24:03 +01:00
Tamás Zolnai
5398ef8591 cypress: make: fix build failure caused by not expected parallel build.
By now 'make check-mobile' and 'make check-desktop' commands
are not supposed to run in parallel. So 'make check-mobile -j3'
won't run mobile tests in parallel (three tests at once).
However, before this commit running these make rules with more
jobs, led to build failure. With this commit the build does not
fail, but still ignores the jobs and run the tests on a single job.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I13e13fdefcfb393ae5a42b4e065bbfe00278236a
2021-01-08 12:24:03 +01:00
Tamás Zolnai
c665ea0a6f cypress: make: extract run_test_parallel() function.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I7d89abfc5d98c3db37fed7ac266d57af639cfe73
2021-01-08 12:24:03 +01:00
Tamás Zolnai
34b64a3106 cypress: make: extract run_interactive_single() function.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ie9a84cbdfa95d53dcbf63eb4387d6cdc89ad6769
2021-01-08 12:24:03 +01:00
Tamás Zolnai
bf0a547804 cypress: make: extract run_interactive_all() function.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I960f8271b92753d74bb338793a0d283a955ebffe
2021-01-08 12:24:03 +01:00