chore: sync project files

This commit is contained in:
Gilles Soulier
2026-01-13 19:49:04 +01:00
parent 53f8227941
commit ecda149a4b
149 changed files with 65272 additions and 1 deletions

56
test_cdiscount.json Executable file
View File

@@ -0,0 +1,56 @@
{
"test_config": {
"store": "cdiscount",
"url": "https://www.cdiscount.com/informatique/clavier-souris-webcam/exemple/f-1070123-exemple.html",
"description": "Exemple de produit Cdiscount pour tests"
},
"selectors": {
"title": {
"type": "css",
"selector": "h1[itemprop='name']",
"expected": "Nom du produit Cdiscount"
},
"price": {
"type": "css",
"selector": "span[itemprop='price']",
"attribute": "content",
"expected": "299.99"
},
"currency": {
"type": "css",
"selector": "meta[itemprop='priceCurrency']",
"attribute": "content",
"expected": "EUR"
},
"stock": {
"type": "css",
"selector": "link[itemprop='availability']",
"attribute": "href",
"expected": "InStock"
},
"images": {
"type": "css",
"selector": "img[itemprop='image']",
"attribute": "src",
"expected": "URL de l'image"
},
"category": {
"type": "css",
"selector": ".breadcrumb",
"expected": "Informatique > Souris"
},
"sku": {
"type": "regex",
"pattern": "/f-(\\d+-[\\w-]+)\\.html",
"expected": "1070123-exemple"
}
},
"test_data": {
"valid_urls": [
"https://www.cdiscount.com/informatique/clavier-souris-webcam/exemple/f-1070123-exemple.html",
"https://www.cdiscount.com/category/product/f-1070123-exemple.html?param=value"
],
"expected_canonical": "https://www.cdiscount.com/informatique/clavier-souris-webcam/exemple/f-1070123-exemple.html",
"expected_sku": "1070123-exemple"
}
}