Commit graph

13 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
2d02cf5cc6 cypress: move all Impress related helper methods into a bigger scope.
Change-Id: I6ab06a9c737258afc11e4fcecc91bc678940cd0f
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-06 14:51:21 +01:00
Tamás Zolnai
8922df60be cypress: move some Impress related helper methods to a bigger scope.
We will need these methods in desktop tests too.

Change-Id: I302cb0b57fee8b15fbe0804dec14646cb11f0f2f
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-11-06 13:13:02 +01:00
Tamás Zolnai
a9edbb3d6b cypress: fix-up some impress tests.
There is no '.leaflet-zoom-animated' item
anymore. Don't seem to be a problem.

Change-Id: Ic59fcf24726acdf0f3da378be5dacbfe684306c1
2020-10-13 15:15:06 +02:00
Tamás Zolnai
dbe8502a58 cypress: introduce typeIntoDocument helper method.
It was not consistent what we used to type into the
document (e.g. 'body', 'textarea.clipboard' or
'#document-container'). Also we need to use force
parameter because 'textarea.clipboard' has no actual area
which makes cypress fail with: '`cy.type()` failed because
the center of this element is hidden from view'.

Change-Id: I04e0a82ed8450d583e407715fde1855197cae109
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100574
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-08-12 14:59:30 +02:00
Tamás Zolnai
a8e25571b1 cypress: add slide operation tests (mobile).
Change-Id: I0ee6ee840c381263315305336e01f46dfdbcf1f4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98525
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-07-10 18:30:23 +02:00
Tamás Zolnai
76e45490a4 cypress: consistent naming of helper files.
Change-Id: I245dc0ee49684751f9042ff25e190dd883bca536
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95284
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-06-01 20:43:06 +02:00
Renamed from cypress_test/integration_tests/common/impress.js (Browse further)