{"action":"opened","issue":{"url":"https://api.github.com/repos/jxnblk/writing/issues/39","repository_url":"https://api.github.com/repos/jxnblk/writing","labels_url":"https://api.github.com/repos/jxnblk/writing/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/jxnblk/writing/issues/39/comments","events_url":"https://api.github.com/repos/jxnblk/writing/issues/39/events","html_url":"https://github.com/jxnblk/writing/issues/39","id":179384586,"number":39,"title":"Unit testing UI","user":{"login":"cameronroe","id":1614348,"avatar_url":"https://avatars.githubusercontent.com/u/1614348?v=3","gravatar_id":"","url":"https://api.github.com/users/cameronroe","html_url":"https://github.com/cameronroe","followers_url":"https://api.github.com/users/cameronroe/followers","following_url":"https://api.github.com/users/cameronroe/following{/other_user}","gists_url":"https://api.github.com/users/cameronroe/gists{/gist_id}","starred_url":"https://api.github.com/users/cameronroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cameronroe/subscriptions","organizations_url":"https://api.github.com/users/cameronroe/orgs","repos_url":"https://api.github.com/users/cameronroe/repos","events_url":"https://api.github.com/users/cameronroe/events{/privacy}","received_events_url":"https://api.github.com/users/cameronroe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-27T02:43:24Z","updated_at":"2016-09-27T02:43:24Z","closed_at":null,"body":"I like that concept a lot. I think given that React components and styles are nearly all in JS, with npm, there's no reason why we can't start running tests against them and validating `patterns`. \r\n\r\nIf you think about design, a lot of designers are influenced by other designers work right? The old saying, \"Great artists steal\"? So if we take this statement to be true, wouldn't that criteria call for pattern recognition? Considering we're moving more and more toward Machine Learning and AI. It could be the case that patterns are automatically created from what people think is good design, high conversion, etc.\r\n\r\nIf there's a landing page with a headline and image laid out in a certain way, a UI test could model that structure using Machine Learning and give it a score. The score could then be used against a component that would need to *align* with that same model in order to pass. For example, the CSS would need to match how the Headline and Image look. The margins, padding, etc. Then the test would pass.\r\n\r\nIf this approach was actually possible, you could have a test framework, based on **taste** using Machine Learning. For example, components with certain colors, spacing, layout could all fit a particular theme that is modeled continually using Machine Learning. All tests would fit this taste and allow you to \"Steal\" those influential design patterns. \r\n\r\nIsn't that how designers are mostly coming up with what looks good vs bad anyways? They have hypothesis about what works and what doesn't.\r\n\r\nThoughts?"}}
{"actor":{"display_login":"cameronroe"}}