Commit 9f29cfb
committed
test(emojis): consolidate picker slot tests into integration coverage
The per-slot conversion left many heavily-mocked tests that only asserted a slot
forwards an interaction to a mocked context setter β wiring, not behavior. Replace them
with real end-to-end coverage: EmojiPickerPanel.test now mocks only react-virtuoso and
drives the real nav / search / grid / preview / skin-tone slots against real context.
- Delete the CategoryNav / EmojiButton / PreviewPane / SearchInput slot tests; their
behavior (category activation, selection, hover preview, search, ArrowDown β grid focus)
is now asserted through the real component tree in EmojiPickerPanel.test.
- Relocate the skin-tone resolution matrix to a resolveNative test in
EmojiPickerContext, where that logic lives now (not in EmojiButton).
- Merge duplicates (themeClassName, entry-exports, EmojiGrid a11y, SkinToneSelector
keyboard) and drop a trivial aria-haspopup attribute check.
Emoji suite: 104 β 92 tests, 26 β 22 files; behavior coverage preserved or improved.1 parent 11f2c57 commit 9f29cfb
10 files changed
Lines changed: 162 additions & 375 deletions
File tree
- src/plugins/Emojis
- __tests__
- components/__tests__
- context/__tests__
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 125 | | |
134 | 126 | | |
135 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 0 additions & 96 deletions
This file was deleted.
Lines changed: 9 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 84 | | |
88 | 85 | | |
89 | | - | |
90 | | - | |
| 86 | + | |
91 | 87 | | |
92 | 88 | | |
93 | 89 | | |
94 | | - | |
95 | 90 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 91 | | |
101 | 92 | | |
102 | 93 | | |
103 | 94 | | |
104 | | - | |
| 95 | + | |
105 | 96 | | |
106 | 97 | | |
107 | 98 | | |
| |||
115 | 106 | | |
116 | 107 | | |
117 | 108 | | |
118 | | - | |
| 109 | + | |
119 | 110 | | |
120 | 111 | | |
121 | 112 | | |
| |||
125 | 116 | | |
126 | 117 | | |
127 | 118 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
0 commit comments