Repository navigation
test(browser): find the footer in markup, not in the theme's CSS - #55
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
elementor-full-widthcell fails onmain: "with the element above it" reportselement 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-footerin Astra's inline CSS in<head>.<footer>, or any element whoseclassnamessite-footeror 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:
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