Debian Codegraph @

tests/gui/heading-nav-markup.goml

raw
1 // When a header has various markup, the sidebar should replicate it.
2
3 set-window-size: (1400, 800)
4 go-to: |DOC_PATH| + "heading-nav/markup.html"
5
6 assert-count: (".header-item", 4)
7 assert-count: (".current-header", 1)
8 assert-text: (".current-header", "Heading with code or italic or bold or strike")
9 assert-property: (".current-header", {"innerHTML": "Heading with <code>code</code> or <em>italic</em> or <strong>bold</strong> or <del>strike</del>"})
10
11 // Clicking the custom one should work and should make it current.
12 click: "a.header-in-summary[href='#custom-id']"
13 assert-count: (".current-header", 1)
14 assert-text: (".current-header", "Heading with a custom id")
15
16 // Click the one with HTML, and check it.
17 click: "a.header-in-summary[href='#heading-with-html']"
18 assert-count: (".current-header", 1)
19 assert-text: (".current-header", "Heading with html")