Skip to content

test(browser): find the footer in markup, not in the theme's CSS - #55

Merged
Ardnived merged 1 commit into
mainfrom
fix/browser-footer-markup
Oct 2, 2026
Merged

Ardnived merged 1 commit into
mainfrom
fix/browser-footer-markup

Conversation

@Ardnived

@Ardnived Ardnived commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The browser lane's elementor-full-width cell fails on main: "with the element above it" reports element 93809, footer 8817. The plugin is right. The element sits at 93809, and the real <footer> sits at 94035, below it. The lane's regex matched .site-footer in Astra's inline CSS in <head>.
  • The same CSS match made "the theme's footer is kept" pass on a page with no footer.
  • The footer lookup now matches only an opening tag: <footer>, or any element whose class names site-footer or a footer template part.

Test results

  • pnpm test:browser --only elementor-full-width: 0 failures. The cell prints from the content path, keeps its footer, has the element above it, and its two loopback panel rows are green.

  • I checked old and new regex against the cell's served HTML, plus two edited copies:

    Page Old: kept / above New: kept / above
    As served ✓ / ✗ ✓ / ✓
    Element moved after the footer ✓ / ✗ ✓ / ✗
    Footer removed ✓ / ✗ ✗ / ✗

Notes for reviewer

The lane is local-only, so this assertion (added in #52) never ran in CI. Test-only change: nothing here ships in the zip.

🤖 Generated with Claude Code

The elementor-full-width cell failed "with the element above it" on its first
run against main: Astra's inline CSS in <head> names `.site-footer`, so the
footer lookup matched there, ahead of the element on every page. The same
match made "the theme's footer is kept" pass on a page with no footer at all.
The lookup now matches only an opening tag.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Ardnived
Ardnived merged commit 0d201fb into main Oct 2, 2026
7 checks passed
@Ardnived
Ardnived deleted the fix/browser-footer-markup branch October 2, 2026 01:17
@Ardnived Ardnived mentioned this pull request Oct 2, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant