-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Test autosaving of gamma correction setting #9124
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9124 +/- ##
========================================
Coverage 73.83% 73.83%
========================================
Files 431 431
Lines 44807 44804 -3
Branches 3892 3892
========================================
- Hits 33084 33082 -2
+ Misses 11723 11722 -1
|
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
@@ -3,12 +3,33 @@ | |||
// | |||
// SPDX-License-Identifier: MIT | |||
|
|||
/// <reference types="cypress" /> | |||
/// / <reference types="../../support/index.d.ts" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This type file is not implemented yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
tests/cypress/plugins/index.js
Outdated
@@ -4,6 +4,8 @@ | |||
|
|||
/// <reference types="cypress" /> | |||
|
|||
/* eslint security/detect-non-literal-fs-filename: 0 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will /* eslint-disable security/detect-non-literal-fs-filename */
work?
Looks a bit cleaner than : 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that works. Applied
|
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.