This is the cupertino_ui version of #192308. See that issue for details. Top priority is to reduce the web test suite for material_ui, but it would be good for cupertino_ui to follow the same conventions.
cupertino_ui web test audit
Path: packages/cupertino_ui/test/action_sheet_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Hovering over Cupertino action sheet action updates cursor to clickable on Web |
L1828 |
kIsWeb |
Verifies that mouse cursor changes to SystemMouseCursors.click when hovered on Web (vs basic cursor on desktop/mobile). |
Path: packages/cupertino_ui/test/bottom_tab_bar_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Hovering over tab bar item updates cursor to clickable on Web |
L547 |
kIsWeb |
Verifies that mouse cursor changes to SystemMouseCursors.click when hovered on Web (vs basic cursor on desktop/mobile). |
Path: packages/cupertino_ui/test/button_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Hovering over Cupertino button updates cursor to clickable on Web |
L637 |
kIsWeb |
Verifies that mouse cursor changes to SystemMouseCursors.click when hovered on Web (vs basic cursor on desktop/mobile). |
| Button can be activated by keyboard shortcuts |
L832 |
kIsWeb Web comment / regression |
Asserts web-specific keyboard interaction: on Web, widgets do not respond to the Enter key. |
Path: packages/cupertino_ui/test/checkbox_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Checkbox can be toggled by keyboard shortcuts |
L363 |
kIsWeb Web comment / regression |
Asserts web-specific keyboard interaction: on Web, widgets do not respond to the Enter key. |
| Checkbox configures mouse cursor |
L518 |
kIsWeb |
Verifies that mouse cursor changes to SystemMouseCursors.click when hovered on Web (vs basic cursor on desktop/mobile). |
Path: packages/cupertino_ui/test/context_menu_action_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Hovering over Cupertino context menu action updates cursor to clickable on Web |
L154 |
kIsWeb |
Verifies that mouse cursor changes to SystemMouseCursors.click when hovered on Web (vs basic cursor on desktop/mobile). |
Path: packages/cupertino_ui/test/context_menu_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Hovering over Cupertino context menu updates cursor to clickable on Web |
L425 |
kIsWeb |
Verifies that mouse cursor changes to SystemMouseCursors.click when hovered on Web (vs basic cursor on desktop/mobile). |
Path: packages/cupertino_ui/test/dialog_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Hovering over Cupertino alert dialog action updates cursor to clickable on Web |
L1970 |
kIsWeb |
Verifies that mouse cursor changes to SystemMouseCursors.click when hovered on Web (vs basic cursor on desktop/mobile). |
Path: packages/cupertino_ui/test/menu_anchor_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| [Browser] Focus wraps on all platforms |
L1651 |
isBrowser |
Tests web-specific platform behavior or conditionals. |
| CupertinoMenuAnchor semantics (web) |
L6450 |
kIsWeb |
Web-only test (skip: !kIsWeb), runs exclusively on web platforms. |
Path: packages/cupertino_ui/test/radio_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Radio can be controlled by keyboard shortcuts |
L306 |
kIsWeb Web comment / regression |
Asserts web-specific keyboard interaction: on Web, widgets do not respond to the Enter key. |
| Radio default mouse cursor |
L906 |
kIsWeb |
Verifies that mouse cursor changes to SystemMouseCursors.click when hovered on Web (vs basic cursor on desktop/mobile). |
Path: packages/cupertino_ui/test/scrollbar_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Simultaneous dragging and pointer scrolling does not cause a crash |
L1201 |
kIsWeb |
Tests web-specific platform behavior or conditionals. |
Path: packages/cupertino_ui/test/segmented_control_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Hovering over Cupertino segmented control updates cursor to clickable on Web |
L1612 |
kIsWeb |
Verifies that mouse cursor changes to SystemMouseCursors.click when hovered on Web (vs basic cursor on desktop/mobile). |
Path: packages/cupertino_ui/test/slider_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Hovering over Cupertino slider thumb updates cursor to clickable on Web |
L739 |
kIsWeb |
Verifies that mouse cursor changes to SystemMouseCursors.click when hovered on Web (vs basic cursor on desktop/mobile). |
Path: packages/cupertino_ui/test/sliding_segmented_control_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Hovering over Cupertino sliding segmented control updates cursor to clickable on Web |
L1895 |
kIsWeb |
Verifies that mouse cursor changes to SystemMouseCursors.click when hovered on Web (vs basic cursor on desktop/mobile). |
Path: packages/cupertino_ui/test/switch_test.dart
| Test Case |
Line |
Reasons / Mechanism |
Explanation |
| Hovering over switch updates cursor to clickable on Web |
L1191 |
kIsWeb Web comment / regression |
Verifies that mouse cursor changes to SystemMouseCursors.click when hovered on Web (vs basic cursor on desktop/mobile). |
Path: packages/cupertino_ui/test/text_field_test.dart
This is the
cupertino_uiversion of #192308. See that issue for details. Top priority is to reduce the web test suite formaterial_ui, but it would be good forcupertino_uito follow the same conventions.cupertino_ui web test audit
File:
action_sheet_test.dartPath:
packages/cupertino_ui/test/action_sheet_test.dartL1828SystemMouseCursors.clickwhen hovered on Web (vs basic cursor on desktop/mobile).File:
bottom_tab_bar_test.dartPath:
packages/cupertino_ui/test/bottom_tab_bar_test.dartL547SystemMouseCursors.clickwhen hovered on Web (vs basic cursor on desktop/mobile).File:
button_test.dartPath:
packages/cupertino_ui/test/button_test.dartL637SystemMouseCursors.clickwhen hovered on Web (vs basic cursor on desktop/mobile).L832Web comment / regression
File:
checkbox_test.dartPath:
packages/cupertino_ui/test/checkbox_test.dartL363Web comment / regression
L518SystemMouseCursors.clickwhen hovered on Web (vs basic cursor on desktop/mobile).File:
context_menu_action_test.dartPath:
packages/cupertino_ui/test/context_menu_action_test.dartL154SystemMouseCursors.clickwhen hovered on Web (vs basic cursor on desktop/mobile).File:
context_menu_test.dartPath:
packages/cupertino_ui/test/context_menu_test.dartL425SystemMouseCursors.clickwhen hovered on Web (vs basic cursor on desktop/mobile).File:
dialog_test.dartPath:
packages/cupertino_ui/test/dialog_test.dartL1970SystemMouseCursors.clickwhen hovered on Web (vs basic cursor on desktop/mobile).File:
menu_anchor_test.dartPath:
packages/cupertino_ui/test/menu_anchor_test.dartL1651L6450skip: !kIsWeb), runs exclusively on web platforms.File:
radio_test.dartPath:
packages/cupertino_ui/test/radio_test.dartL306Web comment / regression
L906SystemMouseCursors.clickwhen hovered on Web (vs basic cursor on desktop/mobile).File:
scrollbar_test.dartPath:
packages/cupertino_ui/test/scrollbar_test.dartL1201File:
segmented_control_test.dartPath:
packages/cupertino_ui/test/segmented_control_test.dartL1612SystemMouseCursors.clickwhen hovered on Web (vs basic cursor on desktop/mobile).File:
slider_test.dartPath:
packages/cupertino_ui/test/slider_test.dartL739SystemMouseCursors.clickwhen hovered on Web (vs basic cursor on desktop/mobile).File:
sliding_segmented_control_test.dartPath:
packages/cupertino_ui/test/sliding_segmented_control_test.dartL1895SystemMouseCursors.clickwhen hovered on Web (vs basic cursor on desktop/mobile).File:
switch_test.dartPath:
packages/cupertino_ui/test/switch_test.dartL1191Web comment / regression
SystemMouseCursors.clickwhen hovered on Web (vs basic cursor on desktop/mobile).File:
text_field_test.dartPath:
packages/cupertino_ui/test/text_field_test.dart