Run source lookup headless and reject Idealo thumbnails
This commit is contained in:
@@ -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, []);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user