Skip to content

Conversation

@Neeraj-gagat
Copy link
Contributor

Description

This PR adds interaction tests for Hero component for hiding uuid and encryption-secret when toggled

- Fixes: #315

image

Screenshot from 2025-12-27 01-29-59

@github-actions
Copy link

Thank you for opening this PR!

Before a maintainer takes a look, it would be really helpful if you could walk through your changes using GitHub's review tools.

Please take a moment to:

  • Check the "Files changed" tab
  • Leave comments on any lines for functions, comments, etc. that are important, non-obvious, or may need attention
  • Clarify decisions you made or areas you might be unsure about and/or any future updates being considered.
  • Finally, submit all the comments!

More information on how to conduct a self review:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request

This helps make the review process smoother and gives us a clearer understanding of your thought process.

Once you've added your self-review, we'll continue from our side. Thank you!

Copy link
Contributor Author

@Neeraj-gagat Neeraj-gagat left a comment

Choose a reason for hiding this comment

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

done with self review added new tests in existing file Hero.test.tsx for rendering uuid by default and for hiding uuid and encryption-secret whwen button to hide them is clicked
ne changes break nothing because no fuctional chnages were made and passes all tests
new tests increased coverage for hero.tsx from 76.92% to 100%

expect(uuidCode).toBeInTheDocument();
});

test('Hides UUId when button is clicked', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

small typo here, 'UUId' should be 'UUID'. please fix, will merge later

Copy link
Contributor Author

Choose a reason for hiding this comment

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

on it

@its-me-abhishek its-me-abhishek merged commit ef3c0a6 into CCExtractor:main Dec 27, 2025
4 checks passed
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.

Add frontend test suites/cases for src/components/HomeComponents/Hero

2 participants