Julius Härtl
c5fd010140
chore: Skip files list in sharing tests
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-03-26 17:34:15 +01:00
Christopher Ng
3c615757ad
test: Update cypress selector
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-03-21 20:23:06 +01:00
Julius Härtl
aa3e6a50ed
Merge pull request #5537 from nextcloud/fix/assistant-preview
2024-03-20 18:36:57 +01:00
Jonas
a4e8747447
text(cypress): Test browser refresh warning after document session cleanup
...
Signed-off-by: Jonas <jonas@freesources.org>
2024-03-20 16:29:02 +01:00
Jonas
fc604e236f
test(cypress): Add session API tests with non-matching baseVersionEtag
...
Signed-off-by: Jonas <jonas@freesources.org>
2024-03-20 16:29:02 +01:00
Julius Härtl
22b5898206
fix: Force visibility for tippy
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-03-20 16:01:12 +01:00
Jonas
f3439d708d
fix(DocumentStatus): Refactor and migrate to `NcNoteCard`
...
Fixes : #4905
Signed-off-by: Jonas <jonas@freesources.org>
2024-03-20 15:28:36 +01:00
Max
fb0a8cee20
tests(links): ignore link bubble when reading link text
...
The link bubble now also gets rendered
when the cursor is behind the link.
`cy.get` will always start at the root of the doc.
So it also found the link inside the link bubble.
Use `.find` on the content instead as the link bubble is outside of that.
Signed-off-by: Max <max@nextcloud.com>
2024-03-20 10:52:55 +01:00
Julius Härtl
e268115e6c
fix: Clean up logic to return document state file or file content
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-03-20 10:17:22 +01:00
Max
7668b68ef4
Revert "test(cy): skip test failing due to server issue"
...
This reverts commit 77d77561fc
.
Signed-off-by: Max <max@nextcloud.com>
2024-03-15 09:57:10 +01:00
Jonas
b227be0344
fix(session): Fix setting a guest name
...
Fixes : #4252
Signed-off-by: Jonas <jonas@freesources.org>
2024-03-13 12:59:52 +01:00
Julius Härtl
9e6e454760
ci: Adapt file widget selector to changed server class
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-03-11 18:08:12 +01:00
Julius Härtl
d7d87b8aab
ci: Skip assistant tests for now until fixed
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-03-11 18:08:10 +01:00
Max
81ec438427
fix(preview): allow preview for links followed by whitespace
...
Signed-off-by: Max <max@nextcloud.com>
2024-03-07 12:47:56 +01:00
Julius Härtl
fecb336ebc
style: Fix eslint errors
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-03-07 07:52:53 +01:00
Max
dd12e5aa60
test(preview): do not run commands in Preview md test
...
They convert the node without changing the content
resulting in an endless loop.
Signed-off-by: Max <max@nextcloud.com>
2024-03-06 19:08:35 +01:00
Max
544bfb6dac
fix(preview): set selection inside the node
...
Signed-off-by: Max <max@nextcloud.com>
2024-03-06 18:58:35 +01:00
Max
1ee3cbdf74
fix(preview): hide tooltip for links in preview
...
Signed-off-by: Max <max@nextcloud.com>
2024-03-06 18:58:35 +01:00
Max
75f5479f04
fix: get rid of link in preview to avoid popup
...
Signed-off-by: Max <max@nextcloud.com>
2024-03-06 18:58:35 +01:00
Max
9127692df7
enh(Preview): split togglePreview in setPreview and unsetPreview
...
They actually need to do different things
due to the different structure.
On the one hand we have the preview node
with plain text content.
And on the other hand a paragraph node
with the text wrapped in a link mark.
Signed-off-by: Max <max@nextcloud.com>
2024-03-06 18:58:33 +01:00
Max
0d8c165ab8
enh(preview): togglePreview to return false when not possible
...
Signed-off-by: Max <max@nextcloud.com>
2024-03-06 18:58:32 +01:00
Max
fe74b7bc66
test(cy): make node test helpers available
...
Signed-off-by: Max <max@nextcloud.com>
2024-03-06 18:58:32 +01:00
Julius Härtl
65bc514457
Merge pull request #5269 from nextcloud/bugfix/assistant-sync-task-handle
...
feat: handle assistant sync task
2024-02-28 19:28:23 +01:00
Jonas
fbfb8e0c02
Merge pull request #5412 from nextcloud/fix/link_to_files
...
fix(links): Insert `/f/<fileId>` format for links to files
2024-02-27 10:21:37 +01:00
Luka Trovic
10ebf2ec32
feat: handle assistant sync task
...
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2024-02-27 08:50:20 +01:00
Luka Trovic
9d7db568df
feat: handle assistant sync task
...
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2024-02-26 21:06:04 +01:00
Jonas
4c546f77b0
test(cypress): Fix import from `cypress-visual-regression`
...
Signed-off-by: Jonas <jonas@freesources.org>
2024-02-26 14:40:25 +01:00
Jonas
33dc25ac65
fix(links): Insert `/f/<fileId>` format for links to files
...
Get rid of the old `/path/?fileId=<id>` format. It never really worked
anyway because the paths were relative to the users' home directory.
Instead, insert links to files/folders as full URLs with the
`/f/<fileId>` format. This makes link previews work both in Text and
Collectives.
Rewrite links in the old format to the new format. But don't touch
absolute link (without origin) to the collectives app to not break
collectives-specific link handling to other pages.
Signed-off-by: Jonas <jonas@freesources.org>
2024-02-26 12:55:51 +01:00
Jonas
696950b257
test(cypress): Force-click breadcrumbs at filelist reload (might be hidden)
...
Since server#43325, breadcrumbs might be hidden during file operations.
Signed-off-by: Jonas <jonas@freesources.org>
2024-02-26 12:41:15 +01:00
Jonas
683e88e35d
test(cypress): Update home button selector in file picker breadcrumbs
...
Signed-off-by: Jonas <jonas@freesources.org>
2024-02-24 11:51:50 +01:00
Elizabeth Danzberger
8b3360d848
improved cypress element selectors according to best practices
...
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2024-02-20 19:40:59 -05:00
Elizabeth Danzberger
0a70ed5cf5
added optional chaining to hasCode property for consistency
...
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2024-02-20 12:22:10 -05:00
Elizabeth Danzberger
81960db791
fixed cypress test and added test for copy code button
...
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2024-02-20 12:18:51 -05:00
Christopher Ng
976b8300b8
chore(cypress): Fix tests
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-02-08 17:11:08 +01:00
max-nextcloud
8cc511b479
Merge pull request #5335 from nextcloud/fix/duplicate-loading-of-workspace
...
fix: only register workspace once
2024-02-06 11:44:02 +01:00
Max
39b2862a06
test(cy): use more robust selectors in file picker
...
* Use the selectors used in server to test the files app.
* Rely on semantics (`nav`, `[aria-label=...]`).
Signed-off-by: Max <max@nextcloud.com>
2024-02-04 08:11:52 +01:00
Max
51064d95e0
fix: only register workspace once
...
Fixes #5332 .
Looks like #4698 brought back the file list header initialization
that had just been moved to an init script in #4776 .
Signed-off-by: Max <max@nextcloud.com>
2024-02-02 15:13:29 +01:00
github-actions[bot]
45290ea012
Merge pull request #5316 from nextcloud/renovate/main-nextcloud-router-2.x
...
fix(deps): update dependency @nextcloud/router to ^2.2.1 (main)
2024-01-31 07:32:42 +00:00
renovate[bot]
1d04855907
fix(deps): update dependency @nextcloud/router to ^2.2.1
...
Signed-off-by: Max <max@nextcloud.com>
2024-01-31 08:24:53 +01:00
Jonas
9a819168fe
test(cypress): Fix link tests with link bubble
...
Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:06 +01:00
Jonas
54dc1fcbd6
test(cypres): Fix selector for file picker breadcrumbs home button
...
Signed-off-by: Jonas <jonas@freesources.org>
2024-01-24 10:26:06 +01:00
Max
711258d7c9
fix(mention): use new url schema
...
Signed-off-by: Max <max@nextcloud.com>
2024-01-22 08:11:44 +01:00
Max
89493af804
fix(sync): yjs messages are Uint8Arrays in the queue
...
Remove duplicate encoding for updateMessage
Signed-off-by: Max <max@nextcloud.com>
2024-01-18 12:14:40 +01:00
Max
57662dff43
fix(sync): push local changes on reconnect
...
When an editing session is interrupted
steps that were already pushed to the server
may be cleared alongside the sync service session.
Make sure to push all local state
that is not part of the document state
when (re-)connecting.
Tests
Yjs relies on a browser environment.
Therefore we test it in a cypress test.
Move these tests into component tests
to separate them from 'normal' e2e tests.
Signed-off-by: Max <max@nextcloud.com>
2024-01-18 07:52:18 +01:00
Max
66d4d8e4c1
fix(cy): format test with actions in overflow menu
...
Signed-off-by: Max <max@nextcloud.com>
2023-12-28 09:18:24 +01:00
Max
e757c16466
fix(sync): keep queue around during reconnects
...
When yjs does not receive awareness updates
it will close and reopen the websocket.
Keep the content of the queue, i.e. the outgoing steps
so they can be send out once the connection is back.
Signed-off-by: Max <max@nextcloud.com>
2023-12-18 13:14:29 +01:00
Max
77d77561fc
test(cy): skip test failing due to server issue
...
https://github.com/nextcloud/server/issues/42306
causes the DELETE request to fail with 423 Locked.
Signed-off-by: Max <max@nextcloud.com>
2023-12-18 10:48:05 +01:00
Max
7842447ccc
test(cy): use function() instead of arrow shorthand
...
Otherwise `this.testFolder` is not available
as `this` cannot be reassigned with arrow functions.
Signed-off-by: Max <max@nextcloud.com>
2023-12-18 07:22:45 +01:00
Max
b63c004033
test(cy): use `createTestFolder()` and `visitTestFolder()
...
* `cy.openWorkspace()` and `cy.createDescription()`
use the currently opened path now.
They don't need any argument anymore.
This also avoids duplicate page loads.
* Use 'testFolder' alias and `this.testFolder`
instead of `currentFolder` variable.
Signed-off-by: Max <max@nextcloud.com>
2023-12-17 18:41:46 +01:00
Max
0c7a0e3e33
test(cy): ensure default language in workspace spec
...
Some tests modify it - so set it to `en` in `beforeEach`.
Following the recommendataion of preparing everything
in `beforeEach` hooks
rather then reverting the changes in `after` hooks
so the state of failing tests can be inspected.
Signed-off-by: Max <max@nextcloud.com>
2023-12-17 10:28:27 +01:00