dev #1

Merged
nocci merged 51 commits from dev into main 2026-03-06 16:31:29 +01:00
Showing only changes of commit 728d08e551 - Show all commits

View file

@ -140,7 +140,9 @@ const ensureLoggedIn = async (page, context) => {
await passwordField.fill(cfg.eg_password); await passwordField.fill(cfg.eg_password);
const rememberMe = page.locator('input[name="rememberMe"], #rememberMe'); const rememberMe = page.locator('input[name="rememberMe"], #rememberMe');
if (await rememberMe.count()) await rememberMe.check().catch(() => {}); if (await rememberMe.count()) await rememberMe.check().catch(() => {});
await page.click('button[type="submit"]'); await continueBtn.first().click().catch(async () => {
await page.click('button[type="submit"]').catch(() => {});
});
// MFA step // MFA step
try { try {
@ -156,7 +158,9 @@ const ensureLoggedIn = async (page, context) => {
} else { } else {
await page.locator('input[name="code-input-0"]').pressSequentially(otp.toString()); await page.locator('input[name="code-input-0"]').pressSequentially(otp.toString());
} }
await page.click('button[type="submit"]'); await continueBtn.first().click().catch(async () => {
await page.click('button[type="submit"]').catch(() => {});
});
} catch { } catch {
// no MFA // no MFA
} }