Commit Graph

8281 Commits

Author SHA1 Message Date
Louis 08c38d8aec Merge pull request #61175 from nextcloud/ci/playwright
test(systemtags): migrate from Cypress to PlayWright
2026-06-11 11:26:58 +02:00
Louis 996fcfe443 Merge pull request #57216 from Roszakos/2fa-stateless-provider-interface
feat (2fa): Add IStatelessProvider interface
2026-06-11 11:01:23 +02:00
Daphne Muller 69af641e34 Merge pull request #60500 from nextcloud/enh/noid/taskprocessing-streaming
On behalf of Julien
2026-06-11 10:22:33 +02:00
Côme Chilliet d8a6ab54e7 chore(tests): Use /dev/shm as a tempdirectory
Should fix tests in phpunit-32bits

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2026-06-11 09:45:33 +02:00
Côme Chilliet a8f21da1f7 fix: Fix data directory permission check and its test
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2026-06-11 09:45:32 +02:00
Côme Chilliet 9fe62b6338 chore(tests): Speed up TARTest by compressing a smaller folder
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2026-06-11 09:45:32 +02:00
Côme Chilliet f2c32823d4 chore(tests): Fix typo resulting in tests issue
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-11 09:45:32 +02:00
Côme Chilliet d881bca11f chore(tests): Adapt tests to IUser strict typing
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-11 09:45:31 +02:00
Côme Chilliet c7a5ca60ec chore(tests): Exclude files_external tests from default testsuite
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-11 09:45:31 +02:00
Côme Chilliet a51886569e chore: Pass correct type for alias in QueryBuilderTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-11 09:45:31 +02:00
Côme Chilliet 1b53179ba9 chore: Update guest avatar test image
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-11 09:45:30 +02:00
Côme Chilliet b2a69d0095 fix: Silence PHP warnings from fopen and mkdir
We are testing the result and logging our own error anyway.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-11 09:45:30 +02:00
Côme Chilliet 1f246dec14 chore(tests): Set a token string to avoid getToken returning null from tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-11 09:45:29 +02:00
Côme Chilliet 805902eed3 chore: Re-enable tests failing on drone
We do not use drone anymore, let’s see if we can fix these tests or if
 they should be removed.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-11 09:45:29 +02:00
Côme Chilliet c6452f01a5 chore(tests): Fix User UID mocking in TwoFactorAuth/ManagerTest.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-11 09:45:28 +02:00
Côme Chilliet b4f86c032c chore(tests): Avoid deprecation in PublicKeyTokenProvider
Also cleaned up the test a bit.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-11 09:45:27 +02:00
Benjamin Gaussorgues 73506e8486 chore(deprecated): remove Reflection*::setAccessible as it's noop since PHP 8.1
Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2026-06-11 09:45:27 +02:00
Ferdinand Thiessen ab96b85ac6 test(systemtags): migrate from Cypress to PlayWright
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-06-11 00:56:46 +02:00
Carl Schwan a459b9cc1f refactor(server): Register alias when needed
And remove useless service registration

Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-06-10 23:22:24 +02:00
Kate 8948e923e8 Merge pull request #61169 from nextcloud/test/parent-setup
test: Add missing calls to the parent setUp method
2026-06-10 22:12:55 +02:00
provokateurin 405d250aef test: Add missing calls to the parent setUp method
Signed-off-by: provokateurin <kate@provokateurin.de>
2026-06-10 18:07:52 +02:00
Louis 8fc2e1c2b3 Merge pull request #61153 from nextcloud/test/migrate-files-regression-playwright
test(files): migrate recent-view and regression specs from Cypress to…
2026-06-10 17:56:13 +02:00
Louis 954fc50274 Merge pull request #61152 from nextcloud/test/migrate-files-actions-playwright
test(files): migrate files actions e2e from Cypress to Playwright
2026-06-10 17:45:27 +02:00
Carl Schwan 6fc428a512 Merge pull request #61145 from nextcloud/test/migrate-favorites-playwright
test(files): migrate favorites e2e from Cypress to Playwright
2026-06-10 17:38:04 +02:00
Louis 250635a9a8 Merge pull request #61150 from nextcloud/carl/speedup-tests
Speedup tests execution
2026-06-10 17:23:13 +02:00
Louis Chmn 6bb9ad60f2 test(View): Setup users and groups once
Signed-off-by: Louis Chmn <louis@chmn.me>
2026-06-10 15:48:24 +02:00
Carl Schwan 8bff1b4968 perf(UserConfigTest): Don't recreate database between invocation
Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-06-10 15:48:24 +02:00
Louis Chmn 442777762d test(App): Setup users and groups once
Signed-off-by: Louis Chmn <louis@chmn.me>
2026-06-10 15:48:24 +02:00
Peter Ringelmann b256bbe7ad test(files): migrate recent-view and regression specs from Cypress to Playwright
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
2026-06-10 14:58:49 +02:00
Julien Veyssier 0bd607274c feat(task-streaming): fix tests
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2026-06-10 14:52:56 +02:00
Ferdinand Thiessen 7e1adfb1fa test(playwright): reduce potential flakiness of appstore tests
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-06-10 13:59:16 +02:00
Peter Ringelmann ad93216416 test(files): migrate files actions e2e from Cypress to Playwright
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
2026-06-10 12:43:28 +02:00
Carl Schwan 3b7ca63f43 perf(AppConfigIntegrationTest): Avoid creating too many times AppConfig
Reuse instance by merging some tests based on DataProviders

Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-06-10 12:17:08 +02:00
Peter Ringelmann 87f8d78424 test(files): migrate favorites e2e from Cypress to Playwright
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
2026-06-10 12:09:32 +02:00
Carl Schwan 0fee41df7c perf: Test chunking with a lower amount of entries
Use a lower array_chunk values when running the code in the tests for
the comment manager.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-06-10 11:49:29 +02:00
Carl Schwan 84a8b7e50e perf(tests): Cache encryption result in UserConfigTest
So that we don't need to encrypt stuff all the time.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-06-10 11:22:59 +02:00
Ferdinand Thiessen b4bccb2402 docs(tests): Add some general documentation for PlayWright
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-06-10 11:20:36 +02:00
Carl Schwan 126df9c170 perf(tests): Don't encrypt the same value each time
We have a static class, so we can save the results accross the > 100
tests cases in this class.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-06-10 11:19:22 +02:00
Carl Schwan 3d4ac4fb15 perf(tests): Remove worked command tests that relies on timeout
It's testing something basic and takes more than a second each time to
run.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-06-10 11:18:37 +02:00
Ferdinand Thiessen a21c2fddd6 test(files): migrate more tests from Cypress to Playwright
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-06-10 09:49:04 +02:00
Ferdinand Thiessen 9fc19ac7f5 test: migrate appstore tests to PlayWright
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-06-10 09:49:04 +02:00
Ferdinand Thiessen ae8d311a33 test: migrate some tests to playwright
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-06-10 09:49:04 +02:00
Ferdinand Thiessen c45a5d4809 test: create basic Playwright test infrastructure
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-06-10 09:49:04 +02:00
Stephan Orbaugh 9fe944199b Merge pull request #60709 from nextcloud/test-speedup
Speedup share tests
2026-06-09 16:23:41 +02:00
Anna d45d1d6bff Merge pull request #60735 from nextcloud/fix/noid/crypto-decrypt-fallback-valueerror
fix(security): don't propagate ValueError from Crypto::decrypt() fallback
2026-06-09 15:14:44 +02:00
Carl Schwan e02fa796c3 fix(preview): Do not recreate preview folder in filecache after cleanup
Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-06-09 11:14:39 +02:00
Robin Appelman 1f96118ef9 test: cleanup users before userbackend test
Signed-off-by: Robin Appelman <robin@icewind.nl>
2026-06-08 15:40:03 +02:00
Robin Appelman 6100590516 fix: remove trait property conflict
Signed-off-by: Robin Appelman <robin@icewind.nl>
2026-06-08 15:35:08 +02:00
Robin Appelman 9651860720 test: add test trait for creating temporary groups
Signed-off-by: Robin Appelman <robin@icewind.nl>
2026-06-08 15:35:08 +02:00
Carl Schwan acfe107fc9 fix(preview): Adapt cleanup tests
Now the logic is inverted so the tests need to be changed

Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-06-08 14:44:44 +02:00