Commit graph

698 commits

Author SHA1 Message Date
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
02c28640bb cypress:added cell_apearance_spec for desktop classic and NB calc
loleaflet: fix NB bug where tooltip doesnot disappear on click in some buttons

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I2ccb653d18e6b0ab5f0bcd3aadb36f52a718aaa3
2021-06-21 17:59:53 +05:30
Szymon Kłos
712d5c9fa1 cypress: adjust apply_font tests to recent core changes
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0664a4a2d1d52703cbd249ad72af2f0646f89848
2021-06-15 19:38:24 +02:00
Szymon Kłos
7097860112 cypress: fix apply_paragraph_props_shape_spec
calculation of positions are now calculated sligthly different way
in the core - rounding error

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I199ce78fe826aa50d90e63fd8c0abc9276ffa441
2021-06-12 11:10:18 +02:00
Szymon Kłos
a9a3ac7008 Fix apply_font_shape_spec
broken in 48ca25a1b1

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibf15f6eb898be94ca93961ef75009edc38b7b399
2021-06-12 11:10:18 +02:00
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
Szymon Kłos
1bcf31d7de cypress: reuse selectFormatting helper for number format test
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I052efcf8fcbf0d5058f0c94186ac55b44b2207aa
2021-06-10 11:04:26 +02:00
Szymon Kłos
655bc04ff2 cypress: use entry from the correct combobox
use parent's selector to be sure we use visible entry
and not similar from the hidden combobox

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I16902946e62fd91d6b8d753b79ca20836f806a08
2021-06-10 11:04:26 +02:00
Andreas-Kainz
48ca25a1b1 Mobile Sidebar Character remove Grow and Shrink #2488
Mobile Sidebar Remove Grow Shrink commands

Signed-off-by: Andreas-Kainz <kainz.a@gmail.com>
Change-Id: Ia6de337d7f06efdca40e18359adb88b6b21fd58d
2021-06-10 08:22:29 +02:00
Rash419
e30c8f3e57 cypress:fix number_format_spec and cell_appearance_spec
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I8c3d6bab4c0647cc8fd250ef61792053aa3e51cd
2021-06-07 14:39:28 +05:30
Rash419
e6561ff816 cypress:added image_operation_spec for calc and slide_operation_spec for mobile
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I73032d2e855ddb5500867f1ec5fd7948d7798e5c
2021-06-07 14:39:28 +05:30
Rash419
68509f36ce cypress:added font spec for desktop writer,impress,calc
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Iecd6671be39cd686f47129cde936b705a411f122
2021-06-05 12:35:23 +05:30
Rash419
5c91a25b9e cypress:added delay in delete_objects_spec and fullscreen_presentation_spec
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7333b6bd8a9de1d1f2f82041859374d1f65fc074
2021-06-01 12:41:37 +05:30
Rash419
d2cee95331 cypress: added delay before click on zoom level
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ie339287becf98d50a79d9c34e53b744bc5ae7c50
2021-05-31 12:37:08 +05:30
Andreas-Kainz
8dfd9dab66 Mobile BottomBar Calc Align Menu
Move Align settings into a drop down menu instead of buttons, cause calc has 7 align options.

Signed-off-by: Andreas-Kainz <kainz.a@gmail.com>
Change-Id: I1bbe1ed8b8ef7ada8e56486fef44b962e8dc50d7
2021-05-30 22:50:12 +02:00
Szymon Kłos
e588850786 cypress: fix impress annotation tests
Cypress error said annoration was covered by sidebar.
Hide sidebar and select 50% zoom to show annotations on screen.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6a63c4e95ea0de5ad0338344098e49b387b6c54b
2021-05-28 22:11:19 +02:00
Szymon Kłos
e0dab3246f sidebar: remove tunneled one
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6e915b4bfacb8bf86d84e910896babcd02e8a0af
2021-05-28 22:11:19 +02:00
Szymon Kłos
5c79418507 sidebar: introduce js based sidebar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iad92dfd61014b10453966d1d9c024a2ba61b3628
2021-05-28 22:11:19 +02:00
Szymon Kłos
df538b11d6 cypress: fix shape_properties_spec
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0afcbf2fd9ba0c271a54fae08ba5f3548a14ac44
2021-05-26 21:01:27 +02:00
Szymon Kłos
2e54ce8079 cypress: temporary no check for hidden field
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I173392ede27be7f6c624a16ddc085af433f78121
2021-05-26 21:01:27 +02:00
Szymon Kłos
45dd73ecf6 cypress: fix spinfield test
welded field doesn't switch by step, but always + 0,01

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I765348be2ecb8f5e7303fadd5407695d0fd6d224
2021-05-26 21:01:27 +02:00
Rash419
75e2bffb3d cypress:paragraph properties spec for impress and writer desktop
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I512e3472b07b0deaf08802fda7d6cbfa09e29ecd
2021-05-25 16:53:22 +05:30
Szymon Kłos
12486e4c57 cypress: fix not stable delete image tests
- menu was visible and covered center of the image
- sidebar was covering image in the impress - change zoom
- temporarily introduce delays so slower sidebar will not break tests

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I65eb7a7337880ce48f89669c038a88fde5c67493
2021-05-25 11:57:38 +02:00
Rash419
fe9e577f83 cypress:fix calc delete chart test failing
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If270c9400881292a6ebe54ed697fb70af6c80bb4
2021-05-25 13:30:10 +05:30
Rash419
6ffef3a7fc cypress:added searchbar spec for desktop impress,writer,calc
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If4a23c069c4fce9106b66fbb987f34cfddbb26f9
2021-05-24 16:41:24 +05:30
Rash419
171cacb764 cypress:added tests for track changes in writer
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ifad0ecc0527b4bb1f1c76e66c79285c045b7af9a
2021-05-24 16:39:24 +05:30
Rash419
6488118b73 fix:comment doesnot appear in wizard after reload in writer
and enabled cypress test mobile/writer/annotation_spec.js

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If72e6f98acf5fcad1202332fa6521d7ad0e35e83
2021-05-24 16:39:04 +05:30
Rash419
c961e73f10 cypress: added delete-objects test
added id field in table option of menubar and moved _refreshRowColumnHeaders to canvastilelayer from calctilelayer

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ia2e492cb6edcd65ba2444da34795fe367b25e887
2021-05-24 15:54:31 +05:30
Pedro Pinto Silva
021760f751 Cypress: Toggle bulleted list test: scroll before testing
Default cypress view is too small, scroll first and then
attempt clicking in the bullet icon. This fixes failing tests
on this spec. No need to skip the test anymore.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idffbfec94f94c784b03815c21ece0b8d38a8ba0e
2021-05-20 14:18:53 +02:00
Rash419
d5412e7439 cypress:fix failing test temporarily
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I910dc2e6f8e99add6f7f46811d9c1a569c8d1fc1
2021-05-20 13:32:00 +05:30
Rash419
fb9e41af1f cypress:skip failing tests temporarily
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Icfdb53967eef14ad93ebfc6b1978304e9298db70
2021-05-19 14:41:21 +05:30
Dennis Francis
639846e3fe improve cell cursors and selections
* No AA bleeding: render pixel aligned (ie. 0.5 offset) for all hair-lines
* Two pixel wide line, around the cell - black; with the inner pixels /
  line exactly on top of the cell border.
* inside this breaking the outline - an internal white border which is
  exactly 1 pixel inside that black border - for a high contrast look.

The change introduces CPathGroup which is just an array of CPaths that
allows separate styling. CCellCursor and CCellSelection classes
specialize CPathGroup and implements the above three guidelines.

The view cell-cursors and view-selection also use the same
implementation with different styling.

The cypress tests are updated accordingly for the name change in the
test-div.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I8881337df6cf8d543bd48e8de4560d9aab681dff
(cherry picked from commit d12c8f24bcc2e9d00da7a2fef114f1522f478e93)
2021-05-13 11:30:26 +05:30
Szymon Kłos
04dd13672f cypress: Don't check cursor in formulabar
because it is tunneled now as drawing on the canvas

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I76c7d218abf155b2bd835d9f74b46d02e2808bbc
2021-05-07 20:00:19 +02:00
Rash419
a01e5fb4d8 fix:cypress failing randomly on master
when two or more tests share the same document one or both the test are failing

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I638a76f8f98eff019a298bcafcbe89155442bcde
2021-05-06 19:58:10 +05:30
Rash419
eaa4f29ebf fix:focus_spec failing in CI
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I9560ecde57faa194129dc1ad699745cb65582d3d
2021-04-30 16:51:56 +05:30
Rash419
7d9eefd370 cypress: added annotation tests for desktop
introduced annotation tests for mobile calc, move insertComment function to mobile-helper

added new classes in annotation edit fields to distinguish reply and modify

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I22072037c858c97250d50a8c323893cfbdc31b60
2021-04-28 16:34:46 +05:30
Rash419
04bb760497 cypress:added image operation for impress and writer
Signed-off-by: Rash419 <rasheshpadia419@gmail.com>
Change-Id: I3db41c146bcab4ec90ae376909db0f50b4174704
2021-04-27 16:15:27 +05:30
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