Commit graph

884 commits

Author SHA1 Message Date
Andras Timar
8b4911ec93 cypress: typo fix
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4c9468ae01620bb0e56dc63e359e00bd1951e4d5
2021-02-09 08:41:53 +01:00
Tamás Zolnai
384d5692a1 cypress: update eslint: 7.12.0 -> 7.19.0.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I4d23f5aba844e9398543a7763543098be4e8fb12
2021-02-05 17:31:09 +01:00
Tamás Zolnai
44272f6d01 cypress: update wait-on: 5.2.0 -> 5.2.1.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ifc0fa803dd16aa2381578919bd9c313aa19d4535
2021-02-05 17:31:09 +01:00
Tamás Zolnai
3d1b7a7d58 cypress: update cypress-select-tests: 1.5.8 -> 1.5.9.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ia7ed3f4519872aba6c44181bb768110a29be10b3
2021-02-05 17:31:09 +01:00
Tamás Zolnai
7eac3a62c2 cypress: update cypress-file-upload: 4.1.1 -> 5.0.2.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I1cf3841763958bccc7f1f6f0b98e81802e181da8
2021-02-05 17:31:09 +01:00
Tamás Zolnai
c89440b369 cypress: update cypress-failed-log: 2.7.0 -> 2.9.1.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I24279fd77c51bc7c4cbd04e46bb97da060d55861
2021-02-05 17:31:09 +01:00
Tamás Zolnai
8cb2e53761 cypress: document some extra run option in the README.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I49597e73d675ab9e916f7f73e740d5a89d2884b8
2021-02-05 17:04:36 +01:00
Tamás Zolnai
c8c96a76f2 cypress: fix some typos in helper method documentation.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I098ee52a5ca03b58399a1c81690b0521f3d91743
2021-02-05 16:38:23 +01:00
Tamás Zolnai
6ba82fa3c0 cypress: split canvasShouldBeFullWhiteOrNot() method.
So we have separate canvasShouldBeFullWhite() and
canvasShouldNotBeFullWhite() methods, which might make
the code more readable, then having it controlled by
a bool parameter.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I0932a7615c84c35293c2cc8dade0db6468de8224
2021-02-05 16:38:23 +01:00
Tamás Zolnai
f4c4b7091a cypress: split imageShouldNotBeFullWhiteOrNot() method.
So we have separate imageShouldBeFullWhite() and
imageShouldNotBeFullWhite() methods, which might make
the code more readable, then having it controlled by
a bool parameter.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I2ada6b9e6f6d93b8a48e9ddd3c851ef3e6fcd632
2021-02-05 16:38:23 +01:00
Tamás Zolnai
53642adf96 cypress: remove getLOVersion() method.
By now, we don't run the same online branch against more
core branches, so this code is obsolete.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I90768d16628e735129880cc4cf823bf0b7d9ad1e
2021-02-05 16:38:23 +01:00
Tamás Zolnai
fcaff1a32e cypress: simplify clearAllText() helper method.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I595e3594a9e624249cbb039e509fe12772ef904e
2021-02-05 16:38:23 +01:00
Tamás Zolnai
9ec53994f2 cypress: simplify selectAllText() helper method.
We use this method in various contexts, where it's not
necessary that we have the cursor of the focus. Focus can
be tested in focus related tests.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic27de45917657d4ac1734565d81d5bbf190ad333
2021-02-05 16:38:23 +01:00
Tamás Zolnai
cc37bd5786 cypress: helper: add some documentation to helper methods.
Also do some renaming.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I1796181085ff245090589d3680fa3d90bb085d3f
2021-02-05 16:38:23 +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
efdda663e4 cypress: rename run_iteratively.sh -> run_repeatedly.sh.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ida3f90fb01893c13de2086cf6ba0ec95c67a3bef
2021-02-04 17:45:16 +01:00
Tamás Zolnai
ca65e63da6 cypress: dont mention video recording option for multi-user tests.
It does not work when two cypress instances running at the
same time.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Iae7fe4c4dcc4bb0a970763001e4f966b60f988f2
2021-02-03 14:56:32 +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
81dda79b94 cypress: interfer: move cell cursor instead of text cursor in calc.
It's not necessary to have any text in the first cell, so
double click won't work for every test document. However the
spreadsheet is always there so we can move the cursor through
the different cells.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Icea63a971fb77d915e027569a80c9a8a8b855a01
2021-02-02 16:00:46 +01:00
Tamás Zolnai
e0421d5090 cypress: reenable master view related tests.
Now that it was fixed in core branches.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Iaccc994b0e58402dc173941357af43517dd0178b
2021-02-02 16:00:46 +01:00
Tamás Zolnai
df8144d44c Revert "cypress: make sure the cell selection is visible before run test steps."
This reverts commit 129ae61684.

This is actually undefined, whether the cell cursor would be there
or not. We get cell cursor messages after loading the document,
so if we step into editing mode before these messages, then we
will have the cell cursor, but if we wait some seconds after
opening the document, then the cell cursor won't be displayed.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I7a4e9e5adbbbe312f21789fe872726bbf67565e6
2021-02-02 13:49:50 +01:00
Tamás Zolnai
0671c687a1 cypress: update writer field tests.
There is no more span inside the HTML representation
of a text field. After this commit:
b982d0e6f94ca70765231ff4242c829f5bec5def

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic64a20dcb0534876af062a1fb40cb0e39fd27f10
2021-02-02 12:10:21 +01:00
Gökay Şatır
855c7aaf7c Cypress: Make column & row header tests work with canvas sections.
CanvasSectionContainer has now capability of creating divs below sections, for testing.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ia735758ce27af558718da50935502723112e838e
2021-02-02 09:49:48 +01:00
Tamás Zolnai
3b05151641 cypress: move formulabar related check into beforeAll() helper method.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I46b05c8533b4f323e181d3d4fd2acc1e4626e164
2021-02-01 22:11:32 +01:00
Tamás Zolnai
0cd14ef422 cypress: use checkDialogAndClose() helper method here.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Iec8be699d10640154d711b47a9d11400e2aefa1b
2021-02-01 16:07:15 +01:00
Tamás Zolnai
c69b163c38 cypress: let's be more specific here about the cursor.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: If9d475374fb27a727f5cf7f38f3a0b4b47f142f6
2021-02-01 13:28:54 +01:00
Tamás Zolnai
64a22ea2dd cypress: make dblClickOnFirstCell() method closer to real mouse events.
It causes an issue for calc to use cypress's dblclick() method
and it will select the wrong cell. In the log, I see only a
double click when we simulate user events with cypress, however
when I do double click manually, first I see a single click and
then a double click in the log. So let's do the same with cypress
simulation too.


Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I18e92fc354558e09bb5cb3a12e45cbb669ac97bc
2021-02-01 13:28:54 +01:00
Tamás Zolnai
02e22e20f3 cypress: make dblClickOnFirstCell() more stable.
Visibility of the blinking cursor is not good enough
on dekstop, beacuse it changes position after it is
displayed. So let's wait some time to step cell editing
mode.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I86fe7fd5be68f36126ba3d390b29740b33cf3d8e
2021-02-01 11:59:43 +01:00
Tamás Zolnai
6d62c32950 cypress: add a selector parameter to cursor related methods.
So we can specify which cursor we need here. The default is
the document cursor, but this methods can be used for
formulabar cursor or dialog cursor too. More cursors might
exists at the same time, that's why simple '.blinking-cursor'
selector does not work.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I1fd04e188ab53e70d0e8303fd7502f183c18bef3
2021-02-01 11:59:43 +01:00
Tamás Zolnai
129ae61684 cypress: make sure the cell selection is visible before run test steps.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I3ce151f8ebe9405c5830630e941c94ab9ef2f7ae
2021-01-29 12:42:46 +01:00
Tor Lillqvist
989d57b580 In Cypress tests throw error if dialog image cache is inconsistent wrt server
We have a dummy spreadsheet document with a column of cells each in a
different font size. The font size of the current cell is displayed in
the sidebar.

In the test we step through the cells first downwards and then back.
Thus the sidebar image that contains the font size will be updated as
we step through the cells. At first nothing will be found in cache,
but when returning, the images should be found in the cache. If the
cache in the JS client is not consistent with that in the server we
will throw an exception.

Change-Id: I439263c7923d985679fafa0125cd2d7f635e0995
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-29 12:08:58 +02:00
Tamás Zolnai
18169d795b cypress: mention video recording option in failure log.
It's a useful option to create a video during headless run.
It's much closer to the headless build wrt. timing, than
interactive test runner.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic9889209ac07b9fe0a9b6e326e60513412950780
2021-01-29 11:04:49 +01:00
Tamás Zolnai
0db412ccf0 cypress: add new Save/Print test to php-proxy/NC blacklists.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id494a522e0961894cdf9e5ce56b19b781a724974
2021-01-28 15:27:51 +01:00
Tamás Zolnai
c2620ce5cf cypress: update 'Check disabled elements in master view.' test.
In master view, the 'Master Slide' list should be empty and so it's
not shown on mobile wizard. No, I disable this test, because
it needs the core code to be updated.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I12562c453673ac85e050303ebb5803fee6f1892a
2021-01-28 13:47:59 +01:00
Tamás Zolnai
cb62773468 cypress: make chart test more stable.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I621538e1a6d17eb1ec10f13f2559a0b48a8e6918
2021-01-27 14:08:09 +01:00
Tamás Zolnai
d18d3a5381 cypress: update 'Enable text wrapping.' test.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Iac566958e3820376a991d06c1ad5c03f81efd36a
2021-01-27 14:08:09 +01:00
Ezinne
6490e45131 Created cypress tests for the Save and Print features on the Calctop-toolbar
Signed-off-by: Ezinne <nnamani.ezinne@collabora.com>
Change-Id: I1a0424c5ddfc7714475818fba029c6bb238db1f1
2021-01-27 14:07:56 +01:00
Ezinne
4e96492041 Created a cypress test for Text Wrap feature in Calc top_toolbar
Signed-off-by: Ezinne <nnamani.ezinne@collabora.com>
Change-Id: I873654c21649f849739cd25461f3d52335ecba8b
2021-01-27 11:34:44 +01:00
Pranam Lashkari
f144df98c8 leaflet: blacklist language selection on misspelled words in mobile
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I149539983897d20828dc6e32ed053c9b7e279ad4
2021-01-22 01:34:30 +05:30
Tamás Zolnai
dbad4b2c0c Update cypress: 6.1.0 -> 6.2.1.
It fixes a hang related to retries. It might be useful
in our case too. I've seen hangs on Jenkins, which might be
related.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I8320f9b38c59074d2b5dd3d7b0cad0c5828b0849
2021-01-20 09:18:59 +01:00
Tamás Zolnai
5eb8e5448f cypress: fix up and enable chart test.
It crashes if the mobile wizard is closed before exiting
chart editing mode.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I47143543220aaebf474e1d1aa560c7df2c2a14f5
2021-01-19 15:21:45 +01:00
Tamás Zolnai
6643b57f4a cypress: reenable writer/simultaneous_typing multi-user test.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ibcbff205000b60c86699b04e1cd95b5bc05f7b1e
2021-01-18 20:39:03 +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
9e9e9f3117 cypress: improve selectFullTable() helper of table properties tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I9362c0b8d528d0e7cd5841a50584f866a4432b3f
2021-01-15 15:16:28 +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
Tamás Zolnai
efb96f0700 cypress: reenable paragraph_prop multi-user test.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: If57964320d2615c81b0bcbc57c0f942e463c60ea
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
Tamás Zolnai
6786f563f8 cypress: print out test failure output online during parallel build.
Before this commit failure logs were gathered inside an error log
file and they were displayed after all tests are finsihed.
After this commit we print this failures logs when the error occurs
and also at the end of the test run. Sometimes Jenkins does not finish
the whole build because of timeout abortion. In this case, it would
be helpful to see some failure logs.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ibe7cb6aa2c9f99912d604c4b642cda363352ffcd
2021-01-14 12:57:41 +01:00
Tamás Zolnai
db0e7e9973 cypress: simplify typeIntoDocument() method.
cy.click() will grab the focus to the textarea.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I20f0df2fd8a31d3ff4b85ba38fdc503c10987dbb
2021-01-13 16:43:35 +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
6352574018 cypress: remove duplicate selectFirstColumn() helper method.
Now we have it in the general calc helper file.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id7f12441b9612a630f6b348a9e6db6235f4b6c45
2021-01-13 05:00:19 +01:00
Ezinne Nnamani
74f14cccdf Created Cypress test for Merge cells in Desktop Calc
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
Change-Id: Iba89ea0a2bc5b788c9202247d5cada801fc6d5f6
Signed-off-by: Ezinne Nnamani <nnamani.ezinne@collabora.com>
2021-01-12 13:44:07 +01:00
Tamás Zolnai
0a0d185258 cypress: NC: disable failing spellchecking tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I3d48a5069eb0bfad8168826b6ab79ccd7f207b32
2021-01-11 12:28:48 +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
Tamás Zolnai
8c6a2da439 cypress: restructure makefile.
Too make it more organized.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Idf630df2813f6c7ce043b1f00db92105450ba814
2021-01-08 12:24:03 +01:00
Tamás Zolnai
db7183ebb0 cypress: disable unstable multi-user test.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ia6839a805545fbe169c23f8c11121d30a8a5e91d
2021-01-05 15:55:46 +01:00
Tamás Zolnai
f131e4f6ea cypress: fix resolve comment test.
It randomly fails on style attribute.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic80ff368fc08edaea80ec3069f26b3b7e4d2b384
2021-01-05 13:51:36 +01:00
Tamás Zolnai
e92a6fe2c0 cypress: fix up environment variable reference.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Iee662bb5af93cfa97868ab3a2bdffdb39caeffb0
2021-01-05 13:51:36 +01:00
Tamás Zolnai
c79d11b700 cypress: workaround an issue related to focus and replying comments.
It's a bug in the application. Let's workaround it,
until it is fixed.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I213a75816b5ba71e526d7b3fc616a454b7968e27
2021-01-04 16:30:40 +01:00
Tamás Zolnai
4f9169bf8c cypress: remove content of cypress folder before test run.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic4e637903df6768c42fcd404563455e19fa86cda
2021-01-04 16:30:40 +01:00
Pranam Lashkari
4bf0302a78 cypress: fixed test and enabled missing test for annotation
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8c1b4e6a679f31b9ebfa814b67f18b25eab3d2be
2021-01-01 16:10:59 +01:00
Pranam Lashkari
9e2b9f8972 cypress: modified annotation tests to work with comment wizard
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I25ff9c590aa12d1787d8966cc4f68151ed8d505f
2021-01-01 13:18:10 +01:00
Tamás Zolnai
c29ed235ba cypress: improve moveCursor() helper method.
View also jumps with cursor movement, so we can't be
sure that the vertical/horizontal pozition actually
increase / decrease. Better to test only that the position
was changed.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I2358348c3f6d4f2278eff4e2db4a8409bc86b25a
2020-12-31 18:53:26 +01:00
Tamás Zolnai
dd22bde4d9 cypress: php-proxy: this workaround is not needed anymore.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I2d74a30aa177051a0faf4c8f946779c2389a8d34
2020-12-31 18:53:26 +01:00
Tamás Zolnai
ae7e93144f update cypress: 5.6.0 -> 6.1.0.
Test code needs an update because .should('not.be.visible')
does not pass on non existing elements anymore.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: If8a89d2996d154d287672dacb3668ec5399d99f2
2020-12-30 19:49:42 +01:00
Tamás Zolnai
63ee524010 cypress: disable welcome dialog via loolwsd config.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I15c060e5eac1993116828dfaefe8916030fe2b63
2020-12-30 19:49:42 +01:00
Tamás Zolnai
09fbbf43b0 cypress: extract clean-up code into a function.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I572b164f89023cd66fca2d392b830417eb6a9d74
2020-12-29 10:42:51 +01:00
Tamás Zolnai
5ebbe451e0 cypress: simplify run_iteratively.sh script.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ibdecf2a70d83a4ef4b021657b3238951d7bbd3b2
2020-12-29 10:42:51 +01:00
Tamás Zolnai
e8961e5123 Revert "downgrad wait-on: 5.2.0 -> 3.3.0"
This reverts commit a409b221f8.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I5662bfbf7b1209c0919eca2b8debefae9c82450d
2020-12-28 15:11:06 +01:00
Tamás Zolnai
8db4b19469 cypress: move includes of 3rd-party packages to support file.
Now we handle support file better for parallel test run too:
a13b1a93bc

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I4a88f815ddb1c4d79042134cc07e0c418d4ea10f
2020-12-28 15:11:06 +01:00
Tamás Zolnai
d6663d807f cypress: record the loolwsd's command line output.
So we can catch crashes / debug messages of core code.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ib11426e7fdd8f219be4715b3f1e2983ad33d7f2b
2020-12-18 21:20:27 +01:00
Tamás Zolnai
a13b1a93bc cypress: try to handle support file better during parallel run.
When we run cypress tests in parallel (e.g. make check -j4), the
tests randomly fail with an uncaught error. The issue might be
because the same support file is shared between the different threads,
and they might access it at the same time. We try to create different
instances of the support file via preprocessing. Let's see whether it
makes the issue go away.

Issue's error message was:
"An uncaught error was detected outside of a test:
SyntaxError: The following error originated from your test code, not from Cypress.
Unexpected end of input"

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I7b256cd686fb2b0e79ab602e95d197388a5aadca
2020-12-17 19:12:44 +01:00
Pranam Lashkari
182515dcbf leaflet: open comment wizard on comment insertion
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I90bb301c35ba6d52c26a22dd0b686961b94181fd
2020-12-15 23:06:44 +05:30
Tamás Zolnai
8b815908c9 cypress: import 3rd-party packages everywhere they are used.
I see some random test failures:
"An uncaught error was detected outside of a test:
SyntaxError: The following error originated from your test code, not from Cypress.

> Invalid or unexpected token"

There is no backtrace or code pointer or anything to find out
what is the actual problem, but it might be related the missing
import of 3rd-party code.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ia2243852e825eee18c226d89fd17e92960daa129
2020-12-15 18:23:20 +01:00
Tamás Zolnai
a409b221f8 downgrad wait-on: 5.2.0 -> 3.3.0
We get syntax error from outside cypress test code.
It might be one of the 3rd-party packages. Revert wait-on
package to a previous version and let's see whether the
issue goes away or not.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I902536fd7124ebaca58a3491400606c89e5e7483
2020-12-15 16:54:43 +01:00
Tamás Zolnai
e368d04695 cypress: NC: make test retries work.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic8ca85e34de5ee26ee27d24a001de060b6169e86
2020-12-15 15:09:03 +01:00
Tamás Zolnai
f5c3e7c0ac cypress: php-proxy: reenable retries.
It works now, to run the same test twice.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I0e288049aad42b9534ce3743c6d5a8d4a22bf926
2020-12-15 15:09:03 +01:00
Tamás Zolnai
319fb3d692 cypress: pass test state to afterAll() method in multi-user tests too.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ia353c6933fae8098ae983d2196added263ba5784
2020-12-15 12:24:02 +01:00
Tamás Zolnai
2ab7c60743 cypress: make 'Merge cells.' test case more stable.
We need to wait until the layout change changes also
the cursor position, and then we can select the
table.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id66606e0992f3b298f656567d38753263ef29ab5
2020-12-14 17:38:03 +01:00
Tamás Zolnai
12f0e2cd31 cypress: use moveCursor method for table selection.
moveCursor follows the event-indicator rule,
which makes it more stable.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ief6e6c4d3a058c95652113229fd0ecbb65fb3e48
2020-12-14 17:38:03 +01:00
Tamás Zolnai
98146288ca cypress: improve moveCursor helper method.
Add a modifier parameter, so we can easily extend this
code with 'shift' modifier later.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I820c2c89838ba2a367d561e362d3c04f8487022e
2020-12-14 17:38:03 +01:00
Tamás Zolnai
b5d5129f0d cypress: add text cursor tests for Writer (mobile).
I've seen some inconsistencies related to cursor
movements in the existing cypress tests. I added
these tests which checks cursor behavior directly,
which might help to find out the issue with cursor
handling.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: If158ccef359bb28ade8d7336594fdafdd46868f4
2020-12-14 17:38:03 +01:00
Tamás Zolnai
6720a3a3f6 cypress: update impress interferences test code.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I23f6c0298887d119793ce2b7184b3c14572f64b5
2020-12-10 13:36:34 +01:00
Tamás Zolnai
e8bad8ed60 cypress: add 'run-interfer-desktop' make command.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ibfb2bd3e6158da72a160cdfdc8507f9887cbdcfa
2020-12-10 13:36:34 +01:00