Add a test that shows heading nav conflict with search mark

The search marker is getting copied into the sidebar, but it cannot be
dismissed.
This commit is contained in:
Eric Huss
2025-10-21 16:35:44 -07:00
parent 51a80febb3
commit a6944683e6
3 changed files with 14 additions and 0 deletions

View File

@@ -7,3 +7,4 @@
- [Headings with markup](markup.md)
- [Current scrolls to bottom](current-to-bottom.md)
- [Unusual heading levels](unusual-heading-levels.md)
- [Filtered headings](filtered-headings.md)

View File

@@ -0,0 +1,5 @@
# Filtered headings
## Skateboard
Checking for search marking.

View File

@@ -0,0 +1,8 @@
// Tests for collapsed heading sidebar navigation.
set-window-size: (1400, 800)
go-to: |DOC_PATH| + "heading-nav/filtered-headings.html?highlight=skateboard#skateboard"
assert-property: ("//h2[@id='skateboard']", {"innerHTML": '<a class="header" href="#skateboard"><mark data-markjs="true">Skateboard</mark></a>'})
assert-property: ("//a[contains(@class, 'header-in-summary') and @href='#skateboard']", {"innerHTML": '<mark data-markjs="true">Skateboard</mark>'})