610 Commits

Author SHA1 Message Date
graciousgrey
5fc3afcbef Tests: Improve acceptance tests 2025-12-02 11:03:11 +01:00
graciousgrey
75515d3653 Tests: Improve acceptance tests to be more stable 2025-11-28 10:32:00 +01:00
graciousgrey
1203d23ccb Tests: Add tests #271 2025-11-27 18:59:29 +01:00
Michael Mayer
c7ffcbc8df Clipboard: Enforce MaxItems limit when performing range-selects #271
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-11-27 17:06:53 +01:00
Michael Mayer
9231bfc8f8 Frontend: Introduce reusable context constants across components & tests
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-11-27 16:34:32 +01:00
graciousgrey
b67efd9cd3 Tests: Adapt acceptance tests to run more stable 2025-11-19 14:29:36 +01:00
Ömer Duran
1e00d1f52e UX: Add batch edit dialog and API endpoints #271 #5324
Signed-off-by: Michael Mayer <michael@photoprism.app>
Co-authored-by: Michael Mayer <michael@photoprism.app>
Co-authored-by: graciousgrey <theresagresch@gmail.com>
2025-11-19 11:20:34 +01:00
Ömer Duran
46d5e33c8c Tests: Enhance Vitest setup and add PLightbox component tests (#5320) 2025-11-13 09:47:43 +01:00
graciousgrey
7989b88299 Tests: Update test name 2025-11-10 10:33:19 +01:00
Keith Martin
6d0016b1df Frontend: Improve acceptance test performance #5298
* Tests: improve openNav, and add ability to close all event notifications.
* Tests: improve search with wait for notifications to expire, then using notifications to determine search completion.
* Tests: improve getPhotoCount by using notifications for completion of photo load.  Add fast and slow photo load waits.
* Tests: add fast and slow load detection via notifications
* Tests: replace waits with notification detection
* Tests: refactor tests to work more efficiently with notifications
* Tests: comment out execution time and p-notify__close logging.  Remove slow version of waits.
* Make: allow acceptance tests to be run with --ignore-errors, and make each multi window test run as separate instance
* Frontend: ensure that closing a notification resets the timer for the next notification
* Tests: move notification handling to single notifications.js file
* Tests: move photoCount as changing cards view doesn't generate event when there is one photo
* Tests: remove commented code
* Tests: enable environment variable SHOW_LOGS  (true) to show timings and click actions for waits
* Tests: add Delete, Import, Index, Unstack, and Upload notification waits.
2025-11-04 11:29:37 +01:00
Keith Martin
b644be320f Tests: add Too many requests handling capability by default into page.login, add rate limiting test (#5293) 2025-10-26 13:56:51 +01:00
graciousgey
212869679c Tests: Adapt acceptance tests 2025-10-24 09:11:22 +02:00
Michael Mayer
9514542d44 Auth: Extend user accounts with custom scope setting
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-22 19:58:56 +02:00
Michael Mayer
a2dfdc24b6 Frontend: Correct log levels in logs.js and update tests
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-22 08:18:18 +02:00
Michael Mayer
2616fc9610 Frontend: Refactor themes.Get() function and related tests
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-19 04:54:05 +02:00
Michael Mayer
b47ee0fddc Cluster: Refactor request/response structs and JSON serialization
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-18 17:42:22 +02:00
Michael Mayer
2227aa57b2 Portal: Add cluster admin UI #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-16 16:21:56 +02:00
Ömer Duran
3e87ad9809 UX: Improve "Add to Album" dialog to support multiple albums #5177
* Frontend: add multi-select to Add to Album and support multi-target actions
* Tests: Adapt acceptance tests to changes
* Frontend: Enhance clipboard functionality by adding input validation and deduplication for album UIDs across multiple components
* Tests: Enhance album functionality tests to support adding/removing photos from multiple albums and address album duplication bug
* Tests: Improve page mdoel and remove .only
* Frontend: Increase max-width of photo album dialog from 390 to 500
* Tests: Remove unused triggerAlbumDialogAndType method
* Frontend: Remove deep watcher from album dialog and implement deduplication logic for selected albums in upload dialog
* Frontend: Update album dialog placeholder text
* Tests: Refactor album duplication test for clarity and consistency
* Tests: Cover additional test cases
* Tests: Improve acceptance tests
* Frontend: Remove error logging
* Frontend: Add utility functions for album selection and implement watcher in dialog
* Frontend: Enhance album creation logic to handle partial failures and improve user feedback
* Frontend: Fix title casing for album selection chips in dialog
* Frontend: Fix title rendering logic for album selection chips in dialog

---------

Co-authored-by: graciousgrey <theresagresch@gmail.com>
2025-10-11 13:43:41 +02:00
Michael Mayer
c0f02637a9 Forms: Improve validation to support "+" signs in email addresses #5254
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-11 11:24:10 +02:00
graciousgrey
cfb3fd18c1 Tests: Adapt tests to changes 2025-10-10 21:51:55 +02:00
Ömer Duran
1d216f2dfc UX: New Action Menu for Faces in People Editing Tab #4151 #797 #5249
* Frontend: Add 3-dot menu for face actions in people page #4151 #797
* Tests: Add unit test for manual cover setting in subjects API #4151 and #797
* Tests: Add unit tests for face actions in PeopleTab component #4151 #797
* Tests: Enhance face action functionality in PeopleTab with new tests for removing faces and setting person cover #4151 #797
2025-10-10 13:02:31 +02:00
graciousgrey
c9c50fd31e Tests: Adapt tests to changes 2025-10-09 11:16:25 +02:00
Michael Mayer
241f1df4c4 Frontend: Add a "Collection" model type for use in lightbox.vue #4151
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-03 18:14:18 +02:00
Michael Mayer
99e06f5f95 UX: Improve window scroll position restoration when navigating #5211
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-03 12:47:47 +02:00
Ömer Duran
95c6743b2c Tests: Remove Karma / Mocha and switch to Vitest #4995 #5014 #5087
* Tests: Remove unused Karma configuration and test files

This commit deletes the Karma configuration file and  test files that are no longer needed

* Tests: Refactor setup file for Vitest and remove legacy vue-setup.js

* Tests: Update truncate test case to use Vitest string

* Tests: Add unit tests for PLocationInput component using Vitest

* Tests: Improve unit tests for PLoadingBar component

* Tests: Move karma test to vitest

* Frontend: Update deps in package-lock.json

* Tests: Adapt test to vitest

* Tests: Refactor Makefile and package.json for test commands
2025-09-07 15:29:01 +02:00
graciousgey
f67ba0e634 Tests: Adapt acceptance tests #465 2025-07-18 18:27:01 +02:00
Michael Mayer
1fa7b455a1 Tests: Reformat .js test files with "npm run fmt" #5087
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-07-11 06:01:23 +02:00
graciousgrey
02109cf4e6 Tests: Add unit tests #5038 2025-07-09 14:42:01 +02:00
graciousgey
cb208bc09f Tests: Adapt acceptance tests to changes 2025-07-02 17:14:22 +02:00
graciousgey
55575623c5 Tests: Adapt acceptance test #4999 2025-06-26 11:39:15 +02:00
graciousgey
702b83870f Tests: Add test #5018 2025-06-24 17:52:36 +02:00
graciousgrey
a49181f75d Tests: Skip unstable test #5014 2025-06-23 15:33:05 +02:00
Ömer Duran
a82d657b6b Frontend: Convert tests from mocha to vitest #5014
* Tests: convert all common tests from mocha to karma

* Tests: refactor Vuetify setup in tests

* Tests: update package-lock.json

* Tests: convert all model test to vitest 1/2

* Tests: convert all model test to vitest 2/2

* Tests: fix broken test

* Tests: time zone UTC

* Tests: Add playwright screenshots folder to gitignore

* Tests: Add timezone to vitest scripts

* Tests: Add Vitest scripts to Makefile

* Tests: delete unused timezone configs

* Tests: Update some tests

* Tests: Update vitest config

* Tests: Delete usesless try-catch
2025-06-20 16:28:26 +02:00
graciousgey
cdcfc69e05 Tests: Refactor acceptance tests 2025-06-17 20:20:48 +02:00
graciousgey
cf9258949a Tests: Adapt acceptance tests to be more stable 2025-05-25 11:26:56 +02:00
graciousgey
af832247fc Tests: Update testcafe timeouts 2025-05-16 16:48:55 +02:00
graciousgey
fce886f077 Tests: Refactor page model for more stability 2025-05-15 08:57:50 +02:00
Ömer Duran
7ab90720ff Tests: write Initial Tests for .vue Components (#5003)
* Tests: Add initial Vue component tests
* Tests: Update package scripts
2025-05-13 11:53:17 +02:00
Ömer Duran
4f04ffe133 Frontend: Integrate Vitest test framework #4990
- Includes fixtures and mocks system for API and models as well as npm scripts for running tests, watch mode, coverage and UI
- Adds test setup with JSDOM environment and utility function tests
- Converts marker model tests from Mocha/Chai to Vitest
2025-05-06 16:18:39 +02:00
Michael Mayer
6b4a32a1b3 UX: Optimize generation of thumbnail image URL in photo.js #4985
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-05-03 09:25:55 +02:00
graciousgey
a23058ce4b Tests: Refactor acceptance tests 2025-05-02 18:44:32 +02:00
Ömer Duran
9526f1d4dc Tests: Add unit tests for photo stack determination and original file retrieval 2025-04-29 21:54:11 +03:00
graciousgey
8ce192ceba Tests: Refactor sharing test to be stable 2025-04-29 16:45:44 +02:00
Theresa Gresch
d0f7393ebe Merge pull request #4972 from photoprism/cover-test-improvements
Tests: Enhance album cover selection logic in acceptance tests
2025-04-29 10:24:52 +02:00
Radon Rosborough
138cc3c458 Upload: Generate a more elegant random token #4970 #4971
* Upload: More elegant generateToken
* Add unit test
2025-04-29 08:01:44 +02:00
Ömer Duran
aeaa39969b Tests: Enhance album cover selection logic in acceptance tests 2025-04-29 01:46:53 +03:00
graciousgey
ba8d38a761 Tests: Refactor acceptance tests 2025-04-28 10:35:54 +02:00
Ömer Duran
91ebcfab33 Tests: Implement album cover setting functionality across multiple pages 2025-04-19 16:24:29 +02:00
Ömer Duran
ca1f5cf781 Tests: Fix album cover test using proper selectors 2025-04-19 11:46:16 +02:00
Ömer Duran
555936d939 Merge branch 'develop' into test/album-cover-setting 2025-04-19 10:20:28 +02:00