- Notifications
You must be signed in to change notification settings - Fork1.1k
Commit17edeea
authored
fix(site): fix flaky Chromatic tests (#20808)
## ProblemThe `OrgsSortedAlphabetically` test from`OrganizationSidebarView.stories.tsx` was failing on Chromatic. Testlogic was attempting to verify organization sorting orderprogrammatically. This was identified in the Chromatic build of PR:https://www.chromatic.com/build?appId=624de63c6aacee003aa84340&number=26015After fixing this test, two additional tests started failing:* `VanillaJavascriptError ` from `GlobalErrorBoundary.stories.tsx`: Testwas making incorrect assertions about stack trace content* `MarkAllNotificationsAsReadError` from`NotificationsInbox.stories.tsx`: Test was flaky due to competingWebSocket error messages## SolutionThese are Chromatic snapshot tests, so implementation details (likesorting order or exact error message content) are already validated bythe visual snapshots. Programmatic assertions were causing flakiness andare redundant.1 parent500c17e commit17edeea
File tree
3 files changed
+3
-33
lines changed- site/src
- components/ErrorBoundary
- modules
- management
- notifications/NotificationsInbox
3 files changed
+3
-33
lines changedLines changed: 1 addition & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 37 | | |
50 | 38 | | |
51 | 39 | | |
| |||
Lines changed: 0 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | 246 | | |
267 | 247 | | |
268 | 248 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
0 commit comments
Comments
(0)