summaryrefslogtreecommitdiffstats
path: root/cypress_test/integration_tests/desktop/writer
Commit message (Collapse)AuthorAgeFilesLines
* Update cypress tests.Gökay Şatır2023-08-143-34/+30
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I1c60f89d6ab68e4a61861d77383010dd7f22480a
* a11y: provide info about current table and cell to screen readerMarco Cecchetti2023-08-101-0/+95
| | | | | | | | | | | | | | When we get in one or more tables screen reader reports row and column count. When we get out one or more table screen report reports "out of table" for each table. When the fosused cell changes screen reader reports new row/col index. Screen reader reports cell paragraph content, too. Added also cypress tests for checking that the table/cell description string is correct. Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com> Change-Id: I078b29a2f76f91df479f75db76113c80405f7169
* cypress tests for accessibility toggle uiMarco Cecchetti2023-07-102-0/+39
| | | | | | | | | | | | | | | | | | | | Helper functions: checkAccessibilityEnabledToBe check accessibility state independently from current desktop ui setAccessibilityState set accessibility state independently from current desktop ui Both helper functions check that ui state and a11y support in text input element are in sync. Enable/Disable Accessibility Support test state toggling and state preservation when switching ui Typing after switching accessibility state check editable area content after toggling accessibility support Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com> Change-Id: Icce5ae148024a8abf9b65a90229915f28f720554
* cypress tests when editing with a11y disabledMarco Cecchetti2023-06-291-0/+250
| | | | | Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com> Change-Id: I54ae4515ba1b59711cfbd719db777d02f4735d7a
* cypress: expectTextForClipboard helper function never failsMarco Cecchetti2023-06-292-4/+8
| | | | | | | | | | | | | | | | expectTextForClipboard(expectedText) never fails for any passed expectedText string The value returned by the function passed to `then` cypress construct must not be regarded as an implicit assertion. I don't see anymore the '\n TEXT" case. It seems that comparing for equality against the selected plain content is enough. Fixed some cypress test that was failing after modifying expectTextForClipboard. Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com> Change-Id: I64ce31fa2127efcc70bbc3da3ac45fe456e66803
* a cypress env var for enable/disable a11y on testing + a a11y tagsMarco Cecchetti2023-06-291-8/+8
| | | | | | | | | | | Now you can use CYPRESS_A11Y for enable/disable accessibility state on testing. Moreover you can use the taga11yenabled tag for tests that should be run only when accessibility is enabled, and the taga11ydisabled tag for test that should be run only when accessibility is disabled Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com> Change-Id: I4c44e78e5394477b64cc17ac6b815d9d70b059f5
* cypress: adjust values for '#copy-paste-container' elementsHenry Castro2023-06-281-4/+4
| | | | | | | | The element '#copy-paste-container' according to the documentation it is only to prevent flickering, so check only if has children. Change-Id: I11ecdf156c6fee8657e5cd42c2c7daf9f206410b Signed-off-by: Henry Castro <hcastro@collabora.com>
* a11y: editable area: cypress tests for list editingMarco Cecchetti2023-06-151-0/+195
| | | | | | | | | | | | | New tests: - Check content - Moving between entries - Add entries - Typing <backspace> at entry beginning - Typing <delete> at entry end - Selecting at entry beginning Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com> Change-Id: Ib831bb9f44f9fe3828e8f77fcdaf7f12ef901644
* refactored cypress tests for editable areaMarco Cecchetti2023-06-152-969/+902
| | | | | | | | | | | | Helper functions has been moved to external file: contenteditable_helper.js Tests have been subdiveded in groups. Spec file renamed from editing_spec to editable_area_spec Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com> Change-Id: Ifdb18b0de4851a2fc927b3a8fb3b1472165f2b7f
* Force notebookbar ui when a11y is enabledMarco Cecchetti2023-06-156-2/+12
| | | | | | | | When accessibility is enabled in coolwsd.xml, overrides setting in <user-interface> section by force to use the notebookbar UI. Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com> Change-Id: I98f4b288439b21110214ca2a67df639b397184c9
* Disable navigator tests for now.Gökay Şatır2023-06-061-1/+1
| | | | | | | There will be a setting for them. Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I75264e7de14f79642cfd33a7d798ec78188f9213
* a11y: populating editable area with focused paragraphMarco Cecchetti2023-05-311-0/+969
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We handle notification from core about currently focused paragraph: content, caret position, text selection start/end. Notifications are sent on any text changes, even when the text has been modified in another view. Moreover we can request such info to core at any time. That allows AT software to read focused paragraph and selected text. All that keeping editing still working. A set of new cypress tests for checking clipboard content has been developed. failing cpp unit test: - HTTPWSTest::testInactiveClient 'unexpected message' assertion was failing since an idle client can receive an a11yfocuschanged message when the same paragraph has focus in both view and the active view is editing the paragraph. failing cypress tests: desktop - calc/autofilter_spec.js - added more wait time before performing clickOnFirstCell - impress/undo_redo_spec.js - Repair Document was broken - we need to select 'Hello world' in order to overwrite it mobile - impress/spellchecking_spec.js - Apply suggestion - better use selectTextOfShape instead of Ctrl-A Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com> Change-Id: I070d390543fa66fe786c4a0661fa09f891b9883e
* Navigator: cypress testsAttila Szűcs2023-05-301-0/+101
| | | | | | | Added Desktop, and Multiuser tests for writer. Signed-off-by: Attila Szűcs <attila.szucs@collabora.com> Change-Id: I1bbb32303c66eb499cb837289a51caafdf2055a8
* navigator: fix switching in compact modeSzymon Kłos2023-05-252-4/+4
| | | | | Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: Ia5582f36df528235e6ca3f8df583412becd47203
* Enable one writer desktop test in track changes spec.Gökay Şatır2023-05-131-31/+8
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I3d465f331bda1f2619939e8d6d9ca89ef95a0026
* Enable skipped tests in desktop writer top toolbar spec.Gökay Şatır2023-05-131-256/+87
| | | | | | | Remove notebookbar tag and use switch UI functionality. Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I49cfc7340b7ef07d06b0b7c37d24d88127c03735
* Replace notebookbar tag of writer desktop image operation spec with desktop tag.Gökay Şatır2023-05-131-1/+3
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: Ic9ff5eaeafa75d2968b7b0a9a4acc6960c28a079
* Replace notebookbar tag in table operation writer desktop spec.Gökay Şatır2023-05-111-1/+2
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I15a53f8d1b70152646d7799821de10a8df4fdc60
* Writer desktop enable one test in scroll spec.Gökay Şatır2023-05-111-1/+1
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: Ief09792894d4a2dc7d11eaa90bfc3286598cfa41
* Enable 1 desktop writer file properties test.Gökay Şatır2023-05-111-29/+0
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: Iad0e4959d79c2394d6174fd81e5e349460fe5246
* Enable desktop writer complex image operation spec.Gökay Şatır2023-05-111-2/+2
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: Iebd862ff5c01078e07f1af93e81c4e528f24d978
* Enable desktop writer annotation tests.Gökay Şatır2023-05-111-28/+25
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I5ee91f32da271b5fdb209262f52a6828aa248500
* Skip some tests for now.Gökay Şatır2023-05-081-1/+1
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: Idb21db8f295c960b7bed64372060d1590ec1da35
* Skip some tests.Gökay Şatır2023-05-061-1/+1
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: Ia8a2f1d58a3a083c38d259450343b597c64c5919
* Disable some unstable tests for now.Gökay Şatır2023-05-051-8/+8
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: Ib527fbd70c0c50d31fb984b2f379d252aa7badc1
* Enable notebookbar tests and skip some of them.Gökay Şatır2023-05-053-10/+10
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: Icddd2300874d99118603561e5c140e86fbe2829e
* Add nextcloud, notebookbar and screenshot tags to relevant files.Gökay Şatır2023-05-0516-17/+17
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I1b3c1f586d4e030ed02310a57788a7ed40765dde
* Add desktop tags to relevant tests.Gökay Şatır2023-05-0516-17/+17
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: Id0e2a335c82e253eb97e647254ef32e2a18dcd89
* Update writer desktop tests.Gökay Şatır2023-05-0513-886/+404
| | | | | | Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: I974bb8ee2e7d77cae29ac97b2c0f6b687e90e005 Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
* Update Cypress and make related changes.Gökay Şatır2023-05-051-101/+50
| | | | | | Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: Ie896ea22b5591ea5e7d574f2436ece7a31da4c0c Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
* Add close button to paste warning dialogues.Gökay Şatır2023-04-241-1/+1
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: Ic9e7b11ddcca432b7ec4d218c4085496c56059bc
* Improve Cypress tests and fix one comment related case for Impress.Gökay Şatır2023-04-241-1/+1
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: Ib243a70b8a0cf5f3abfd8f713525520f7b152c57
* Update comments related Cypress tests.Gökay Şatır2023-04-241-2/+2
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: I0318c8104b6ef5e3ba649dce31a2894335b5ab6e
* Required Cypress changes after replacing popups.Gökay Şatır2023-04-241-14/+21
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: Ice48a7c83afb9311b2eb9ebcf1d3dbccb9ad5f8b
* Remove vex from comments.Gökay Şatır2023-03-211-2/+2
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: I3ebb052bdac91e3e2fd084dca06d8f221d82083e
* cypress: updated tests for co-23.05Rash4192023-03-201-1/+12
| | | | | Signed-off-by: Rash419 <rashesh.padia@collabora.com> Change-Id: I08d82284f88beea96fa931c691a9208c64d4a940
* cypress: updated the test for core co-23-05Rash4192023-03-173-12/+23
| | | | | Signed-off-by: Rash419 <rashesh.padia@collabora.com> Change-Id: If4c2b252ca53ecfe4e3db6722d2bb7cb5069a242
* Revert "Remove unnecessary `.wait`s from image tests"Rash4192023-03-141-0/+10
| | | | | | | | | - image test consistently fails without waits in CI This reverts commit b529c96a488eb23716d99599cb9280360b4c53e7. Signed-off-by: Rash419 <rashesh.padia@collabora.com> Change-Id: I66bd85c8fe1ce28ccab8d644a98265145d3de64b
* cypress: adjust file description to new typingSzymon Kłos2023-03-141-2/+9
| | | | | | | | | | | | we send value on every key press now, but core still sends updates back, after we update core to not notify us with the same value it can be reverted this prevents us from having incorrect text when typing long sentences and receiving updates with delay Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: If87c3f1c83018920dfaa8f3c31f567b25df27c61
* Force viewport to be correct size for image testsNickWingate2023-03-141-1/+2
| | | | | Signed-off-by: NickWingate <nick.wingate@collabora.com> Change-Id: I01d3b7ddaa0a48b59b43466ffdd2e5bb54ccc7c8
* Remove unnecessary `.wait`s from image testsNickWingate2023-03-141-10/+1
| | | | | Change-Id: I6ad9b0f256d7613a784684569966dbcf36ec6e2a Signed-off-by: NickWingate <nick.wingate@collabora.com>
* cypress: disabled flaky testsRash4192023-03-091-1/+1
| | | | | Signed-off-by: Rash419 <rashesh.padia@collabora.com> Change-Id: I066470a1284420aa8a906deeec47b2c6829916b9
* Modify cypress tests for JSDialogues.Gökay Şatır2023-03-031-10/+1
| | | | | Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: I566ddb2c3111d2d1689b91c678ac9aa92e88ab05
* cypress: hyperlink converted to jsdialogSzymon Kłos2023-02-221-2/+2
| | | | | Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: I2b79fdb15102fe4a7631cbb8ee654f9be9c72709
* Consistent captial letters on testsNickWingate2023-02-211-4/+4
| | | | | Signed-off-by: NickWingate <nick.wingate@collabora.com> Change-Id: Id8300044ef8a9f6cf60b0cb24b2ec18d82aae15d
* Specify which part of comment box to clickNickWingate2023-02-211-2/+2
| | | | | | | | Three elements have the `.cool-annotation-collapsed` tag Specify the correct one Signed-off-by: NickWingate <nick.wingate@collabora.com> Change-Id: I1c8f16c9ef7cfedecf02fe0c46afbf5cbde90a7c
* Document repair checks for jsdialogNickWingate2023-02-211-3/+3
| | | | | | | Previous code checked for a tunneled dialog Signed-off-by: NickWingate <nick.wingate@collabora.com> Change-Id: I87f78bd8ef6542dc11132f5938d8c5f3838c5c5c
* cypress: fix: inconsistent writer/image_operation_spec.jsRash4192022-12-161-0/+4
| | | | | Signed-off-by: Rash419 <rashesh.padia@collabora.com> Change-Id: Iff79e224fa10b4b8462280dcae650c96b3a933e4
* Make the repair document dialog into a JSDialogSkyler Grey2022-09-081-8/+3
| | | | | | | | | | | | | | | | | | | | | | - The repair document dialog is a leaflet dialog - As this dialog is online-side only, I'll use the JSDialog builder directly rather than writing a UI file - Most of the code to build the dialogs is already very adaptable from looking at the protocol of existing JSDialogs that come from the server & where the code goes, however a small change had to be made to dialog modifications to allow us a callback function, as otherwise we would send off to the server whenever we pressed on a list item - Finally, if there's no list to show, we'll show a bit of text saying that there's nothing, as otherwise it looks like an empty/broken dialog - If we're on mobile, we'll need to use the alternative helper (the one that handles mobile wizard building) - Fix a cypress test for writer (although impress and calc seem to have tests for this too that aren't implemented: this should be handled in a follow-up PR) - Fix mobile tests Signed-off-by: Skyler Grey <skyler.grey@collabora.com> Change-Id: Iab9e943a428e66b05e28819c2ee1001a2deffd2c
* Don't use vex btn default btn CSS classes (rename)Pedro Pinto Silva2022-09-062-2/+2
| | | | | | | | | | | | | By Renaming .vex-dialog-button-primary -> .button-primary and .vex-dialog-button-secondary -> .button-secondary - So we can remove duplicity on CSS buttons - Easier to set vex primary and secondary button to use our css classes - This way there is no need to hunt those specific cases down. - Update cypress tests Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com> Change-Id: I82f4b33560367805eeeeb5aec9af8d1abd313788