aboutsummaryrefslogtreecommitdiffstats
path: root/cypress
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Merge pull request #50206 from nextcloud/fix/50177/movy-copy-e2e-testsFerdinand Thiessen2025-01-162-0/+162
|\ | | | | test(e2e): copy-move actions with insufficient share permissions
| * test(e2e): hide move dialog action if destination has no CREATE permissionfix/50177/movy-copy-e2e-testsMaksim Sukharev2025-01-162-0/+162
| | | | | | | | Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
* | test(dashboard): Add regression test for loading unneeded dataFerdinand Thiessen2025-01-161-0/+41
|/ | | | | | Prevent a regression of https://github.com/nextcloud/server/issues/48403 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: Add end-to-end test for share expiration dateFerdinand Thiessen2025-01-152-3/+146
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(template): Use `<div>` instead of `<main>` to support Vue3 apps mountingFerdinand Thiessen2025-01-141-2/+2
| | | | | | | | | | | | | | | | Vue3 does not replace the element while mounting but only renders within (replace inner HTML). So it would result in two stacked `<main>` elements which is invalid and an accessibility issue. Instead we just use a `<div>` element for mounting. For Vue2 apps this does not change anything as the whole element will be replaced with a new `<main>` element. For vanilla apps this will slightly decrease the accessibility as the main landmark is now missing, but this is not a hard accessibility issue as it would be for Vue3 apps having two main elements. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* 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>
* fix: Redirect user to login if session is terminatedFerdinand Thiessen2024-12-191-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>
* perf(files_trashbin): use empty trashbin endpoint instead of batch delete ↵skjnldsv2024-12-121-1/+1
| | | | | | requests Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_trashbin): add cypress testsskjnldsv2024-12-122-4/+127
| | | | 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>
* test(files): Update testsChristopher Ng2024-12-032-8/+0
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* chore: Update @nextcloud/cypress to v1.0.0-beta.11artonge/chore/update_nc_cypress_beta.11Louis Chemineau2024-11-2511-76/+35
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(systemtags): enhance create tag in tag picker UXskjnldsv2024-11-151-1/+4
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(profile): move profile app from core to appsskjnldsv2024-11-141-4/+7
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): open sidebar on sharing tab by default for filesskjnldsv2024-11-081-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files): add selection cypress testsskjnldsv2024-11-074-3/+89
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* test: Add proper styles for Cypress component testsFerdinand Thiessen2024-10-295-96/+109
| | | | | | | This also fixes Typescript issue but requires to slightly adjust the Navigation test as the progress bar is not visible (because it is overlayed by another element). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): fix view only actions button selectorfeat/files-bulk-taggingskjnldsv2024-10-291-2/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(systemtags): add cypress tests and fix a few logic issuesskjnldsv2024-10-292-2/+379
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): Adjust NavigationQuota for Nextcloud 30 designFerdinand Thiessen2024-10-211-0/+4
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* 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>
* feat(files): Make the files download action use WebDAV zip downloadFerdinand Thiessen2024-09-281-3/+1
| | | | 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-0614-111/+855
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: Add end-to-end tests for public page header actionsFerdinand Thiessen2024-09-033-0/+260
| | | | 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-312-0/+48
| | | | 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>
* fix(cypress): drop unwanted docker output charactersskjnldsv2024-08-221-4/+9
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(cypress): enable apcuskjnldsv2024-08-221-6/+24
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(cypress): put nextcloud into ramskjnldsv2024-08-222-3/+15
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(cypress): allow db snapshot and restore fo faster testsskjnldsv2024-08-222-7/+43
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: Access node owner by top level `owner` propertyFerdinand Thiessen2024-08-171-0/+105
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(tests): Fix import in cypress test limit_to_same_group.cy.tsCôme Chilliet2024-08-121-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-121-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-121-1/+28
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(tests): Test limiting sharing to same groupLouis Chemineau2024-08-121-0/+97
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* test: Added e2e tests for inline system tags file actionFerdinand Thiessen2024-08-082-0/+199
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: unify bundle namingJérôme Herbinet2024-08-061-1/+1
| | | | | Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com> Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(core): Migrate UserMenu / AccountMenu to NcListItemFerdinand Thiessen2024-08-061-2/+6
| | | | 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-013-4/+151
| | | | | | | | 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(files_sharing): Add test for "note to recipient" featureFerdinand Thiessen2024-07-312-2/+79
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Fix cypress docker integration when testing locallyFerdinand Thiessen2024-07-301-2/+2
| | | | | | The tar library was updated but not the syntax adjusted. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>