Merge pull request #2136 from PR0M3TH3AN/fix-moderation-fixture-click-timeout-1667716654204123300

Fix moderation fixture click timeout and enable disabled test steps
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-05 18:24:16 -05:00
commit 0b09e146ef
1 file changed
+14 -5
+14 -5
View File
@@ -76,7 +76,7 @@
title: "Fixture: Blurred Preview",
pubkey: "a".repeat(64),
thumbnail: "/assets/jpg/video-thumbnail-fallback.jpg",
url: "https://example.com/dummy.mp4"
url: "https://example.com/video.mp4"
},
moderation: {
blockAutoplay: true,
@@ -105,7 +105,7 @@
title: "Fixture: Autoplay Blocked",
pubkey: "e".repeat(64),
thumbnail: "/assets/jpg/video-thumbnail-fallback.jpg",
url: "https://example.com/dummy.mp4"
url: "https://example.com/video.mp4"
},
moderation: {
blockAutoplay: true,
@@ -130,7 +130,7 @@
title: "Fixture: Override Persistence",
pubkey: "f".repeat(64),
thumbnail: "/assets/jpg/video-thumbnail-fallback.jpg",
url: "https://example.com/dummy.mp4"
url: "https://example.com/video.mp4"
},
moderation: {
blockAutoplay: true,
@@ -156,7 +156,7 @@
title: "Fixture: Trusted Report Hide",
pubkey: "aa".repeat(32),
thumbnail: "/assets/jpg/video-thumbnail-fallback.jpg",
url: "https://example.com/dummy.mp4"
url: "https://example.com/video.mp4"
},
moderation: {
blockAutoplay: true,
@@ -182,7 +182,7 @@
title: "Fixture: Trusted Mute Hide",
pubkey: "bb".repeat(32),
thumbnail: "/assets/jpg/video-thumbnail-fallback.jpg",
url: "https://example.com/dummy.mp4"
url: "https://example.com/video.mp4"
},
moderation: {
blockAutoplay: false,
@@ -616,6 +616,15 @@
card.onModerationHide = () => {
overrides = setOverride(overrides, video.id, { showAnyway: false });
refreshModeration();
try {
document.dispatchEvent(
new CustomEvent("video:moderation-hide", {
detail: { video }
})
);
} catch {
/* ignore fixture event errors */
}
return true;
};
}