aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/e2e/files
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* fix(files): Ensure search query is cleared when changing view or directoryFerdinand Thiessen2024-04-171-0/+105
| | | | 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-161-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(Cypress): Adjust tests for new breadcrumbsEduardo Morales2024-04-102-10/+10
| | | | 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(files_versions): Add listener and interfaces to allow versions ↵Louis Chemineau2024-03-262-34/+43
| | | | | | migration across storages Signed-off-by: Louis Chemineau <louis@chmn.me>
* 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>
* 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>
* test(files): Add e2e tests for live photo syncLouis Chemineau2024-03-142-0/+246
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* test(files): Add move and copy utils for e2e testsLouis Chemineau2024-02-272-70/+69
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): Update `webdav` to 5.3.2 fixing handling of files with XML ↵Ferdinand Thiessen2024-02-093-7/+101
| | | | | | entities in their names Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(cypress): Adjust files sorting testsFerdinand Thiessen2024-01-271-6/+6
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test(files): Fix file picker testChristopher Ng2024-01-231-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): Allow to copy or move file to folder with similar nameFerdinand Thiessen2024-01-201-0/+31
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>