Commit graph

137 commits

Author SHA1 Message Date
nfebe
f7cc372444 test(files_sharing): Check that default expiration date is shown b4 create share
Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-02-11 10:51:22 -08:00
nextcloud-command
df5ffb13b3
chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2025-02-11 17:17:18 +01:00
nfebe
f0c3f81b77
test(files_sharing): add e2e tests for public link sharing
This commit introduces end-to-end tests for various public link sharing scenarios in the `files_sharing` app. It validates the behavior under multiple configurations:

- Password and expiration date enforced
- Password enforced with a default expiration date
- Expiration date enforced with optional password
- Default password and expiration date without enforcement
- Password enforced, expiration date set but not enforced
- Both password and expiration date not enforced, but defaults set
- Password not enforced, expiration date enforced
- Password not enforced, default expiration date set
- Password and expiration date not enforced with no defaults

The tests ensure proper validation and functionality of the configurations, leveraging the `setupData` and `createShare` utilities.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-02-11 17:16:08 +01:00
nfebe
6b29527e61
feat: Add setup-public-share.ts
This addition enhances the testing framework for public sharing by
improving the setup and management of share contexts.

Additionally, the update optimizes share permission adjustments and
improves state management, making public share setups more efficient and maintainable.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-02-11 17:16:08 +01:00
Ferdinand Thiessen
44742d617f
fix(settings): Also sanitize fediverse and twitter handle in the frontend
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-02-09 13:46:27 +01:00
Ferdinand Thiessen
00d9d8366e fix: Redirect user to login if session is terminated
If a session timed out or was closed in another tab,
then currently the user gets random error messages.
This intercepts 401 responses (should only happen if logged out, or the
users does something wrong).

If we get a 401, we make sure its because of the session,
by checking if the user can access the files app.
If that is also the case we forward the user to the login page
and set the redirect URL to the last used URL.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-01-28 10:06:03 +01:00
Ferdinand Thiessen
d8593af7f2 fix(theming): Ensure to only send valid URLs to backend
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-01-27 17:57:41 +00:00
Richard Steinmetz
f0dfc9c504
fix(files): sort not working after changing views
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2025-01-20 19:30:06 +01:00
Ferdinand Thiessen
105fa977d1
test: Add end-to-end test for share expiration date
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-01-15 21:07:09 +01:00
skjnldsv
b51e7b42fd fix(files): cancel renaming on enter if no file name changes
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-12-10 10:55:00 +00:00
Ferdinand Thiessen
42c5900e11
test: Adjust Cypress setup to support mainline JS syntax
TODO: Drop when we support Node 22.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-11-07 17:37:44 +01:00
Ferdinand Thiessen
533c5e2aa4
fix(files): Ensure renaming state is correctly reset
Problem: Is a node is renamed and the new name is out of the current
visible list of nodes the component will be recycled, this means
the props will change, so when the `onRename` functions is about to reset
the state the `this.source` will point to a different node.

To fix this, but also to separate business logic from visual representation,
the logic is moved into the renaming store and the component is only
responsible for rendering.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-11-07 16:37:55 +01:00
Ferdinand Thiessen
714ef088ad
test(files): Add tests for path handling
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-10-16 18:32:59 +02:00
Côme Chilliet
3ea281269f
chore(tests): fix import in cypress test limit_to_same_group.cy.ts
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-08-13 16:16:52 +02:00
Côme Chilliet
3ec0998ecf
chore(tests): Fix import in cypress test limit_to_same_group.cy.ts
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-08-13 14:39:39 +02:00
Côme Chilliet
8ee5180f39
chore(tests): Fix SPDX license header on new cypress test
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-08-13 14:39:32 +02:00
Côme Chilliet
21e47d4ff9
fix: Remove shares only if there are no more common groups between users
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-08-13 14:33:26 +02:00
Louis Chemineau
ac6c0363de
chore(tests): Test limiting sharing to same group
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-08-13 14:33:17 +02:00
Ferdinand Thiessen
adacfa8e9b
fix(files): Provide file actions from list entry to make it reactive
This fixes non reactive default action text of the name component.
Also use download action as default action so that only one place
is needed to define how to download a file.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-08 17:20:54 +02:00
Ferdinand Thiessen
6524f0a756
test: Add test for recent view
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-08 16:49:15 +02:00
Ferdinand Thiessen
e56fe07bbc
fix(files): Correctly validate new node name
* Resolves https://github.com/nextcloud/server/issues/45409

This includes two fixes:

1. The name in the "new node" dialog is correctly selected (e.g. `file.txt` only `file` is selected by default), to allow quick naming

2. `@nextcloud/files` functions for filename validation are used, this allows to use new Nextcloud 30 capabilities (e.g. reserved names)

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-02 22:08:16 +02:00
skjnldsv
0523fad4c1 fix(cypress): filesSharingUtils import
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-08-02 15:44:29 +02:00
Ferdinand Thiessen
62cf0a3788 test: Add regression test for opening shared folders
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-02 15:44:29 +02:00
skjnldsv
a2ea37921f chore(cypress): adjust files-sidebar.cy.ts
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-08-02 15:00:47 +02:00
Ferdinand Thiessen
c27de43886 fix(files): Close the sidebar on navigation
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-02 10:21:05 +02:00
Ferdinand Thiessen
0539b0a92d
fix: Use functions from @nextcloud/files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-26 02:23:19 +02:00
skjnldsv
70113b817c fix(cypress): wait for apps list fetch for better testing stability
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-07-09 20:37:10 +00:00
Ferdinand Thiessen
7b49eea413 feat(cypress): Add tests for files sidebar
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-07 12:08:37 +02:00
Ferdinand Thiessen
6c544172e3
fix(files): Do not show files from hidden folders in "Recent"-view if hidden files are disabled by user
Needed to adjust the store creation to be able to inject pinia before the vue app is initialized.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-18 12:46:13 +02:00
Ferdinand Thiessen
986fd6e783
fix(files): Ensure search query is cleared when changing view or directory
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-18 00:55:21 +02:00
Eduardo Morales
e7c1850283 fix(Cypress): Adjust tests for new breadcrumbs
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-04-10 08:06:57 -05:00
skjnldsv
0aa4e0a675 chore: add drag and drop recursion and FilesystemAPI testing
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-04-04 11:58:34 +00:00
skjnldsv
d98738cbd0 chore: adjusting cypress drag and drop tests
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-04-04 11:58:34 +00:00
Ferdinand Thiessen
5453c1d7fa
feat(settings): Allow to sort groups in the account management alphabetically
We can do this purly in the frontend - but when enforced from the backend using the existing system config,
we need to follow the requirement. We then show a warning about the configuration.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-27 12:04:03 +01:00
Louis Chemineau
369274c9ee
feat(files_versions): Add listener and interfaces to allow versions migration across storages
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-03-26 17:40:31 +01:00
Ferdinand Thiessen
b0b2811211
fix(files): When copying nodes only add the copy suffix for file before file extension
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-22 19:13:48 +01:00
Ferdinand Thiessen
b9caf24228
fix(files): Do not escape file names for filepicker buttons
The text is already escaped by Vue, so we should not escape or sanitize the filename.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-22 14:20:17 +01:00
Grigorii K. Shartsev
127e3611ca test(settings): adjust e2e tests selectors to new structure
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-03-19 15:38:51 +01:00
Ferdinand Thiessen
3f3955e04b
fix(files): Adjust files drop to work with Blink engine (chrom(ium), edge)
The datatransfer items list is cleared on Blink after the first access to an inner prop due to async handling and GC.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-18 13:05:08 +01:00
Ferdinand Thiessen
4cadb82850
feat(settings): Implement new app discover section for app management
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-14 20:45:24 +01:00
Louis Chemineau
01fe326df1
test(files): Add e2e tests for live photo sync
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-03-14 11:07:20 +01:00
Ferdinand Thiessen
30d5b02811
feat(settings): Split account management into navigation and content
The should ease the maintenance of it due to reduced complexity.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-11 16:02:34 +01:00
Ferdinand Thiessen
84cb04f7c0
feat: Make appstore sidebar tabs standalone components
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-11 16:02:34 +01:00
John Molakvoæ (skjnldsv)
b5b658c0d0
fix(settings): users settings cypress
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2024-03-07 11:54:54 +01:00
Christopher Ng
93b094923e fix(cypress): Adjust cypress tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-03-06 09:30:41 -08:00
Grigorii K. Shartsev
680f439f73 fix(settings): emails actions a11y and design
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-03-05 22:07:49 +01:00
Louis Chemineau
f7a0246290
test(files_versions): Add tests for versions actions
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-27 09:28:23 +01:00
Louis Chemineau
7962379511
test(files_sharing): Add utils to e2e tests files_sharing
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-27 09:22:29 +01:00
Louis Chemineau
83d08a293a
test(files): Add move and copy utils for e2e tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-27 09:22:29 +01:00
skjnldsv
5b757c33d8 fix(cypress): files_versions flakyness
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-02-22 19:10:09 +01:00