summaryrefslogtreecommitdiff
path: root/source/Test/Unit/Html.hs
diff options
context:
space:
mode:
authoradelon <22380201+adelon@users.noreply.github.com>2026-04-11 02:00:06 +0200
committeradelon <22380201+adelon@users.noreply.github.com>2026-04-11 02:00:06 +0200
commit0c3c723f4bc68ec27a304129512867b834f7ef49 (patch)
treebcd20f2d136e51f841a1957f2a496f40feec854b /source/Test/Unit/Html.hs
parente117270e7ee86cbe85b63740630601b0111ab8e7 (diff)
Add links to tooltip
Diffstat (limited to 'source/Test/Unit/Html.hs')
-rw-r--r--source/Test/Unit/Html.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/Test/Unit/Html.hs b/source/Test/Unit/Html.hs
index ce335fd..a6b6e36 100644
--- a/source/Test/Unit/Html.hs
+++ b/source/Test/Unit/Html.hs
@@ -41,7 +41,10 @@ referencePreviews = do
assertContains "collapsed references keep current-page item metadata" "data-reference-label=\"group_source\" data-preview-link=\"#group_source\" data-preview-target-id=\"group_source\"" html
assertContains "collapsed references keep imported item metadata" "data-reference-label=\"imported_prop\" data-preview-link=\"/test/html-fixtures/imported-preview#imported_prop\" data-preview-id=\"reference-preview-" html
assertNotContains "collapsed references do not inline the long list" "Follows by <a href=\"#local_prop\" class=\"ref-badge has-preview\" data-reference-label=\"local_prop\" data-preview-target-id=\"local_prop\" aria-describedby=\"reference-preview-popup\">local_prop</a>, <a href=\"#uses_refs\"" html
- assertContains "collapsed tooltips compose full preview templates" "template.append(cloneHiddenPreview(item) || buildCurrentPreview(item) || buildMissingPreview(item));" html
+ assertContains "collapsed tooltips compose full preview templates" "const preview = cloneHiddenPreview(item) || buildCurrentPreview(item) || buildMissingPreview(item);" html
+ assertContains "collapsed tooltip labels become links" "template.append(linkGroupHeading(item, preview));" html
+ assertContains "collapsed tooltip labels use generated reference links" "link.href = href;" html
+ assertContains "collapsed tooltip heading links have hover affordance" ".reference-preview-heading a:hover," html
assertContains "collapsed tooltips use stacked preview sections" "className = 'reference-preview-group-template'" html
assertContains "visible preview popup accepts pointer interaction" "pointer-events: auto;" html
assertContains "preview popup uses a wider bounded layout" "width: 44rem;" html