Skip to content

Commit bb45b57

Browse files
committed
tests: point docx-float-options-1 negative check at its real crossref ids
The ref-hyperlink: false check targeted tbl-foo with link text "Table 1", but this document defines tbl-letters and fig-elephant and sets tbl-prefix to "T.", so it could never match, even after the bookmark placeholder expansion. Assert that no hyperlink anchors either id's bookmark, without a text predicate. Checked by rendering a copy with ref-hyperlink: true: the check now fails on the tbl-letters hyperlink.
1 parent 0203480 commit bb45b57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/docs/smoke-all/crossrefs/float/docx/docx-float-options-1.qmd‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ _quarto:
1414
- "//w:p//w:r//w:t[contains(text(), \"See F.\u00a01\")]"
1515
- "//w:t[contains(text(), \"Table\u00a01\")]"
1616
-
17-
- "//w:hyperlink[@w:anchor=\"{{bookmark:tbl-foo}}\"]//w:t[contains(text(), \"Table\u00a01\")]" # ref-hyperlink: false
17+
- "//w:hyperlink[@w:anchor=\"{{bookmark:tbl-letters}}\"]" # ref-hyperlink: false
18+
- "//w:hyperlink[@w:anchor=\"{{bookmark:fig-elephant}}\"]" # ref-hyperlink: false
1819
---
1920

2021
# Introduction

0 commit comments

Comments
 (0)