fix: use :is() for OR condition in Playwright selector
All checks were successful
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Successful in 20s
build-and-push / docker (push) Successful in 11s

This commit is contained in:
nocci 2026-03-07 14:24:41 +00:00
parent 6194e3eff3
commit 6615cf02db

View file

@ -316,7 +316,7 @@ try {
}
};
const hasCaptcha = await page.locator('.h_captcha_challenge iframe | text=Incorrect response').count() > 0;
const hasCaptcha = await page.locator(':is(.h_captcha_challenge iframe, text=Incorrect response)').count() > 0;
if (hasCaptcha) {
console.warn('Captcha/Incorrect response detected. Please solve manually in the browser.');
await notify('epic-games: captcha encountered; please solve manually in browser.');