Commit 6f7e302
authored
Add data-testid attribute to Button components (#1118)
* feat: add data-testid attributes for E2E testing
To improve E2E test stability and enable better component selection, this change adds `data-testid` attributes to several key button elements.
Since a generic `Button.tsx` component does not exist, the attributes were added directly to Material-UI `Button` components in the following locations:
- HR Zone buttons in `app/client/mock/page.tsx`
- Streaming `START`/`STOP` buttons in `app/client/mock/page.tsx`
This provides stable selectors for automated testing tools to target these critical interactive elements.
* feat: add data-testid attributes for E2E testing
To improve E2E test stability and enable better component selection, this change adds `data-testid` attributes to several key button elements.
Since a generic `Button.tsx` component does not exist, the attributes were added directly to Material-UI `Button` components in the following locations:
- HR Zone buttons in `app/client/mock/page.tsx`
- Streaming `START`/`STOP` buttons in `app/client/mock/page.tsx`
This provides stable selectors for automated testing tools to target these critical interactive elements.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent 9377680 commit 6f7e302
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| |||
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| 188 | + | |
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
| |||
193 | 196 | | |
194 | 197 | | |
195 | 198 | | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
| 210 | + | |
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
| |||
218 | 223 | | |
219 | 224 | | |
220 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
221 | 229 | | |
222 | 230 | | |
223 | 231 | | |
| |||
0 commit comments