first load
Some checks failed
Build, Push, Publish / Build & Release (push) Failing after 2s
Sync Repo / sync (push) Failing after 2s

This commit is contained in:
2025-12-16 04:40:00 -03:00
parent 9f33a94e0e
commit 6fa41a771d
856 changed files with 70411 additions and 1 deletions

16
bin/lighthouse/login.js Normal file
View File

@@ -0,0 +1,16 @@
async function login(browser, account) {
const { email, password, loginUrl } = account;
const page = await browser.newPage();
await page.goto(loginUrl);
await page.waitForSelector("input#user_email", { visible: true });
await page.type("input#user_email", email);
await page.type("input#user_password", password);
await Promise.all([
page.click("#sign-in-submit-button"),
page.waitForNavigation(),
]);
await page.close();
}
module.exports = login;