Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PhET widget code coverage (#1620)
## Summary: Add new tests to ensure maximal code coverage of the PhET widget. This is based on the new code from the [a11y update, PR #1619](#1619) and should be merged in after the a11y update is merged in. * Check that fullscreen button renders when the simulation loads successfully * Check that fullscreen button does not render when the simulation fails to load * Check that the locale warning banner renders when the `kaLocale` is not available for the requested PhET simulation Issue: LEMS-2277 ## Test plan: * `yarn jest packages/perseus/src/widgets/phet-simulation/phet-simulation.test.ts` Author: aemandine Reviewers: SonicScrewdriver Required Reviewers: Approved By: SonicScrewdriver Checks: ❌ codecov/project, ✅ codecov/patch, ✅ Upload Coverage (ubuntu-latest, 20.x), ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Jest Coverage (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x), ✅ gerald Pull Request URL: #1620
- Loading branch information