Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update accessibility contrast test coverage #109784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Aug 25, 2022
Merged

Conversation

ankur2136
Copy link
Contributor

@ankur2136 ankur2136 commented Aug 18, 2022

Update the accessibility test to cover all Elements with same semantic label to get better coverage on contrast test.

#109465 Improve flutter contrast test coverage

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. labels Aug 18, 2022
Update the accessbility test to cover all Elements with same semantic label to get better coverage on contrast test.
Nit fix.
Add a test with multiple nodes with same semantic label. but one of the label is excluded from semantic tree and has failing contrast (white on white) but this should pass a11y contrast test.
Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My concern with the ignored semantics + repeats has been address, so I'm marking this tenatively as LGTM.

I would also ask @chunhtai and @goderbauer to take a quick look. This will need to run through a google3 test run before we can land it though.

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chunhtai Please also take a look at this.

Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 26, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 26, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 26, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 26, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 26, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 26, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 26, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 26, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 26, 2022
CaseyHillers added a commit that referenced this pull request Aug 28, 2022
CaseyHillers pushed a commit that referenced this pull request Aug 28, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 29, 2022
@chunhtai
Copy link
Contributor

change reverted due to internal migration applied too soon.

@ankur2136
Copy link
Contributor Author

ankur2136 commented Aug 30, 2022

I left a pending cl which fixes the internal tests. Should be on Flutter ROB.

@chunhtai
Copy link
Contributor

@ankur2136 is it the one that removes skipA11yLabelUpcomingFixFromPr109784 ?

@ankur2136
Copy link
Contributor Author

Hey @chunhtai In one of my last cls I refactored the original set into 2 separate sets. skipA11yLabelUpcomingFixFromPr109784 contains everything that I found would be fixed (aka removed from the set) by this PR.

This PR would have broken 669 individual tests which should be the ones refactored into the set. The changes there were fixing all tests as of Friday but things might have changed slightly here and there in a few tests since then.

Please contact leizi@ who is taking ownership from me to fix this in G3.

chunhtai added a commit to chunhtai/flutter that referenced this pull request Sep 13, 2022
chunhtai added a commit that referenced this pull request Sep 14, 2022
CaseyHillers added a commit that referenced this pull request Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) a: tests "flutter test", flutter_test, or one of our tests autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants