diff options
| author | adelon <22380201+adelon@users.noreply.github.com> | 2026-04-11 02:00:06 +0200 |
|---|---|---|
| committer | adelon <22380201+adelon@users.noreply.github.com> | 2026-04-11 02:00:06 +0200 |
| commit | 0c3c723f4bc68ec27a304129512867b834f7ef49 (patch) | |
| tree | bcd20f2d136e51f841a1957f2a496f40feec854b /source/Test/Unit/Html.hs | |
| parent | e117270e7ee86cbe85b63740630601b0111ab8e7 (diff) | |
Add links to tooltip
Diffstat (limited to 'source/Test/Unit/Html.hs')
| -rw-r--r-- | source/Test/Unit/Html.hs | 5 |
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 |
