Commit Graph

129 Commits (master)

Author SHA1 Message Date
Ferdinand Thiessen b06951ed3b fix(cypress): Make new-users test less flaky by using test isolation
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
6 months ago
Ferdinand Thiessen 205801adc6
fix(files): Add cypress e2e tests
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
6 months ago
Christopher Ng 470f825f8b test(systemtags): Admin system tags form
Signed-off-by: Christopher Ng <chrng8@gmail.com>
6 months ago
julia.kirschenheuter 25d87033b1 Add link for opening app details
Add `alt` for `AppScore` image

Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
6 months ago
Ferdinand Thiessen 4303895565 fix(cypress): Adjust admin theming tests for new `@nextcloud/vue` release
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
6 months ago
Ferdinand Thiessen b2d999fd68
fix(cypress): Do not install calendar app from app store for testing but use locally provided test app
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
6 months ago
Ferdinand Thiessen 54c934b910
chore(cypress): Migrate apps acceptance tests to Cypress
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
6 months ago
Ferdinand Thiessen 9cabaaee8e
chore(cypress): Migrate header contacts menu tests from Behat to Cypress
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen cdfa566304
fix(cypress): Add timeout for waiting on Nextcloud server
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen 84421f4c7c
Merge pull request #41137 from nextcloud/chore/migrate-access-level-cypress
chore(cypress): Migrate access-level tests from Behat to Cypress
7 months ago
Ferdinand Thiessen 0219bfa6b5 fix(tests): Make app order Cypress tests more robust
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen 8e2824ea24
chore(tests): Migrate duplicated menu settings tests (access levels) to Cypress
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen a7c88519f7
chore(cypress): Move `clearState` from user utils to shared common utils
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen bfc8b0bc15
chore(cypress): Migrate access-level tests from Behat to Cypress as this are UI tests
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen 3378a73e99
fix(theming): Make changes on primary color less invasiv
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen 3676295f7b
fix(theming): Ensure all text colors have enough contrast for accessibility
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen ec1ae4505b
tests: Add accessibility tests for CSS color variables
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen 4e8c690dc7 fix(cypress): Fix linter errors on Cypress chains and refactor `wait-until` checker functions
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen e93ccca823
fix(cypress): Fix selector for the user menu button
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen 5b0c27b6da
fix(settings): Stablize user list cypress tests
* Use common `data-testid` to identify elements rather than to depend on internal classes or properties
* Force clean the state for the user tests
* Move leftover acceptance tests for users from drone to cypress

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen 4c4e4ec991 chore(tests): Migrate login acceptance tests from behat to Cypress
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen 615a6846da
feat(theming): Allow to reset the user defined app order to the default value
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen 9697df1ea5
fix(theming): App order settings - ensure the focus is kept on button
When pressing a button for changing the app order that button should keep the focus after reordering the list.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
John Molakvoæ 93ee51b9a8
Merge pull request #41000 from nextcloud/fix/local-cypress-tests 7 months ago
Ferdinand Thiessen e9d4036389
feat(theming): Allow to configure default apps and app order in frontend settings
* Also add API for setting the value using ajax.
* Add cypress tests for app order and defaul apps

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen 5c48a504a7
fix(cypress): Also sync `3rdparty` directory for local cypress tests
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen 3f83ae145f
fix(cypress): Test using `data-test-id` attributes rather than private classes
Makes the test more resilant to inner component changes of the `@nextcloud/vue` library.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen add1d922ba
fix(cypress): Replace flaky password-confirmation hack with conditional testing for the password modal
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
John Molakvoæ 4f4074452d
Fix background removal not applying to user default theming
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
7 months ago
John Molakvoæ a024ee1cfe
Fix background removal check
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
7 months ago
John Molakvoæ d10c4c3f6d
Add additional no-background and custom colour test
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
7 months ago
Ferdinand Thiessen d452b872c9 fix: Improve dockerNode logging
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Ferdinand Thiessen 8d57cdcab5
fix(theming): Add `aria-pressed` attribute to active background
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
7 months ago
Christopher Ng b3d426c510 fix(cypress): User groups test
Signed-off-by: Christopher Ng <chrng8@gmail.com>
7 months ago
Christopher Ng 4386803ae8 test(settings): Create and delete groups
Signed-off-by: Christopher Ng <chrng8@gmail.com>
7 months ago
John Molakvoæ 35aed73ede
feat: allow external drop and add dropzone
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
7 months ago
Joas Schilling ae54cc05aa
fix(CI): Fix server setup in cypress by overwriting all files in shallow-server
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 months ago
Christopher Ng 091b3e0586 fix(cypress): User table create/delete tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
8 months ago
Christopher Ng 95a7925dc9 fix(cypress): User table disable/enable tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
8 months ago
Christopher Ng 37fa4efdae fix(cypress): User table modify tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
8 months ago
Christopher Ng 8a31efb644 fix(cypress): User table column tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
8 months ago
John Molakvoæ e040d939e5
feat(files): add sharing icon in header
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
9 months ago
John Molakvoæ 2a31bc7fd3
fix(files): fix flaky cypress files test
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
9 months ago
Ferdinand Thiessen 5e9a6c1a0b fix(cypress): Fix the user theming cypress test for the new filepicker
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
9 months ago
John Molakvoæ fdf07fc759
fix(cypress): adjust selectors
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
9 months ago
Christopher Ng 0f90c94232 fix(cypress): Show and hide columns
Signed-off-by: Christopher Ng <chrng8@gmail.com>
9 months ago
Christopher Ng cd38017724 fix(cypress): Can delete a user
Signed-off-by: Christopher Ng <chrng8@gmail.com>
9 months ago
Ferdinand Thiessen 650312580f fix(cypress): Really mock the initial state instead of trying to stub a module
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
10 months ago
Ferdinand Thiessen ee18e43d97 fix(cypress): Make sure cypress can preprocess files corrently (this drops 78 dependencies)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
10 months ago
Christopher Ng 8695e7cdc6 test(settings): User management settings dialog
Signed-off-by: Christopher Ng <chrng8@gmail.com>
10 months ago
Christopher Ng faf2b2339d test(settings): Users table
Signed-off-by: Christopher Ng <chrng8@gmail.com>
10 months ago
Christopher Ng ce99dd9eec fix(cypress): users
Signed-off-by: Christopher Ng <chrng8@gmail.com>
10 months ago
Christopher Ng b65eb0c03d fix(cypress): users_modify
Signed-off-by: Christopher Ng <chrng8@gmail.com>
10 months ago
Christopher Ng 957dbee1b0 fix(cypress): users_disable
Signed-off-by: Christopher Ng <chrng8@gmail.com>
10 months ago
John Molakvoæ 93096a9a9b
fix(cypress): revert only toggle
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
11 months ago
Ferdinand Thiessen 97683a5b66 fix(settings): Migrate away from deprecated `NcPopoverMenu`
* Replace popover menu with `NcActions`
* Deduplicate user actions code between `UserRow` and `UserRowSimple`
* Fix user action to cover whole row heigh to prevent dropdown from shining through the actions
* Fix user action popover to be overlayed by current edited row actions

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
11 months ago
Ferdinand Thiessen 5e81a9e53d fix: Add cypress test for changing password in the users list
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
11 months ago
Ferdinand Thiessen 7f861980a3
fix(core): Do not invert app menu text color
* Also fixes other cypress test
* Build assets

Signed-off-by: Philipp Hempel <Philipp.Hempel1@web.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
11 months ago
John Molakvoæ 497d195310
chore(deps): update cypress
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 year ago
John Molakvoæ 29a7f7f6ef
feat(files_trashbin): migrate to vue
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 year ago
Louis Chemineau 5dc64ebee6 Prevent expiration from delete file in cypress tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau ea028a1b01 Use random names in files_version e2e tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau 186491113e Do not stop docker in cypress workflow
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau c43220abd2 Increase wait time
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau f882446f38 Try to chain cypress commands
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau c0ff8789c3 Add comments about why we wait in files_versions' cypress tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau 49134c6595 Increase wait to ensure versions are created
In files_versions cypress tests, we wait for 1000ms between each versions uploads to make sure that the server properly create a version. Under 1s the serve does not create a version.

This commit increases the wait time as it might help to ensure that the time span is enough between two uploads.

Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau fc1a16283e Reset theming in cypress test
The test in admin-settings does not reset the theming.
So when it is run before user-background, the "Default cloud background is not rendered" test fails.

This makes sure that the theming is reset before running "User default background settings"

Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau fd9937a171 Add cypress tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau 305b1b6d21 Forward branch env var to the cypress container
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
Louis Chemineau 535c228d57 Use current git branch by default when setting up cypress container
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
John Molakvoæ b9906fb21e
feat(files): Quota in navigation
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 year ago
John Molakvoæ 5b9a8f0407
Add component testing
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 year ago
John Molakvoæ 8f1bf13ae3
Fix preview crop
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 year ago
Louis Chemineau 7a73219412 Checkout current branch in cypress tests in CI
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 year ago
John Molakvoæ 1acd42e10c
Invert header if primary is bright and background disabled
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 year ago
John Molakvoæ f26ee9c69d
Faster theming tests, better colours comparison and properly follow admin theming changes
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 year ago
John Molakvoæ a869259e41
More theming cypress tests and some fixes
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 year ago
John Molakvoæ 064fa10ecf
Extract colour from custom background
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 year ago