Repository navigation
Commit fd5ca2e
committed
Make intrinsic-size icon render test robust to stroke-width attribute
The "Rendering an icon at its intrinsic size" scenario asserted that the
output of `wp icon render core/plus --size=none` does not contain the
substring `width=`. The core `plus` icon now carries a
`stroke-width="1.5"` attribute on the `<svg>` element, which matches that
substring even though no width/height sizing attributes are present.
Assert the absence of the concrete `width="24"` and `height="24"`
attributes instead, which is what `--size=none` is meant to leave out.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q3XHr7GsAP4YRi5y9eBznh1 parent 1f4e749 commit fd5ca2e
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| |||
0 commit comments