Run source lookup headless and reject Idealo thumbnails

This commit is contained in:
2026-08-06 00:39:50 +02:00
parent d3d1147a3a
commit 6f2d998754
3 changed files with 17 additions and 9 deletions
+12
View File
@@ -31,3 +31,15 @@ test("idealo gallery parser prefers large splide images over thumbnails", () =>
]);
});
test("idealo gallery parser does not fall back to search thumbnails", () => {
const html = `
<main>
<article class="search-result">
<img src="//img.idealo.com/folder/Product/200123/4/200123456/result_thumb_150x150.jpg">
</article>
</main>`;
const urls = extractIdealoGalleryPictureUrls(html, "https://www.idealo.de/preisvergleich/MainSearchProductCategory.html?q=123");
assert.deepEqual(urls, []);
});