Name the QTI image upload error dialog correctly

Aberta
#6,482 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
15/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
javascript

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
JavaScript
Estrelas
214
Forks
327
Merge médio
17h 5min
PRs com merge (30d)
25

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de learningequality/studio

Todas as issues de learningequality/studio

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.