summaryrefslogtreecommitdiffstats
path: root/cypress
Commit message (Collapse)AuthorAgeFilesLines
* fix(cypress): rename select all clearskjnldsv2025-03-061-2/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* test: Improve stability of live photo e2ee testsbackport/51281/stable29Louis Chemineau2025-03-062-68/+130
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(test): Escape quotes in runOccCommand argumentLouis Chemineau2025-03-061-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(tests): Fix using save/restore state in cypressLouis Chemineau2025-03-064-16/+28
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(cypress): opendetails testsskjnldsv2025-02-211-71/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(cypress): action selector menu lookupskjnldsv2025-02-211-7/+36
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(cypress): also log the current server image shaskjnldsv2025-02-211-0/+4
| | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com> [skip ci]
* chore(files_external): add cypress tests for user credentials actionskjnldsv2025-02-212-0/+176
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): properly show file not found errorskjnldsv2025-02-191-1/+42
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): Do not download files with `openfile` query flagFerdinand Thiessen2025-02-143-7/+252
| | | | | | | Instead of downloading files, if there is no other default action, we should just open the details tab. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test(files_sharing): Check that default expiration date is shown b4 create sharenfebe2025-02-111-5/+14
| | | | Signed-off-by: nfebe <fenn25.fn@gmail.com>
* chore(assets): Recompile assetsbackport/50626/stable29nextcloud-command2025-02-111-1/+1
| | | | Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* test(files_sharing): add e2e tests for public link sharingnfebe2025-02-113-41/+293
| | | | | | | | | | | | | | | | | | 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>
* feat: Add setup-public-share.tsnfebe2025-02-111-0/+127
| | | | | | | | | | 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>
* fix(settings): Also sanitize fediverse and twitter handle in the frontendFerdinand Thiessen2025-02-091-6/+13
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Redirect user to login if session is terminatedFerdinand Thiessen2025-01-281-0/+62
| | | | | | | | | | | | | | 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>
* fix(theming): Ensure to only send valid URLs to backendFerdinand Thiessen2025-01-271-0/+143
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): sort not working after changing viewsbackport/50161/stable29Richard Steinmetz2025-01-201-0/+61
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* test: Add end-to-end test for share expiration dateFerdinand Thiessen2025-01-153-4/+150
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): cancel renaming on enter if no file name changesskjnldsv2024-12-101-0/+39
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* test: Adjust Cypress setup to support mainline JS syntaxFerdinand Thiessen2024-11-073-1/+16
| | | | | | TODO: Drop when we support Node 22. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Ensure renaming state is correctly resetFerdinand Thiessen2024-11-072-1/+78
| | | | | | | | | | | | | 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>
* test(files): Add tests for path handlingFerdinand Thiessen2024-10-162-0/+48
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(tests): fix import in cypress test limit_to_same_group.cy.tsCôme Chilliet2024-08-131-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(tests): Fix import in cypress test limit_to_same_group.cy.tsCôme Chilliet2024-08-131-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(tests): Fix SPDX license header on new cypress testCôme Chilliet2024-08-131-19/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove shares only if there are no more common groups between usersCôme Chilliet2024-08-131-1/+28
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(tests): Test limiting sharing to same groupLouis Chemineau2024-08-131-0/+97
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): Provide file actions from list entry to make it reactiveFerdinand Thiessen2024-08-082-2/+147
| | | | | | | | 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>
* test: Add test for recent viewFerdinand Thiessen2024-08-081-0/+44
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Correctly validate new node nameFerdinand Thiessen2024-08-021-0/+77
| | | | | | | | | | | | * 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>
* fix(cypress): filesSharingUtils importskjnldsv2024-08-021-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* test: Add regression test for opening shared foldersFerdinand Thiessen2024-08-021-0/+59
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(cypress): adjust files-sidebar.cy.tsskjnldsv2024-08-023-26/+19
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): Close the sidebar on navigationFerdinand Thiessen2024-08-021-1/+41
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Use functions from `@nextcloud/files`Ferdinand Thiessen2024-07-261-0/+25
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(cypress): wait for apps list fetch for better testing stabilityskjnldsv2024-07-091-0/+7
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(cypress): Add tests for files sidebarFerdinand Thiessen2024-06-072-1/+99
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Do not show files from hidden folders in "Recent"-view if hidden ↵Ferdinand Thiessen2024-04-181-0/+116
| | | | | | | | 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>
* fix(files): Ensure search query is cleared when changing view or directoryFerdinand Thiessen2024-04-182-0/+172
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(Cypress): Adjust tests for new breadcrumbsEduardo Morales2024-04-103-13/+13
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* chore: add drag and drop recursion and FilesystemAPI testingskjnldsv2024-04-042-60/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: adjusting cypress drag and drop testsskjnldsv2024-04-042-1/+134
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(settings): Allow to sort groups in the account management alphabeticallyFerdinand Thiessen2024-03-271-1/+80
| | | | | | | 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>
* feat(files_versions): Add listener and interfaces to allow versions ↵Louis Chemineau2024-03-268-57/+182
| | | | | | migration across storages Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat(login): Clear login form (password) after IDLE timeoutFerdinand Thiessen2024-03-251-1/+1
| | | | | | | | | For security reasons it is recommended to stop the login process at a defined time, this could prevent password leaks by e.g. user forgetting that they entered their password on public devices. Enforced e.g. by the BSI ORP.4.A13 rule. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): When copying nodes only add the copy suffix for file before file ↵Ferdinand Thiessen2024-03-221-2/+19
| | | | | | | extension Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Do not escape file names for filepicker buttonsFerdinand Thiessen2024-03-222-1/+39
| | | | | | The text is already escaped by Vue, so we should not escape or sanitize the filename. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test(settings): adjust e2e tests selectors to new structureGrigorii K. Shartsev2024-03-191-14/+11
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* fix(files): Adjust files drop to work with Blink engine (chrom(ium), edge)Ferdinand Thiessen2024-03-181-0/+62
| | | | | | 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>