For some reason, assertions do not work properly
in afterEach hook after a test failure. So in case
of test failure we don't check the admin page,
whether the test file was actually closed, but we
just wait a constant time.
Change-Id: If2eb927b0383816639689ec67eef7e3cd1142366
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
To reuse as much code as we can. We can use the same
method on mobile and on desktop.
Change-Id: I15b1038313145db6cb6ea07489c0d30a0fc2ce64
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
To make them more stable. I used tc tool to
simulate network delay to find issues with
the test code.
Change-Id: I9a67a2650fc08e573323b1df96b940318b4a45cb
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Simplified getTextPosForFirstCell() method and
renamed to better match with the function.
Also modified getCursorPos() method. Sometimes
we have an additional hidden text cursor for
formulabar.
Change-Id: Ia8adc645ef3f20426dd509803fcfc4f35662a779
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
The issue was fixed triggered by this test case.
Change-Id: I00522835c25ca18aa374958c5b33b13f35e79563
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
It's duplicated now. It was one of the first
prototype tests.
Change-Id: I6a63644713189c8f56a77cc21df0c2a42d724547
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
After a test failure, it's common, that the afterAll
method also fails which covers the right error
message and also makes the following tests to be ignored.
Change-Id: I5c1bbc5dd8b1b48dd2a8f1fc20a8ca3b8ecd8462
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
1033 means en-US locale. It can be different in an
NC environment for example.
Change-Id: I929a7308b9f0d4a102f836d1ec66c5c98a6eb9c6
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
In NC environment it does not work properly.
Change-Id: I9adbb01b450103a6ac2aa211eb933a5ab3f5fcd2
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
For some reason if we use proxy.php continuously, then
it will eventually fail on the test. With visiting the
localhost in the afterEach method we can avoid that.
Change-Id: If56c8e40e9e2b9002c1c5b0b91851e4a19a2c9bd
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
We might hit a race conidtion here. I'll need to
investigate this later. It seems sometimes the
selectio is what is undo-ed and not the text
modification.
Change-Id: Ib9c6214cefd0b8625116681c3cbca17899beaece
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
In CI environment this does not work. I'll need to find out
how to make this tests work there too.
Change-Id: If9780796b52aa27fd18d72cc3bf786ab46865e4a
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Let see whether waiting some time after context switch
makes things better. Cypress does not support iframes
very well.
Change-Id: If6011f16c54e3473bef20546f39bb45941c40dc9
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
It's a known issue that formula bar is very laggy,
which makes test to fail.
Change-Id: Ia2cbee763c596065e36d178913a8df400adb4668
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
We should wait until the undo/redo toolbar
items become enabled, before pushing them.
Change-Id: Ieea499722917e8ae1689701b819f5eb181c6c4e9
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
For some reason the build hangs with retries. It must be
an issue with cypress itself, but I did not manage to
find a small reproducable test to report a bug about it yet.
Change-Id: I89874a2601649274ed9f7bf7a0e88c9cd1ffcf6f
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
With php-proxy the timings are a bit different.
We need to make sure that the mobile wizard is
already in the right state to close it.
Change-Id: I4d5c26400c301a0c51622bd799c49ed7d04d1478
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
In NC statusbar and sidebar an be hidden by
default. Let's avoid test failures because of
that.
Change-Id: If6083df431bfc438f72be4f13e078ea335df114a
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
It's a known issue, that with php-proxy we can't load
the same document twice.
Change-Id: I401a74734e1781f76847387ee9677a0fe6ca699d
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
We will need these methods in desktop tests too.
Change-Id: I302cb0b57fee8b15fbe0804dec14646cb11f0f2f
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
We need to do this differently in an NC environment.
Change-Id: I260fbe42851794e630be327bc25ec34201cad36c
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
In an iframe context 'not.exist' check does not
work correctly.
Change-Id: Ie522fd02ac5151fec401f49a8b80a64edbbbeb1b
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Suprisingly the tests were not failing on this.
It might be an issue in cypress itself.
Change-Id: I27f6bc93a5a2880a00bfd1e0a0ced3e0b7b9b97c
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
In an NC environment reopening a document is not that easy.
Change-Id: Id18042dc08ab82c0538b03c17ecf6c9fb697cb23
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
On NC we have different options for image insertion.
In the feature, it would be good to create NC specific
tests too for image insertion.
Change-Id: I540bbe0ddd66e3a2a4560282fd48f9f9002f970d
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
The dialog is opened before the selected text content
arrives to the client.
Change-Id: I40fbc5e415c197515609304a047f0e5e303ae800
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
It's a known issue, that image insertion test does
not work with php-proxy.
Change-Id: I0cd22ff4a96893c386fce28c5ef87716fd7b9b71
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
An extra annotation element was added but never removed
This was not a functional problem
But not a good practice and also made cypress hard to maintain
Change-Id: I53fc7d55154a601c52f89e35b9236f5ae66b46fd
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
We got some new exceptions and also we have a start
screen now.
Change-Id: I22288ede30540437e8b0a5d3ce4c607d42a465bc
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
We have a way of running the tests against
the actualy php-proxy script:
CYPRESS_INTEGRATION="php-proxy" make check
So let's remove the C++ implementation, so we don't
need to maintain a duplicated code.
Change-Id: Ie095a70a8175cc8cb4894905826d13762127b148
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
The idea it to run an existing cypress test while
the same document is opened by a second user. The second
user does some activity (e.g. moving cursor, clicking, etc)
and we check whether it makes any interference with the first
user's view. The first user is doing the actual test's steps,
so we can see if interference breaks the assertions.
Now it's just a prototype for testing it in the CI setup.
Change-Id: I3e02c037754862d628c73bbb4b2d82ea84b8a719