Fix eslint no-empty and clean tests
Some checks failed
build-and-push / lint (push) Failing after 4s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped

This commit is contained in:
nocci 2025-12-30 16:13:15 +00:00
parent 5f919039ab
commit 3fd861f134
4 changed files with 48 additions and 17 deletions

8
gog.js
View file

@ -69,14 +69,18 @@ try {
await iframe.locator('#second_step_authentication_token_letter_1').pressSequentially(otp.toString(), { delay: 10 });
await iframe.locator('#second_step_authentication_send').click();
await page.waitForTimeout(1000);
} catch {}
} catch (e) {
return;
}
})();
void (async () => {
try {
await iframe.locator('text=Invalid captcha').waitFor({ timeout: 15000 });
console.error('Got a captcha during login (likely due to too many attempts)! You may solve it in the browser, get a new IP or try again in a few hours.');
notify('gog: got captcha during login. Please check.');
} catch {}
} catch (e) {
return;
}
})();
await page.waitForSelector('#menuUsername');
} else {