Skip to content

Commit dbef4ad

Browse files
committed
fix: skip some test on CI
1 parent 52eec3b commit dbef4ad

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

test-e2e/ean-detection.spec.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ async function injectContentScript(page) {
4848
// ============================================================================
4949
// TESTY
5050
// ============================================================================
51+
// Cloudflare wystawia challenge page dla IP runnerów GitHub Actions (data center),
52+
// co blokuje wykrycie EAN. Niektóre testy przez to są pomijane na CI,
53+
// lokalnie (rezydencjalny IP) powinny wykonywać się poprawnie.
5154

5255
const productPages = [
5356
{
@@ -61,8 +64,6 @@ const productPages = [
6164
product: 'Szklany dzbanek filtrujący Dafi CRYSTAL 2l biały',
6265
ean: '5900950928254',
6366
url: 'https://erli.pl/produkt/szklany-dzbanek-filtrujacy-dafi-crystal-2l-bialy,159105253',
64-
// Cloudflare wystawia challenge page dla IP runnerów GitHub Actions (data center),
65-
// co blokuje wykrycie EAN. Lokalnie (rezydencjalny IP) przechodzi bez problemu.
6667
skipOnCI: true,
6768
},
6869
{
@@ -82,15 +83,14 @@ const productPages = [
8283
product: 'Dolina Noteci Premium Sterilised Danie z kaczki dla kota 85g',
8384
ean: '5902921303213',
8485
url: 'https://leclerc-online.pl/dolina-noteci-premium-sterilised-danie-z-kaczki-dla-kota-85g',
85-
// Cloudflare (Turnstile) wystawia challenge page z restrykcyjnym CSP dla IP runnerów
86-
// GitHub Actions, co blokuje wstrzyknięcie inline scriptu. Lokalnie działa poprawnie.
8786
skipOnCI: true,
8887
},
8988
{
9089
store: 'carrefour.pl',
9190
product: 'JBB Baldyga — Kiełbaski z filetem z piersi kurczaka 190 g',
9291
ean: '5907701809046',
9392
url: 'https://www.carrefour.pl/wedliny-kielbasy/kielbasy/kielbasy-miesne/jbb-baldyga-kielbaski-z-filetem-z-piersi-kurczaka-190-g',
93+
skipOnCI: true,
9494
},
9595
{
9696
store: 'szybkikoszyk.pl',
@@ -109,6 +109,7 @@ const productPages = [
109109
product: 'Frosta — Warzywa na patelnię z bazylią i oregano 400 g',
110110
ean: '5900972001249',
111111
url: 'https://www.espolem.pl/towar/frosta-warzywa-na-patelnie-z-bazylia-i-oregano-400-g/535550',
112+
skipOnCI: true,
112113
},
113114
{
114115
store: 'auchan.pl',
@@ -139,6 +140,7 @@ const productPages = [
139140
product: 'Ketchup pikantny Codzienny 560 g',
140141
ean: '5902241747582',
141142
url: 'https://emmamarket.pl/ketchupy/20384-ketchup-pikantny-codzienny-560g.html',
143+
skipOnCI: true,
142144
},
143145
{
144146
store: 'zakupy-eleclerc.pl',

0 commit comments

Comments
 (0)