Commit graph

661 commits

Author SHA1 Message Date
Marco Cecchetti
3317f6fe3e cypress tests for fullscreen presentation
Set up support for performing end-to-end tests on the fullscreen
presentation.

Added 2 tests:

1 - check text fields (slide number, slide name) are correct for the
current slide

2 - check the background for current slide is referenced correctly

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: If8d3cda49254a910aa0c5d2d672834aa5b029e0b
2021-04-14 15:02:48 +02:00
Rash419
4551482451 cypress: added tests for comment switching in desktop impress
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I0cd13c2555274e243ac60cceec0b3e00d2d929ef
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
2021-04-14 16:17:11 +05:30
Szymon Kłos
4a218d656e mobile-wizard: listbox prepared for partial updates
Change-Id: I778f7d46de1fc3c9c2eb61daaee690e8438d57d6
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-06 09:30:15 +02:00
Gökay Şatır
359ad0c80c Cypress test update.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ie6474f66e2996e8c6786b4b19c233361fe362334
2021-04-02 10:10:15 +03: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
Tamás Zolnai
58aaa8ebf4 cypress: remove this unreliable test.
Resolved comments hamburger menu item behaves inconsistantly.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I9e32cd3c71d17cea551ce2a5aba5b20f8fae832d
2021-03-17 15:16:03 +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
2e47fa2e1e cypress: extract resetZoomLevel() helper method.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I3eed9e51460d39c4e12bf838077239488724e337
2021-03-15 19:34:51 +01:00
Tamás Zolnai
7d47393845 cypress: this workaround is not needed anymore.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I0fd44d7a0d5cd484739a7f85cce89266980a5151
2021-03-12 13:31:47 +01:00
mert
0a9b93df43 Selection marker should be enough for search test
Now we hide selection handlers while typing due to
not being able to use them, these tests fail to find
rotation marker. When text is found on mobile selection marker
wraps the found text and they become visible. when not found they
become hidden again. Checking the selection marker for this test cases
should be enough.

Change-Id: I6037450bc17438e4819ae3b724849f74f26910d4
Signed-off-by: mert <mert.tumer@collabora.com>
2021-03-09 09:59:20 +03:00
Tamás Zolnai
ea5983e957 cypress: remove this redundant logging.
cy.visit() logs this URI anyway.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Idbab1d0cd8cc0f9f0b62b194fb7f1a526c8b9f97
2021-03-08 19:08:25 +01:00
Dennis Francis
39622c282c cypress: calc: pick the correct svg to test
For calc we have 5 svg nodes inside the overlay pane (fixed, top-left,
top-right, bottom-left, bottom-right). The shape selections will be in
all panes except the 'fixed' pane. The 'fixed' was used to contain the
split/freeze lines but that got moved to canvas. Before this patch the
'fixed' svg was getting selected by the selector...

'.leaflet-pane.leaflet-overlay-pane svg'

...which is empty in this case. Lets always select the bottom-right one
which is covers the whole view area when there aren't any active freezes.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iea2bbeff3c492a82e75ecdeb1aa70fa3c33f3426
2021-03-04 15:06:02 +05:30
Dennis Francis
e7129398e1 cypress: now cursor is not in overlay pane div
but in a dedicated div inside the canvas container div, covering the
canvas.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ie43a4cb98c9cdb7e3ca81faa78bcc2419fa90a32
2021-03-04 15:06:02 +05:30
Tamás Zolnai
d4f4abde02 cypress: avoid "detached from DOM" failure in statusbar tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I48696c4b7bba68b176ab948dcac9d7728a9c7831
2021-03-03 14:34:14 +01:00
Tamás Zolnai
87c6c7d81d cypress: extract typeIntoInputField() method.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I8dc89dc6abad9106ffae42fc52723e503ddc0cca
2021-03-02 17:58:52 +01:00
Gökay Şatır
ae0c2bb813 Cypress Test: Update some mobile writer test.
Some tests were relying the cursor position for checking the document
dimensions. Those code lines are removed from the tests.

Document size is not able to checked from html elements. Instead, a unit
test may be prepared for that task.

Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Idd4fd52656b2969bf0bfa9534a807a7a8bd3f987
2021-03-02 09:25:41 +03:00
Tamás Zolnai
b14c3b3441 cypress: fix overlay tests with php-proxy.
php-proxy slows down things and make it visible, that
cellA1Bounds and cellC3Bounds can be initialized to the same
value. So let's wait fo the cell cursor to be updated before
we set the cellC3Bounds value. Changed the toString() function
to exactly match with the json in the overlay items' text attribute.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Idde0f516ff568cb14b5d53224fd75ebc6167abe9
2021-03-01 11:28:04 +01:00
Tamás Zolnai
706206948c cypress: alias -> local variable change in moveCursor helper method.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I3b52648ae9d9396d4cd3eb7dacfe9248fdbc2b52
2021-03-01 11:28:04 +01:00
Tamás Zolnai
953c21b995 cypress: alias -> local variable change in formula bar tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I2ef937b29673e8f6f4c301989b464ca0a991267a
2021-03-01 11:28:04 +01:00
Tamás Zolnai
3486923e6b cypress: alias -> local variable change in form field tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ic8460a2db6648874f5a22998394666706b31da1b
2021-03-01 11:28:04 +01:00
Tamás Zolnai
5554133f59 cypress: document some more helper methods.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I004bbb33167bfeee9f7f332516cb4b4a805a5885
2021-02-26 14:19:31 +01:00
Tamás Zolnai
432da7fc1e cypress: document desktop helper methods.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I4851c7c471b565968bca153635d9672d41894fe3
2021-02-26 14:19:31 +01:00
Tamás Zolnai
fdaacc4faa cypress: add tests for statusbar (impress, desktop).
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I5615c78d146510ce1f755d77a5d618bf3476522b
2021-02-26 14:19:31 +01:00
Tamás Zolnai
1a910e137f cypress: add tests for statusbar (calc, desktop).
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I1346790c4285121d54c670f399b3fc90f3572746
2021-02-26 14:19:31 +01:00
Tamás Zolnai
fc574b49ef cypress: remove some old disabled tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I275d794bbb74e2fe8e1fd845061c0cb17f939c11
2021-02-26 11:19:32 +01:00
Tamás Zolnai
887b4cc5b2 cypress: use new zoom helper methods in form field tests.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Idf39561c57ba8b4ebee23623ceab9db1f3a2b134
2021-02-26 11:19:32 +01:00
Tamás Zolnai
5926cf1445 cypress: add tests for statusbar (writer, desktop).
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ia8e01d8d7841d4941d1a98c5e9b9b29bcbf5219d
2021-02-26 11:19:32 +01:00
Tamás Zolnai
50101968e2 cypress: update shape related tests: TextShape -> SVGTextShape.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I67d09062313de939efb6bf2a83ad6fbf4fb7313c
2021-02-22 17:11:57 +01:00
Tamás Zolnai
19234449bc cypress: interfer: don't need to select the first cell.
We always have a cell selected, so we can move the cell
cursor left and right anyway.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I11c255bd38fb927652c9afd2f111ce9e2acce103
2021-02-19 16:44:46 +01:00
Tamás Zolnai
fb2a22d0f6 cypress: use cellcursor overlay inside clickOnFirstCell() method.
Using autofill marker as an indicator is not that reliable,
because it's missing by document load. The cell cursor overlay
however is always there.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I87e92efe78d492b3c66fb04e3b2ca25d4f122584
2021-02-19 16:44:46 +01:00
Tamás Zolnai
7d6df05332 cypress: interfer: update description.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I82dc08f889faf90606f8a99d12ae1cf530dde8eb
2021-02-19 11:46:45 +01:00
Tamás Zolnai
5b4fa4ed32 cypress: update tests after recent change of core UNO string changes.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I440db4de4846879b279c2f34dae365de484eff33
2021-02-18 13:13:42 +01:00
Dennis Francis
2d169bf32a add cypress checks for canvas-overlay items
Currently only the cell-cursor and document selections are part of the
canvas overlay. The others are still part of svg layer.

For now only the bounds of the canvas-overlay items are asserted. The
canvas overlay items update their bounds data as JSON text on cypress
only divs inside the overlay section div every time there is any change.

Unlike cell cursors, the selections need not be always a single
rectangle. To add tests for the more general cases, the json format of
test data is helpful.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I70e6328116c44317f31deb9c8bea62e781d8c421
2021-02-17 19:13:49 +05:30
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
f265803d19 cypress: fix wrong description.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I224800daefca34e8c415ad251c7583b4cec34a50
2021-02-17 13:37:31 +01:00
Tamás Zolnai
27dba59e10 cypress: add a test case which triggers assert related to sidebar cache.
This assertion is triggered by interference testing:
make check-interfer-desktop spec=calc/tunneled_dialog_spec.js

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ib16c97d7c45192a493720d028f38eb5efba4346f
2021-02-15 12:46:41 +01:00
Tamás Zolnai
6aa4cdfece cypress: interfer: save before closing the document.
To avoid issues coming from the delayed autosave.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ib98b35396efb4fdfdf84846dd23619c666accbdb
2021-02-10 16:51:30 +01:00
Dennis Francis
3a40feda4a migrate text/cell-area selections to canvas overlay
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ia9d1adb942fd0a0e1ea23805b2edbc76f9537b17
2021-02-10 15:26:14 +05:30
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
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
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