-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Add captureTDH for Automated TDH Structure Validation to Enhance SEO #34325
Comments
Would |
@yury-s In my scenario, However, I have not yet fully verified whether it can check detailed nesting. There is another reason for proposing |
Feel free to file separate bug/feature request if something is not working in
What would the test verify if you don't know expected text values ahead of time? If you just want to match the structure of the document ignoring actual text, you can write |
🚀 Feature Request
Feature Name:
captureTDH
FunctionThe proposed
captureTDH
function captures the structure of Title, Description, and Heading (hereafter referred to as TDH) essential for SEO. It enables automatic verification through a CI pipeline to ensure that these structures are not inadvertently disrupted. This feature effectively detects and prevents issues related to the hierarchical structure of Heading tags, which are common when using component-based frameworks (e.g., React).captureTDH
Functiontarget-page-name-TDH.ts
). If there is a mismatch, the test fails.toMatchTDH
MatcherExample
Test File Example
Verification File Example
Motivation
captureTDH
feature into Playwright enables continuous monitoring and maintenance of SEO and accessibility quality.The text was updated successfully, but these errors were encountered: