aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/e2e/files
Commit message (Collapse)AuthorAgeFilesLines
* test: add e2e tests for multiple-files downloadtest/files-downloadFerdinand Thiessen12 days1-0/+206
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(cypress): rename select all clearskjnldsv2025-04-241-2/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(tests): Files are sorted by Name by default, no need to click itCôme Chilliet2025-03-251-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(files): Ensure actions never overflow filenameFerdinand Thiessen2025-03-241-2/+0
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test(cypress): wait for button to be visibletest/cypress-flakyFerdinand Thiessen2025-03-192-17/+29
| | | | | | | Instead of just expecting the button in the DOM. This causes flaky tests with files-renaming. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: make cypress run in secure context and add WebAuthn testsFerdinand Thiessen2025-03-191-25/+16
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): also show file list headers on empty viewsFerdinand Thiessen2025-03-051-0/+6
| | | | | | | It is needed, e.g. for the note-to-recipient, that the headers are also shown when there is no content (yet). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test(e2e): adjust trashbin tests to be less flakytest/cypress-flakynessFerdinand Thiessen2025-03-033-5/+83
| | | | | | | | | 1. Move general files delete action (thats not trashbin app!) to files tests. 2. Delete files (move to trashbin) before loading the page so previews are not generated so they cannot lock the file. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_trashbin): disable bulk download for trashbinFerdinand Thiessen2025-02-281-3/+7
| | | | | | | The backend does not allow bulk download within the trashbin, so we need to disable this also on the frontend. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(cypress): wait for toast to appearskjnldsv2025-02-281-1/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files): allow to ignore warning to change file typeFerdinand Thiessen2025-02-251-11/+32
| | | | | | | | | | | | | * Missing pieces of https://github.com/nextcloud/server/issues/46528 * Add checkbox to not show this dialog again * Add user config as suggested by designers in files settings to reenable or diable this behavior. * Fix behavior of dialog: It says "keep .ext" but it does not keep the extension but cancels the operation. From the button label the user expects that the operation is continued but with the old extension. * Added more test coverage by adding component tests. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(cypress): action selector menu lookupskjnldsv2025-02-202-5/+23
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_external): add cypress tests for user credentials actionskjnldsv2025-02-201-2/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): do not show extension warning for folders renamingfix/files-rename-folderskjnldsv2025-02-191-1/+64
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): properly show file not found errorskjnldsv2025-02-181-1/+42
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files): add actions cypress testsskjnldsv2025-02-072-8/+240
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): Do not download files with `openfile` query flagFerdinand Thiessen2025-02-061-0/+180
| | | | | | | 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): Make scrolling tests independent from magic valuesFerdinand Thiessen2025-02-053-80/+145
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Correctly scroll selected file into viewFerdinand Thiessen2025-02-051-0/+280
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(cypress): Finish commentChristopher Ng2025-02-041-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): Fix casingChristopher Ng2025-02-041-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): Ensure favorites set in sidebar workFerdinand Thiessen2025-01-211-0/+137
| | | | | | | | | | | | | | When marking a file as favorite from within the sidebar make sure it really works, this fixes two issues: 1. The source needs to be the plain source not URL encoded, as otherwise the source of the node would be encoded twice (and show with encoding in the navigation) 2. The store should also listen for the update events as the sidebar has no access to the real node to update it, instead the store should - as long as we only have the legacy sidebar - update the node when added or removed as favorite. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): File type filter UI sync with filter stateFerdinand Thiessen2025-01-171-0/+49
| | | | | | | When changing the folder the filter will be re-mounted by the file list, so we need to pass the current state of the filter to the filter UI. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): sort not working after changing viewsfix/files/sort-after-view-changeRichard Steinmetz2025-01-161-0/+61
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* test(cypress): make select range of files with shift key more reliableRichard Steinmetz2025-01-081-3/+3
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix(cypress): flaky live photo test grid_view trigger issueskjnldsv2025-01-032-8/+20
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_trashbin): add cypress testsskjnldsv2024-12-121-4/+28
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): cancel renaming on enter if no file name changesskjnldsv2024-12-101-0/+39
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: Copying a live photo to a folder with a conflicting mov fileLouis Chemineau2024-12-042-6/+18
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* test: Copying a folder containing live photosLouis Chemineau2024-12-042-68/+147
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(files): add selection cypress testsskjnldsv2024-11-074-3/+89
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(systemtags): add cypress tests and fix a few logic issuesskjnldsv2024-10-291-2/+25
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): Ensure renaming state is correctly resetFerdinand Thiessen2024-10-151-1/+29
| | | | | | | | | | | | | 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-09-201-0/+33
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: Add end-to-end tests for new public share Vue UIFerdinand Thiessen2024-09-061-5/+5
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test(cypress): Await promise in response to prevent timeoutFerdinand Thiessen2024-09-011-1/+4
| | | | | | | | | | | | | | | The idea is to intercept the request, then test the loading state, and after the tests continue the request. Problem here: `cy.intercept` has a timeout on the request-handler which uses the same timeout as DOM assertions (4s) we could increase it, but this also will increase DOM assertion timeout. So instead we do not await in the request handler, but in the response handler. This should use the response timeout which is much higher (30s). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: Add Cypress test for renaming loading stateFerdinand Thiessen2024-08-311-0/+45
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Correctly check for already used names when creating new folderFerdinand Thiessen2024-08-273-8/+140
| | | | | | Also add Cypress tests for the "new"-menu. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: Add test for recent viewFerdinand Thiessen2024-08-011-0/+44
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Provide file actions from list entry to make it reactiveFerdinand Thiessen2024-08-011-0/+145
| | | | | | | | 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>
* fix(files): Correctly validate new node nameFerdinand Thiessen2024-07-261-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> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* test: Add cypress tests for file list filteringFerdinand Thiessen2024-07-252-90/+231
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Ensure displayname is a stringFerdinand Thiessen2024-07-251-0/+25
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: add file request cypress testingskjnldsv2024-07-191-0/+15
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): Close the sidebar on navigationFerdinand Thiessen2024-07-151-4/+53
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Allow to reset unified search using the ↵Ferdinand Thiessen2024-06-271-16/+18
| | | | | | `nextcloud:unified-search:reset` event Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Use `data-cy` (data attribute) instead of `cy-data`Ferdinand Thiessen2024-06-112-7/+7
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-061-19/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(cypress): Add tests for files sidebarFerdinand Thiessen2024-06-041-0/+94
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-269-152/+20
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>