« get me outta code hell

test: update snapshot tests to do with image icons - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/tap-snapshots
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-01 00:08:25 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-01 00:08:25 -0300
commitb87af8d74eccacb01ff022d33cbbdc5867dc11cd (patch)
treeda147771094da47f9111b62bad8c3afc022450db /tap-snapshots
parentaeba505f7e791eae57e80603ad3b4ab1ab764e96 (diff)
test: update snapshot tests to do with image icons
Diffstat (limited to 'tap-snapshots')
-rw-r--r--tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs2
-rw-r--r--tap-snapshots/test/snapshot/image.js.test.cjs6
-rw-r--r--tap-snapshots/test/snapshot/linkContribution.js.test.cjs54
3 files changed, 31 insertions, 31 deletions
diff --git a/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs
index a0f17e52..4a7f35c3 100644
--- a/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs
+++ b/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs
@@ -8,7 +8,7 @@
 exports[`test/snapshot/generateAlbumReleaseInfo.js > TAP > generateAlbumReleaseInfo (snapshot) > basic behavior 1`] = `
 <p>
     By <span class="contribution nowrap"><a href="artist/toby-fox/">Toby Fox</a> (music probably)</span> and <span class="contribution nowrap"><span class="text-with-tooltip"><span class="hoverable"><a class="text-with-tooltip-interaction-cue" href="artist/tensei/">Tensei</a></span><span class="tooltip icons icons-tooltip"><span class="tooltip-content"><a class="icon has-text" href="https://tenseimusic.bandcamp.com/">
-                        <svg><use href="static/icons.svg#icon-bandcamp"></use></svg>
+                        <svg><use href="static/misc/icons.svg#icon-bandcamp"></use></svg>
                         <span class="icon-text">tenseimusic</span>
                     </a><span class="icon-platform">Bandcamp</span></span></span></span> (hot jams)</span>.
     <br>
diff --git a/tap-snapshots/test/snapshot/image.js.test.cjs b/tap-snapshots/test/snapshot/image.js.test.cjs
index 77e95866..283f4352 100644
--- a/tap-snapshots/test/snapshot/image.js.test.cjs
+++ b/tap-snapshots/test/snapshot/image.js.test.cjs
@@ -12,7 +12,7 @@ exports[`test/snapshot/image.js > TAP > image (snapshot) > content warnings via
             <img class="image" src="media/album-art/beyond-canon/cover.png">
             <span class="reveal-text-container">
                 <span class="reveal-text">
-                    <img class="reveal-symbol" src="static/warning.svg?413">
+                    <img class="reveal-symbol" src="static/misc/warning.svg">
                     <br>
                     <span class="reveal-warnings">too cool for school</span>
                     <br>
@@ -25,11 +25,11 @@ exports[`test/snapshot/image.js > TAP > image (snapshot) > content warnings via
 `
 
 exports[`test/snapshot/image.js > TAP > image (snapshot) > dimensions 1`] = `
-<div class="image-container"><div class="image-outer-area"><div class="image-inner-area"><img class="image" width="400" src="foobar"></div></div></div>
+<div class="image-container"><div class="image-outer-area"><div class="image-inner-area"><img class="image" width="600" height="400" src="foobar"></div></div></div>
 `
 
 exports[`test/snapshot/image.js > TAP > image (snapshot) > dimensions with square 1`] = `
-<div class="image-container"><div class="image-outer-area"><div class="image-inner-area"><img class="image" width="400" src="foobar"></div></div></div>
+<div class="image-container square"><div class="image-outer-area square-content"><div class="image-inner-area"><img class="image" width="600" height="400" src="foobar"></div></div></div>
 `
 
 exports[`test/snapshot/image.js > TAP > image (snapshot) > lazy with square 1`] = `
diff --git a/tap-snapshots/test/snapshot/linkContribution.js.test.cjs b/tap-snapshots/test/snapshot/linkContribution.js.test.cjs
index 4666cd28..92d697e7 100644
--- a/tap-snapshots/test/snapshot/linkContribution.js.test.cjs
+++ b/tap-snapshots/test/snapshot/linkContribution.js.test.cjs
@@ -9,50 +9,50 @@ exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) >
 <span class="contribution nowrap"><a href="artist/lorem-ipsum-lover/">Lorem Ipsum Lover</a> (<span class="icons icons-inline"><a class="icon" href="https://loremipsum.io">
             <svg>
                 <title>loremipsum.io</title>
-                <use href="static/icons.svg#icon-globe"></use>
+                <use href="static/misc/icons.svg#icon-globe"></use>
             </svg>
         </a>, <a class="icon" href="https://loremipsum.io/generator/">
             <svg>
                 <title>loremipsum.io</title>
-                <use href="static/icons.svg#icon-globe"></use>
+                <use href="static/misc/icons.svg#icon-globe"></use>
             </svg>
         </a>, <a class="icon" href="https://loremipsum.io/#meaning">
             <svg>
                 <title>loremipsum.io</title>
-                <use href="static/icons.svg#icon-globe"></use>
+                <use href="static/misc/icons.svg#icon-globe"></use>
             </svg>
         </a>, <a class="icon" href="https://loremipsum.io/#usage-and-examples">
             <svg>
                 <title>loremipsum.io</title>
-                <use href="static/icons.svg#icon-globe"></use>
+                <use href="static/misc/icons.svg#icon-globe"></use>
             </svg>
         </a></span>)</span>
 `
 
 exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > loads of links (tooltip) 1`] = `
 <span class="contribution"><span class="text-with-tooltip"><span class="hoverable"><a class="text-with-tooltip-interaction-cue" href="artist/lorem-ipsum-lover/">Lorem Ipsum Lover</a></span><span class="tooltip icons icons-tooltip"><span class="tooltip-content"><a class="icon has-text" href="https://loremipsum.io">
-                    <svg><use href="static/icons.svg#icon-globe"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-globe"></use></svg>
                     <span class="icon-text">loremipsum.io</span>
                 </a><span class="icon-platform">Other</span><a class="icon has-text" href="https://loremipsum.io/generator/">
-                    <svg><use href="static/icons.svg#icon-globe"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-globe"></use></svg>
                     <span class="icon-text">loremipsum.io</span>
                 </a><span class="icon-platform">Other</span><a class="icon has-text" href="https://loremipsum.io/#meaning">
-                    <svg><use href="static/icons.svg#icon-globe"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-globe"></use></svg>
                     <span class="icon-text">loremipsum.io</span>
                 </a><span class="icon-platform">Other</span><a class="icon has-text" href="https://loremipsum.io/#usage-and-examples">
-                    <svg><use href="static/icons.svg#icon-globe"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-globe"></use></svg>
                     <span class="icon-text">loremipsum.io</span>
                 </a><span class="icon-platform">Other</span><a class="icon has-text" href="https://loremipsum.io/#controversy">
-                    <svg><use href="static/icons.svg#icon-globe"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-globe"></use></svg>
                     <span class="icon-text">loremipsum.io</span>
                 </a><span class="icon-platform">Other</span><a class="icon has-text" href="https://loremipsum.io/#when-to-use-lorem-ipsum">
-                    <svg><use href="static/icons.svg#icon-globe"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-globe"></use></svg>
                     <span class="icon-text">loremipsum.io</span>
                 </a><span class="icon-platform">Other</span><a class="icon has-text" href="https://loremipsum.io/#lorem-ipsum-all-the-things">
-                    <svg><use href="static/icons.svg#icon-globe"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-globe"></use></svg>
                     <span class="icon-text">loremipsum.io</span>
                 </a><span class="icon-platform">Other</span><a class="icon has-text" href="https://loremipsum.io/#original-source">
-                    <svg><use href="static/icons.svg#icon-globe"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-globe"></use></svg>
                     <span class="icon-text">loremipsum.io</span>
                 </a><span class="icon-platform">Other</span></span></span></span></span>
 `
@@ -67,19 +67,19 @@ exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) >
 <span class="contribution"><a href="artist/clark-powell/">Clark Powell</a> (<span class="icons icons-inline"><a class="icon" href="https://soundcloud.com/plazmataz">
             <svg>
                 <title>SoundCloud</title>
-                <use href="static/icons.svg#icon-soundcloud"></use>
+                <use href="static/misc/icons.svg#icon-soundcloud"></use>
             </svg>
         </a></span>)</span>
 <span class="contribution"><a href="artist/the-big-baddies/">Grounder &amp; Scratch</a> (Snooping)</span>
 <span class="contribution"><a href="artist/toby-fox/">Toby Fox</a> (Arrangement) (<span class="icons icons-inline"><a class="icon" href="https://tobyfox.bandcamp.com/">
             <svg>
                 <title>Bandcamp</title>
-                <use href="static/icons.svg#icon-bandcamp"></use>
+                <use href="static/misc/icons.svg#icon-bandcamp"></use>
             </svg>
         </a>, <a class="icon" href="https://toby.fox/">
             <svg>
                 <title>toby.fox</title>
-                <use href="static/icons.svg#icon-globe"></use>
+                <use href="static/misc/icons.svg#icon-globe"></use>
             </svg>
         </a></span>)</span>
 `
@@ -94,34 +94,34 @@ exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) >
 <span class="contribution nowrap"><a href="artist/clark-powell/">Clark Powell</a> (<span class="icons icons-inline"><a class="icon" href="https://soundcloud.com/plazmataz">
             <svg>
                 <title>SoundCloud</title>
-                <use href="static/icons.svg#icon-soundcloud"></use>
+                <use href="static/misc/icons.svg#icon-soundcloud"></use>
             </svg>
         </a></span>)</span>
 <a href="artist/the-big-baddies/">Grounder &amp; Scratch</a>
 <span class="contribution nowrap"><a href="artist/toby-fox/">Toby Fox</a> (<span class="icons icons-inline"><a class="icon" href="https://tobyfox.bandcamp.com/">
             <svg>
                 <title>Bandcamp</title>
-                <use href="static/icons.svg#icon-bandcamp"></use>
+                <use href="static/misc/icons.svg#icon-bandcamp"></use>
             </svg>
         </a>, <a class="icon" href="https://toby.fox/">
             <svg>
                 <title>toby.fox</title>
-                <use href="static/icons.svg#icon-globe"></use>
+                <use href="static/misc/icons.svg#icon-globe"></use>
             </svg>
         </a></span>)</span>
 `
 
 exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > only showIcons (tooltip) 1`] = `
 <span class="contribution"><span class="text-with-tooltip"><span class="hoverable"><a class="text-with-tooltip-interaction-cue" href="artist/clark-powell/">Clark Powell</a></span><span class="tooltip icons icons-tooltip"><span class="tooltip-content"><a class="icon has-text" href="https://soundcloud.com/plazmataz">
-                    <svg><use href="static/icons.svg#icon-soundcloud"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-soundcloud"></use></svg>
                     <span class="icon-text">plazmataz</span>
                 </a><span class="icon-platform">SoundCloud</span></span></span></span></span>
 <span class="contribution nowrap"><a href="artist/the-big-baddies/">Grounder &amp; Scratch</a> (Snooping)</span>
 <span class="contribution nowrap"><span class="text-with-tooltip"><span class="hoverable"><a class="text-with-tooltip-interaction-cue" href="artist/toby-fox/">Toby Fox</a></span><span class="tooltip icons icons-tooltip"><span class="tooltip-content"><a class="icon has-text" href="https://tobyfox.bandcamp.com/">
-                    <svg><use href="static/icons.svg#icon-bandcamp"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-bandcamp"></use></svg>
                     <span class="icon-text">tobyfox</span>
                 </a><span class="icon-platform">Bandcamp</span><a class="icon has-text" href="https://toby.fox/">
-                    <svg><use href="static/icons.svg#icon-globe"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-globe"></use></svg>
                     <span class="icon-text">toby.fox</span>
                 </a><span class="icon-platform">Other</span></span></span></span> (Arrangement)</span>
 `
@@ -130,34 +130,34 @@ exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) >
 <span class="contribution nowrap"><a href="artist/clark-powell/">Clark Powell</a> (<span class="icons icons-inline"><a class="icon" href="https://soundcloud.com/plazmataz">
             <svg>
                 <title>SoundCloud</title>
-                <use href="static/icons.svg#icon-soundcloud"></use>
+                <use href="static/misc/icons.svg#icon-soundcloud"></use>
             </svg>
         </a></span>)</span>
 <span class="contribution nowrap"><a href="artist/the-big-baddies/">Grounder &amp; Scratch</a> (Snooping)</span>
 <span class="contribution nowrap"><a href="artist/toby-fox/">Toby Fox</a> (Arrangement) (<span class="icons icons-inline"><a class="icon" href="https://tobyfox.bandcamp.com/">
             <svg>
                 <title>Bandcamp</title>
-                <use href="static/icons.svg#icon-bandcamp"></use>
+                <use href="static/misc/icons.svg#icon-bandcamp"></use>
             </svg>
         </a>, <a class="icon" href="https://toby.fox/">
             <svg>
                 <title>toby.fox</title>
-                <use href="static/icons.svg#icon-globe"></use>
+                <use href="static/misc/icons.svg#icon-globe"></use>
             </svg>
         </a></span>)</span>
 `
 
 exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > showContribution & showIcons (tooltip) 1`] = `
 <span class="contribution"><span class="text-with-tooltip"><span class="hoverable"><a class="text-with-tooltip-interaction-cue" href="artist/clark-powell/">Clark Powell</a></span><span class="tooltip icons icons-tooltip"><span class="tooltip-content"><a class="icon has-text" href="https://soundcloud.com/plazmataz">
-                    <svg><use href="static/icons.svg#icon-soundcloud"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-soundcloud"></use></svg>
                     <span class="icon-text">plazmataz</span>
                 </a><span class="icon-platform">SoundCloud</span></span></span></span></span>
 <span class="contribution nowrap"><a href="artist/the-big-baddies/">Grounder &amp; Scratch</a> (Snooping)</span>
 <span class="contribution nowrap"><span class="text-with-tooltip"><span class="hoverable"><a class="text-with-tooltip-interaction-cue" href="artist/toby-fox/">Toby Fox</a></span><span class="tooltip icons icons-tooltip"><span class="tooltip-content"><a class="icon has-text" href="https://tobyfox.bandcamp.com/">
-                    <svg><use href="static/icons.svg#icon-bandcamp"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-bandcamp"></use></svg>
                     <span class="icon-text">tobyfox</span>
                 </a><span class="icon-platform">Bandcamp</span><a class="icon has-text" href="https://toby.fox/">
-                    <svg><use href="static/icons.svg#icon-globe"></use></svg>
+                    <svg><use href="static/misc/icons.svg#icon-globe"></use></svg>
                     <span class="icon-text">toby.fox</span>
                 </a><span class="icon-platform">Other</span></span></span></span> (Arrangement)</span>
 `