From a49d59990dbe8a4644595023ea2c2d33d323a180 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 27 Jan 2026 19:46:16 +0000 Subject: [PATCH] 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 <53631862+PR0M3TH3AN@users.noreply.github.com> --- tests/ui/video-list-view-popular-tags.test.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ui/video-list-view-popular-tags.test.mjs b/tests/ui/video-list-view-popular-tags.test.mjs index 5d07834e..e2f98a68 100644 --- a/tests/ui/video-list-view-popular-tags.test.mjs +++ b/tests/ui/video-list-view-popular-tags.test.mjs @@ -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 = [