chore(sprint-5/etapa-6): limpieza técnica — E2E Supabase, fix flakiness guardar, docs cierre sprint
Some checks failed
/ Deploy to Cloudflare Pages (push) Has been cancelled
Some checks failed
/ Deploy to Cloudflare Pages (push) Has been cancelled
This commit is contained in:
@@ -76,10 +76,11 @@ async function makeAutomatable(
|
||||
const timeInput = page.getByLabel(/Tiempo automatizado/i)
|
||||
await timeInput.fill(String(timeMin))
|
||||
|
||||
// Guardar
|
||||
const guardarBtn = page.getByRole('button', { name: /Guardar/i })
|
||||
await guardarBtn.click()
|
||||
await page.waitForTimeout(500)
|
||||
// Guardar — espera a que el botón esté habilitado (isDirty) antes de clickear,
|
||||
// y a que vuelva a deshabilitarse (confirmación de guardado) antes de continuar.
|
||||
await page.waitForSelector('[data-testid="save-activity-btn"]:not([disabled])', { timeout: 10_000 })
|
||||
await page.click('[data-testid="save-activity-btn"]')
|
||||
await page.waitForSelector('[data-testid="save-activity-btn"][disabled]', { timeout: 10_000 })
|
||||
}
|
||||
|
||||
// ─── Helper: configurar volumetría en tab Global ──────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user