Skip to content

Improve flutter contrast test coverage #109465

@ankur2136

Description

@ankur2136

Use case

Looking at the contrast check here (packages/flutter_test/lib/src/accessibility.dart), the text elements which are repeated more than once throw a failure. In order to get away from this failure we need to bypass contrast test on all cases where we have repeated elements.

Product GP3, Money

Proposal

Loop over all elements in the semantic node and check for contrast of each element.
This might have some repeated loops but should terminate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: tests"flutter test", flutter_test, or one of our testsframeworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions