Skip to content
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

WRQ-17933: Add unit tests for screenTypes matching supported resolutions #3228

Merged
merged 7 commits into from
May 7, 2024

Conversation

vJIYEv
Copy link
Contributor

@vJIYEv vJIYEv commented Apr 23, 2024

Checklist

  • I have read and understand the contribution guide
  • A CHANGELOG entry is included
  • At least one test case is included for this feature or bug fix
  • Documentation was added or is not needed
  • This is an API breaking change

Issue Resolved / Feature Added

As we support new resolution type QHD, we decided to test all supported screen types.

Resolution

Added QHD type in screenTypes.json file. (enactjs/sandstone#1596)
And added unit tests for screenTypes of supported resolutions.

Additional Considerations

Links

WRQ-17933

Comments

Enact-DCO-1.0-Signed-off-by: Jiye Kim ([email protected])

Copy link

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.41%. Comparing base (da7050c) to head (05bd06e).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3228      +/-   ##
===========================================
+ Coverage    82.36%   82.41%   +0.04%     
===========================================
  Files          156      156              
  Lines         7209     7209              
  Branches      1907     1907              
===========================================
+ Hits          5938     5941       +3     
+ Misses         999      997       -2     
+ Partials       272      271       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mmyelyn
Copy link

mmyelyn commented Apr 30, 2024

Just to add one comment, when specifying sizes, including resolution, we typically use the order width x height. So I think it would be a good idea to have these unit tests in that order as well.

Copy link

@mmyelyn mmyelyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

Enact-DCO-1.0-Signed-off-by: Jiye Kim ([email protected])
@vJIYEv
Copy link
Contributor Author

vJIYEv commented May 2, 2024

I changed height x width to width x height.

@juwonjeong
Copy link
Contributor

juwonjeong commented May 3, 2024

@vJIYEv, Please add more cases(QHD and UHD) to the 'should calculate the base font size for the given screen type' test.

vJIYEv added 2 commits May 3, 2024 16:08
Enact-DCO-1.0-Signed-off-by: Jiye Kim ([email protected])
Enact-DCO-1.0-Signed-off-by: Jiye Kim ([email protected])
Enact-DCO-1.0-Signed-off-by: Jiye Kim ([email protected])
Copy link
Contributor

@juwonjeong juwonjeong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@juwonjeong juwonjeong merged commit 7c03337 into develop May 7, 2024
7 checks passed
@juwonjeong juwonjeong deleted the feature/WRQ-17933 branch May 7, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants