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

test: switch menubar tests to react testing library #1497

Merged
merged 4 commits into from
Jun 12, 2024
Merged

Conversation

denysfedorov
Copy link
Contributor

Issue #1159

This PR switches the MenuBar tests to React Testing Library.

Validation steps

Run yarn test
See that there are coverage percentages in the table
Verify that the tests are converted properly

@denysfedorov denysfedorov self-assigned this Jun 3, 2024
@denysfedorov denysfedorov requested a review from a team as a code owner June 3, 2024 14:17
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-1497.d15792l1n26ww3.amplifyapp.com

Copy link
Member

@scurker scurker left a comment

Choose a reason for hiding this comment

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

Good work! The only thing that is missing (per our guidelines) is testing for the alternate states (wide and thin).

packages/react/src/components/MenuBar/index.test.tsx Outdated Show resolved Hide resolved
packages/react/src/components/MenuBar/index.test.tsx Outdated Show resolved Hide resolved
@denysfedorov denysfedorov requested a review from scurker June 5, 2024 11:25
scurker
scurker previously requested changes Jun 5, 2024
Copy link
Member

@scurker scurker left a comment

Choose a reason for hiding this comment

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

Last few things, otherwise LGTM!

@denysfedorov denysfedorov requested a review from scurker June 6, 2024 15:29
@scurker scurker dismissed their stale review June 12, 2024 19:27

changes made

@scurker scurker enabled auto-merge (squash) June 12, 2024 19:28
@scurker scurker merged commit f5b74e3 into develop Jun 12, 2024
8 of 9 checks passed
@scurker scurker deleted the tests--menu-bar branch June 12, 2024 19:30
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