agent: is enabled passes on a disabled Radio, CupertinoButton, Slider or DropdownButton (controls the agent cannot read)

Đang mở
#864 1 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
dart, flutter
Lĩnh vực
mobile, testing

Hướng nghiên cứu

Start with _controlDisabled in probe_agent/lib/src/executor.dart and compare its supported controls with the disabled Radio, CupertinoButton, Slider and DropdownButton cases in the issue. Read the linked plan in #857 and the related discussion in #861 to understand the measured Semantics approach and its limitation for CupertinoButton. Done means disabled-state checks no longer silently pass for controls the agent cannot read.

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

Mô tả

bug

Symptom

see #id is enabled passes on a disabled control the agent cannot read, in every position: the control as the target itself, a wrapper around it, or a text inside it. don't see #id is disabled passes too. That's a silent false pass with the current agent on plain Flutter apps.

Reported in the review of #861. The reader (_controlDisabled in probe_agent/lib/src/executor.dart) knows only ButtonStyleButton (the elevated, filled, outlined and text buttons), IconButton, FloatingActionButton, TextField, Switch and Checkbox. Every other control falls back to "not disabled", including:

  • a disabled Radio;
  • a CupertinoButton(onPressed: null);
  • a Slider(onChanged: null);
  • a DropdownButton(onChanged: null);
  • chips, SegmentedButton, PopupMenuButton, CupertinoSlider and others.

Related: with #861, a wrapper holding a disabled button and an enabled Slider reads as disabled (the slider is ignored). A wrapper holding an enabled button and a disabled Slider reads as enabled, which is wrong for the slider.

Fix

The library-neutral plan in #857 (reading enabled from the Semantics each control builds) covers these controls. It was measured for the buttons, text fields, switches, checkboxes, radios and chips, on the framework and on material_ui. CupertinoButton builds no enabled value, so the plan refuses rather than guesses there. Until then, a smaller step could refuse is enabled/is disabled on a known unread control.

Ngôn ngữ chính
Go
Star
6
Fork
3
Merge trung bình
6 giờ 28 phút
Pull request đã merge (30 ngày)
362

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 AlphaWaveSystems/flutter-probe

Tất cả issue của AlphaWaveSystems/flutter-probe

Issue tương tự

Thêm issue về Go

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.