Skip to content
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

Accessibility Script - Output to chat client #34508

Merged
merged 1 commit into from Apr 30, 2020
Merged

Accessibility Script - Output to chat client #34508

merged 1 commit into from Apr 30, 2020

Conversation

epeach
Copy link

@epeach epeach commented Apr 29, 2020

Outputs the results of the accessibility checker to the wcag-checker slack channel.

Example output from chat_message.log:
Screenshot from 2020-04-29 09-52-07

Links

Testing story

Reviewer Checklist:

  • Tests provide adequate coverage
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

error_results.each do |error, count|
puts " #{error} - #{count}"
ChatClient.message 'wcag-checker', " #{error} - #{count}"
Copy link
Contributor

Choose a reason for hiding this comment

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

[Not blocking] Is it possible to make the error messages more human-readable? i.e. "Clickable Div". Or perhaps just add a link to a doc that makes it easy to find the error?

Copy link
Author

Choose a reason for hiding this comment

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

This is a good call! There's a lot of rules possible so I'm not sure how to make more human-readable messages, but I think I should be able to programmatically link to WCAG rules. I'm going to attempt in a follow-up once I see if there are other changes I need to make for this to show up nicely in Slack.

Copy link
Contributor

@jmkulwik jmkulwik left a comment

Choose a reason for hiding this comment

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

Awesome! 🎉
One non-blocking comment.

@epeach epeach merged commit e61a9d4 into staging Apr 30, 2020
@epeach epeach deleted the pa11y-slack branch April 30, 2020 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants