Repository navigation
Commit 32bcc03
Fix vacuous-pass bugs in verify.ts (#14705)
Verifier audit findings, each verified against the source:
- ensurePptxMaxSlides passed 'true' into the rels slot instead of
isSlideMax, so the slide{N+1}-must-not-exist assertion never ran -
the verifier could only fail when the deck had FEWER slides than the
max, the inverse of its purpose. Two live regression tests (9681,
11896: no extra blank slides) were neutered by this.
- ensureHtmlElementContents skipped selectors that matched nothing -
all content assertions silently vacuous when the selector is absent
(e.g. jupyter display-error tests pass if error output disappears
entirely). Now asserts the selector matched.
- verifyYamlFile resolved successfully when the yaml file was missing
or empty; now fails loudly before running the predicate.
- ensurePptxRegexMatches MOVED the pptx into its temp dir (destroying
it for any later verifier in the same test); now copies like
withPptxContent does.
Like the previous commit, these assertions were dead until now and may
surface genuine regressions on their first live CI run.
Co-authored-by: Claude <noreply@anthropic.com>1 parent a90065c commit 32bcc03
1 file changed
Lines changed: 32 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
440 | 445 | | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
449 | 452 | | |
450 | 453 | | |
451 | 454 | | |
| |||
1061 | 1064 | | |
1062 | 1065 | | |
1063 | 1066 | | |
1064 | | - | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
1065 | 1070 | | |
1066 | 1071 | | |
1067 | 1072 | | |
| |||
1173 | 1178 | | |
1174 | 1179 | | |
1175 | 1180 | | |
1176 | | - | |
| 1181 | + | |
| 1182 | + | |
1177 | 1183 | | |
1178 | | - | |
| 1184 | + | |
1179 | 1185 | | |
1180 | 1186 | | |
1181 | 1187 | | |
| |||
1247 | 1253 | | |
1248 | 1254 | | |
1249 | 1255 | | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
1257 | | - | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
1258 | 1263 | | |
1259 | 1264 | | |
1260 | 1265 | | |
| |||
0 commit comments