Text-based snapshot-testing #25
akaDuality
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We should create an instrument that allows to compare the designer's layout with the result of developer's work. Any kind of snapshot-testing can do it.
We have great AccessibilitySnapshot, but the library generates images. Screenshot-testing has several downsides for our purpose:
I would like to create some kind of text description of a view that can be generated directly from the macOS app. Example:
Real image example
Text description:
Core part of view parsing for accessibility should be the same with AccessibilitySnapshot, because it's great! In addition we can suggest to it the text-strategy of snapshot generation.
As a result, text-based snapshot can be generated from the app and a develop can use AccessibilitySnapshot to match it with his result.
Beta Was this translation helpful? Give feedback.
All reactions