Name the QTI image upload error dialog correctly

Abierto
#6,482 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
15/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript

Línea de trabajo

The issue says the defect was verified with Jest by inspecting both dialogs’ title references, but it does not name the relevant files or tests. Start by tracing the QTI image upload and error dialogs and their accessible title references, then run the relevant Jest test. Done means each dialog has the specified accessible name while both are mounted, and the upload dialog keeps its name after the error closes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Target branch unstable

Observed behavior

The upload dialog and the error dialog use the same title ID. The visible “Error uploading image” heading does not supply the error dialog’s accessible name.

Expected behavior

Each dialog gets its accessible name from its own heading.

User-facing consequences

A screen reader user who drops an unsupported file can miss that the editor opened a separate error dialog.

Steps to reproduce

  1. Open an exercise question for editing in Studio.
  2. Choose Insert image and drop a .txt file onto the upload dialog.
  3. Inspect the error dialog’s accessible name.

Context

Reproduced in Jest with jsdom on Studio commit b296b45663.

Acceptance Criteria

  • The upload dialog is named “Upload image” before the error appears.
  • The error dialog is named “Error uploading image” while both dialogs are mounted.
  • Closing the error dialog leaves the upload dialog named “Upload image”.

AI usage

Codex drafted the issue during the #6477 review. Jest queries and inspection of both dialogs’ title references verified the defect.

Lenguaje dominante
JavaScript
Estrellas
214
Forks
327
Merge medio
17 h 5 min
PR fusionados (30 d)
25

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de learningequality/studio

Todos los issues de learningequality/studio

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.