aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/e2e
Commit message (Collapse)AuthorAgeFilesLines
* feat(sharing): Allow to set default view mode for public sharesFerdinand Thiessen12 days1-0/+102
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: compile assetsskjnldsv2025-02-072-2/+2
| | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* chore(files): add actions cypress testsskjnldsv2025-02-074-11/+243
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* Merge pull request #50678 from nextcloud/fix/harden-account-propertiesFerdinand Thiessen2025-02-061-6/+13
|\ | | | | fix(AccountProperty): better validation of twitter and fediverse handles
| * fix(settings): Also sanitize fediverse and twitter handle in the frontendFerdinand Thiessen2025-02-061-6/+13
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | test(files_sharing): Check that default expiration date is shown b4 create sharenfebe2025-02-061-5/+14
|/ | | | Signed-off-by: nfebe <fenn25.fn@gmail.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-054-80/+185
| | | | 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>
* test(files_sharing): add e2e tests for public link sharingnfebe2025-02-033-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>
* refactor: Modularize setup-public-share.tsnfebe2025-02-031-64/+77
| | | | | | | | | | | This update enhances the testing framework for public sharing by improving the setup and management of share contexts. It refactors the code to make the `createShare` function reusable externally, ensuring better testability and flexibility. 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(theming): Ensure to only send valid URLs to backendFerdinand Thiessen2025-01-271-0/+143
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(tests): Make linter happy in cypress testschore/cypress-typosFerdinand Thiessen2025-01-224-8/+7
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* 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-257-18/+13
| | | | 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>
* 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): 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-0611-104/+816
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: Add end-to-end tests for public page header actionsFerdinand Thiessen2024-09-031-0/+219
| | | | 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>
* chore(cypress): allow db snapshot and restore fo faster testsskjnldsv2024-08-221-7/+20
| | | | 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>