Skip to content

Commit 49f9be8

Browse files
committed
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.
1 parent 51a80fe commit 49f9be8

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

tests/gui/books/heading-nav/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
- [Headings with markup](markup.md)
88
- [Current scrolls to bottom](current-to-bottom.md)
99
- [Unusual heading levels](unusual-heading-levels.md)
10+
- [Filtered headings](filtered-headings.md)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Filtered headings
2+
3+
## Skateboard
4+
5+
Checking for search marking.

tests/gui/heading-nav-filter.goml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Tests for collapsed heading sidebar navigation.
2+
3+
set-window-size: (1400, 800)
4+
go-to: |DOC_PATH| + "heading-nav/filtered-headings.html?highlight=skateboard#skateboard"
5+
6+
assert-property: ("//a[contains(@class, 'header-in-summary') and @href='#skateboard']", {"innerHTML": '<mark data-markjs="true">Skateboard</mark>'})

0 commit comments

Comments
 (0)