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

chore: U test for checking overridden classes #2993

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

georgylobko
Copy link
Contributor

Description

This PR adds a unit test for global drawers to ensure that classes overridden in another package remain as is. The goal of this test is to avoid any unnoticed modifications to these classes.

Related links, issue #, if available: n/a

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 Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.27%. Comparing base (672e7f8) to head (1e9b571).

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #2993    +/-   ##
========================================
  Coverage   96.27%   96.27%            
========================================
  Files         769      769            
  Lines       21768    21768            
  Branches     7039     7383   +344     
========================================
  Hits        20958    20958            
+ Misses        802      757    -45     
- Partials        8       53    +45     

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

@georgylobko georgylobko marked this pull request as ready for review November 8, 2024 14:07
@georgylobko georgylobko requested a review from a team as a code owner November 8, 2024 14:07
@georgylobko georgylobko requested review from cansuaa and just-boris and removed request for a team November 8, 2024 14:07

wrapper.findDrawerTriggerById('global-drawer')!.click();

expect(wrapper!.find('[class*="awsui_drawer-close-button"]')).toBeTruthy();
Copy link
Member

Choose a reason for hiding this comment

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

We need to update these tests to include the filename hash as well

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