test: update VideoListView test for tag prefixing

Update `tests/ui/video-list-view-popular-tags.test.mjs` to account for
the `#` prefix that `TagPillList` (and by extension `VideoListView`)
adds to tags. This fixes the assertion failures where "Nostr" was
expected but "#Nostr" was found, and updates the tag preference resolver
in the test to handle the prefixed format.

Fixes unit test failures in CI.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-01-27 19:46:16 +00:00
1 parent 607fbb814e
commit a49d59990d
1 file changed
+2 -2
@@ -76,7 +76,7 @@ test("VideoListView renders sorted popular tag pills", () => {
assert.equal(buttons.length, 3);
assert.deepEqual(
Array.from(buttons, (button) => button.dataset.tag),
["Nostr", "Video", "Learning"],
["#Nostr", "#Video", "#Learning"],
);
});
@@ -90,7 +90,7 @@ test("VideoListView applies tag preference variants to popular tags", () => {
view.mount(listRoot);
view.setPopularTagsContainer(tagsRoot);
view.setTagPreferenceStateResolver((tag) =>
tag === "Nostr" ? "interest" : tag === "Video" ? "disinterest" : "neutral",
tag === "#Nostr" ? "interest" : tag === "#Video" ? "disinterest" : "neutral",
);
const videos = [