Commit 962fcda
authored
test(themeSelector): add additional coverage for ThemeSelector component (JhaSourav07#1682)
## Description
Fixes JhaSourav07#1029
- `app/customize/components/ThemeSelector.test.tsx` — added `4`
additional tests: asserting the Shuffle button renders correctly,
verifying clicking Shuffle calls `onThemeChange` with a valid non-`auto`
non-`random` theme key, confirming changing the select dropdown calls
`onThemeChange` with the correct value, and asserting exactly 3 color
swatches render for a normal theme with correct `title` attributes. 🚀
## Pillar
- 🛠️ Other (Bug fix, refactoring, docs)
## Checklist before requesting a review:
- I have read the `CONTRIBUTING.md` file.
- I have tested these changes locally
(`localhost:3000/api/streak?user=YOUR_USERNAME`).
- I have run `npm run format` and `npm run lint` locally and resolved
all errors.
- My commits follow the Conventional Commits format.
- [ ] I have updated `README.md` if I added a new theme or URL
parameter.
- I have starred the repo.
- I have made sure that i have only one commit to merge in this PR.1 file changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
43 | 75 | | |
0 commit comments