Fix eslint no-empty and clean tests
This commit is contained in:
parent
5f919039ab
commit
3fd861f134
4 changed files with 48 additions and 17 deletions
8
gog.js
8
gog.js
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue