Commit 4e3e780
test: fix flaky lexical code block test with incorrect error expectations (#15776)
### What
Fixed flaky e2e test for lexical code blocks that was consistently
failing in CI and locally.
<img width="1335" height="607" alt="Screenshot 2026-02-26 at 2 44 02 PM"
src="https://github.com/user-attachments/assets/bf0db1d3-c32c-4b10-bf92-b4ac1b56d5c6"
/>
### Why
The test expectations for squiggly error counts were inverted between
the regular code block test and the payload code block test.
The regular code block test expected 1 error but got 0, while the
payload code block test expected 0 errors but should expect 1.
### How
Corrected the error count expectations to match actual Monaco editor
behavior:
- Regular code block (no semantic validation): expects 0 errors
- Payload code block (with type checking): expects 1 error for invalid
imports
---------
Co-authored-by: Alessio Gravili <github@gravili.net>1 parent 9f0c101 commit 4e3e780
1 file changed
+7
-3
lines changedLines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| |||
0 commit comments