Commit 62d1bed
committed
fix(ui): bring the blog's lock copy fully in lockstep, unrig two tests
The blog copy's lock banner still prescribed the padding form that was removed
for cause, which made it the one line out of step across the three copies and the
only place a reader was pointed at the rejected approach. It also lacked the
scroll-lock paragraph the registry copies carry in their module JSDoc. The
executable block was already byte-identical and stays so.
Two tests were claiming more than they proved. The SSR placement check asserted
that no rule targets `.site-bar`, a class that no longer exists anywhere, so it
could never fail; it now asserts exactly one rule consumes the property, which
also catches the unclassed centring div that no selector-based check can name.
And the contentless-dialog test was named and explained after a path the
`_scrollLocked` guard made unreachable, presenting a defensive branch as the
thing under test; it now says what it actually pins, and says plainly that
deleting the count-zero early return would leave it green.1 parent 0feb745 commit 62d1bed
3 files changed
Lines changed: 69 additions & 14 deletions
File tree
- examples/blog/components/ui
- packages/ui/test/components/browser
- website/test/ssr
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
65 | 105 | | |
66 | 106 | | |
67 | 107 | | |
| |||
137 | 177 | | |
138 | 178 | | |
139 | 179 | | |
140 | | - | |
| 180 | + | |
141 | 181 | | |
142 | 182 | | |
143 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
472 | 477 | | |
473 | 478 | | |
474 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
78 | 88 | | |
79 | 89 | | |
80 | 90 | | |
| |||
0 commit comments