Skip to content

Conversation

pan-kot
Copy link
Member

@pan-kot pan-kot commented Aug 13, 2025

Description

The PR adds more unit tests to the property filter component. Unlike the existing tests, the new tests are all defined for mock components that implement state management and options loading in the expected way. The purpose of the tests is to cover the common user flows: we do not directly assert event handler calls or i18n, but instead verify the observable UI effects.

Rel: AWSUI-59007

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

codecov bot commented Aug 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.04%. Comparing base (8767da0) to head (c13cba4).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3751      +/-   ##
==========================================
+ Coverage   97.00%   97.04%   +0.03%     
==========================================
  Files         821      825       +4     
  Lines       23870    23961      +91     
  Branches     8377     8424      +47     
==========================================
+ Hits        23155    23252      +97     
- Misses        666      704      +38     
+ Partials       49        5      -44     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pan-kot pan-kot marked this pull request as ready for review August 13, 2025 09:04
@pan-kot pan-kot requested a review from a team as a code owner August 13, 2025 09:04
@pan-kot pan-kot requested review from teodoranemes and removed request for a team August 13, 2025 09:04
@@ -300,7 +300,6 @@ describe('i18n', () => {
enableTokenGroups={true}
filteringOptions={[]}
customGroupsText={[]}
disableFreeTextFiltering={false}
Copy link
Member

Choose a reason for hiding this comment

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

Why was this deleted?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is false by default

@pan-kot pan-kot requested a review from teodoranemes August 15, 2025 13:56
@pan-kot pan-kot added this pull request to the merge queue Aug 18, 2025
Merged via the queue into main with commit 8145da8 Aug 18, 2025
39 checks passed
@pan-kot pan-kot deleted the refactor-property-filter-tests branch August 18, 2025 10:26
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.

2 participants