# BW Pre-Heading — Testing

See §10 of PLUGIN.md for the pre-release checklist.

## Manual Test Cases

### Activation / Deactivation
1. Copy the plugin folder to `wp-content/plugins/bw-pre-heading/`.
2. WP Admin → Plugins → Activate. Confirm no errors with `WP_DEBUG` on.
3. Deactivate. Confirm no orphaned cron / transients.
4. Reactivate — existing posts using the block still render.
5. Delete the plugin — `uninstall.php` runs cleanly (no-op).

### Feature: inserter discoverability
1. Edit any page → block inserter → search "pre-heading".
2. "BW Pre-Heading" appears under the Design category.
3. Insert — RichText placeholder `Enter text here` shows in Gold; it disappears on first keypress and is not stored as content.

### Feature: inline text editing
1. Click the eyebrow text → type to replace.
2. Save → reload — edited text persists.
3. Paste HTML (e.g. `<b>bold</b>`) — tags are stripped on render (verify on frontend view source).

### Feature: prompt-icon color dropdown
1. Select block → Inspector → Colors → Prompt icon color → White.
2. Editor SVG strokes turn white.
3. Save → frontend → confirm `style="color: #FFFFFF"` on the SVG.
4. Switch back to Gold — value reverts.

### Feature: text color dropdown
1. Inspector → Colors → Text color → White.
2. Editor label turns white.
3. Save → frontend → confirm `style="color: #FFFFFF"` on the text span.

### Feature: alignment dropdown
1. Inspector → Position → Alignment → Center.
2. Block centers in the editor canvas.
3. Save → frontend → confirm outer wrapper has `text-align: center`.
4. Repeat for Right.

### Feature: graceful fallback without theme CSS
1. Activate Twenty Twenty-Four.
2. Insert the block on a page.
3. Confirm the eyebrow still uses Space Grotesk 14px / 600, prompt SVG is sized 28×16, cursor underscore blinks.

### Regression: no conflict with existing hero markup
1. On a page that already uses the static `home.html` hero markup, insert the block.
2. Both the static hero eyebrow and the block render identically (same classes, same visual).
