[BUG]: SettingsPage.test.jsx "Clear All" tests fail on main — confirmation step not handled
Los mantenedores suelen responder en 3 días
@RounakKumarAgarwal ya está trabajando en esto.
Desde el 1/10/2026.
- #286 de @RounakKumarAgarwal — abierto
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 90/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
Línea de trabajo
Empieza con src/pages/SettingsPage.test.jsx y ejecuta npx vitest run src/pages/SettingsPage.test.jsx para reproducir los dos fallos. Lee las pruebas de Clear All junto con el comportamiento de confirmación descrito para SettingsPage.jsx y, después, actualiza la configuración de las pruebas para que se acepte la confirmación. La tarea está terminada cuando las tres pruebas pasan y se alcanza la aserción del botón "cleared".
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Description
Two of the three tests in src/pages/SettingsPage.test.jsx fail on current main. The
"Clear All" tests wait for a button labeled "cleared" to appear after clicking "Clear all":
expect(await screen.findByRole('button', { name: /cleared/i })).toBeInTheDocument()
This times out. It looks like #267 (two-step confirmation for destructive actions)
changed the Clear All flow — there's now a confirmation step before the action completes —
but the test wasn't updated to click through the new confirmation, so it never reaches
the "cleared" state.
Steps to Reproduce
- On current main, run: npx vitest run src/pages/SettingsPage.test.jsx
- Observe 2 of 3 tests fail at the findByRole('button', { name: /cleared/i }) assertion.
Logs and Screenshots
FAIL src/pages/SettingsPage.test.jsx
❯ findByRole('button', { name: /cleared/i }) timed out
at src/pages/SettingsPage.test.jsx:59
Tests 2 failed | 1 passed (3)
Environment Details
- Branch: main (with #267 merged)
- Node.js: 22.17.0
- Root cause: #267 added
window.confirm('Clear all cached data?')at the start of
handleClear in SettingsPage.jsx. The test (added in an earlier PR) clicks "Clear All"
but doesn't handle the new confirm dialog, so handleClear returns early and never
reaches the "Cleared" state. Fix: the test should mock window.confirm to return true.
Impact
Medium - Feature works but has issues
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- Lenguaje dominante
- JavaScript
- Estrellas
- 45
- Forks
- 148
- Merge medio
- 5 d 15 h
- PR fusionados (30 d)
- 28
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AOSSIE-Org/OrgExplorer
-
[FEATURE]: Hide organisation filter in Contributors tab when only one organisation is selectedPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
AOSSIE-Org/OrgExplorer#384 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
[FEATURE]: Show GitHub Repository Button When Selecting an OrganizationPosiblemente ocupada @kul-91 la tomó hace 1 día. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
AOSSIE-Org/OrgExplorer#382 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
[BUG]: Analytics time-series buckets depend on the viewer timezonePosiblemente ocupada @sumitsingh-cyber la tomó hace 1 día. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
AOSSIE-Org/OrgExplorer#380 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
[BUG]: Column-misalignment. Repository Explorer: "Language" column shows activity data; "Repository Activity" column is emptyPosiblemente ocupada @ProgrammerNesi la tomó hace 2 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
AOSSIE-Org/OrgExplorer#373 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
[BUG]: Security: CSV Formula Injection (CWE-1236) in repository and contributor export filesAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
AOSSIE-Org/OrgExplorer#370 · 1 comentario ·
Los mantenedores suelen responder en 3 días
Todos los issues de AOSSIE-Org/OrgExplorer
Issues similares
-
fix(套件): test_bundle 往仓库的 preset/skills 写哨兵,并发跑的 test_installer 拷贝时撞 ENOENT(CI 红)Posiblemente ocupada @Miaotofu01 la tomó hoy. Abiertoneeds-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Miaotofu01/Study-Mate#216 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
-
beginner-friendly category:fixtures community enhancement first-timers-only good first issue hacktoberfest help wanted low hanging fruit micro-contribution type: task up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Berserk-hub150/skillhawk#229 · 1 comentario ·
Los mantenedores suelen responder en 8 días
-
WlanConfUpdateSensor falsely reports wifi interface appearing when sysfs inode cache is reclaimedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
firewalla/firerouter#2180 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
andromarces/agent-loops#976 ·
Los mantenedores suelen responder en 1 día