onboarding.mjs 512 B

12345678
  1. /** Complete the real native first-run form; never bypass authentication. */
  2. export async function enterLocal(page, { username = 'desktop-fixture', password = 'desktop-fixture-password' } = {}) {
  3. await page.locator('#login-form').waitFor({ timeout: 90000 })
  4. await page.locator('#username').fill(username)
  5. await page.locator('#password').fill(password)
  6. if (await page.locator('#confirmation-field').isVisible()) await page.locator('#confirmation').fill(password)
  7. await page.locator('#submit').click()
  8. }