Name the QTI image upload error dialog correctly

Đang mở
#6,482 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
15/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
accessibility, frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
214
Fork
327
Merge trung bình
17 giờ 5 phút
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của learningequality/studio

Tất cả issue của learningequality/studio

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.