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 pages/organizations/OrganizationCard.jsx #4690

Open
5 tasks
sknep opened this issue Dec 16, 2024 · 0 comments
Open
5 tasks

Test pages/organizations/OrganizationCard.jsx #4690

sknep opened this issue Dec 16, 2024 · 0 comments

Comments

@sknep
Copy link
Contributor

sknep commented Dec 16, 2024

Add a test to pages/organizations/OrganizationCard.jsx using the RTL framework. See our docs for writing frontend tests.

Acceptance Criteria

  • Colocate test file to pages/organizations/OrganizationCard.test.jsx
  • Test the component renders with the proper organization and role
  • Test that the sandbox notification shows up for orgs that are in a sandbox, using daysuntil
  • Link should show up if the org is active AND `role.name === 'manager'; test that the link uses the correct org id
  • Remove component defaultProps (if any) and add the to the component args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant