-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Test autosaving of gamma correction setting #9124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8000
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9124 +/- ##
===========================================
- Coverage 73.18% 73.16% -0.03%
===========================================
Files 446 446
Lines 45661 45661
Branches 3907 3907
===========================================
- Hits 33418 33408 -10
- Misses 12243 12253 +10
|
klakhov
reviewed
Feb 21, 2025
tests/cypress/e2e/actions_tasks/case_68_saving_settings_local_storage.js
Show resolved
Hide resolved
tests/cypress/e2e/actions_tasks/case_68_saving_settings_local_storage.js
Outdated
Show resolved
Hide resolved
klakhov
reviewed
Feb 21, 2025
tests/cypress/e2e/actions_tasks/case_68_saving_settings_local_storage.js
Outdated
Show resolved
Hide resolved
|
klakhov
approved these changes
Feb 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update existing local storage test to include gamma setting checks.
Motivation and context
This is a test for storing gamma correction value alongside other settings inside
localStorage
.Thanks to #9032, gamma is treated separately from other color settings. Unlike brightness, contrast and saturation settings, which change style attributes on
#cvat_canvas_background
, gamma is stored insidelocalStorage.clientSettings.imageFilter
entity. This was the main motivation of updating thecase_68_saving_settings_local_storage.js
instead of writing a new testcase or updating the color settings test.How has this been tested?
The main flow of the test stayed the same, but with couple of changes. Validation and setup parts were extended to include gamma.
Before the changes the test looked like this:
localStorage
is setNow, gamma is set up before step 1 and validated after first reload. Also, color settings are reset after the gamma check to keep integrity between tests
Checklist
develop
branchLicense
Feel free to contact the maintainers if that's a concern.