[cupertino_ui] Reduce web test suite · Issue #192309 · flutter/flutter · GitHub
Skip to content

[cupertino_ui] Reduce web test suite #192309

Description

@elliette

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

File: action_sheet_test.dart

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).

File: bottom_tab_bar_test.dart

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).

File: button_test.dart

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.

File: checkbox_test.dart

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).

File: context_menu_action_test.dart

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).

File: context_menu_test.dart

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).

File: dialog_test.dart

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).

File: menu_anchor_test.dart

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.

File: radio_test.dart

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).

File: scrollbar_test.dart

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.

File: segmented_control_test.dart

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).

File: slider_test.dart

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).

File: sliding_segmented_control_test.dart

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).

File: switch_test.dart

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).

File: text_field_test.dart

Path: packages/cupertino_ui/test/text_field_test.dart

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    packageflutter/packages repository. See also p: labels.team-designOwned by Design Languages team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions