{"action":"created","issue":{"url":"https://api.github.com/repos/ianstormtaylor/slate/issues/2182","repository_url":"https://api.github.com/repos/ianstormtaylor/slate","labels_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/2182/labels{/name}","comments_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/2182/comments","events_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/2182/events","html_url":"https://github.com/ianstormtaylor/slate/issues/2182","id":361378234,"node_id":"MDU6SXNzdWUzNjEzNzgyMzQ=","number":2182,"title":"[Discussion] Interaction testing","user":{"login":"ericedem","id":1060669,"node_id":"MDQ6VXNlcjEwNjA2Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1060669?v=4","gravatar_id":"","url":"https://api.github.com/users/ericedem","html_url":"https://github.com/ericedem","followers_url":"https://api.github.com/users/ericedem/followers","following_url":"https://api.github.com/users/ericedem/following{/other_user}","gists_url":"https://api.github.com/users/ericedem/gists{/gist_id}","starred_url":"https://api.github.com/users/ericedem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericedem/subscriptions","organizations_url":"https://api.github.com/users/ericedem/orgs","repos_url":"https://api.github.com/users/ericedem/repos","events_url":"https://api.github.com/users/ericedem/events{/privacy}","received_events_url":"https://api.github.com/users/ericedem/received_events","type":"User","site_admin":false},"labels":[{"id":434641210,"node_id":"MDU6TGFiZWw0MzQ2NDEyMTA=","url":"https://api.github.com/repos/ianstormtaylor/slate/labels/discussion","name":"discussion","color":"eeeeee","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-18T16:07:22Z","updated_at":"2018-11-26T19:02:22Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I've noticed in slate that a large majority of bugs that creep into codebase are specifically around events, interaction, cross browser, and slate-react. These bugs are often caught by people running through examples on different browsers, and happening to stumble across them.\r\n\r\nWhat I wanted to do is start a discussion to talk about how we could better test for these kinds of issues, hoping someone has experience in this area. I'd like to get higher level testing, like DOM interaction and event triggers, without resorting to something like selenium which is generally error prone.\r\n\r\nI haven't dug super deep, but a promising library that might help with this is https://github.com/kentcdodds/react-testing-library.\r\n\r\nWe could probably automate running this on something like sauce labs or browserstack, or something that has a free open source plan."},"comment":{"url":"https://api.github.com/repos/ianstormtaylor/slate/issues/comments/441757157","html_url":"https://github.com/ianstormtaylor/slate/issues/2182#issuecomment-441757157","issue_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/2182","id":441757157,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTc1NzE1Nw==","user":{"login":"ojassvi","id":2346718,"node_id":"MDQ6VXNlcjIzNDY3MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2346718?v=4","gravatar_id":"","url":"https://api.github.com/users/ojassvi","html_url":"https://github.com/ojassvi","followers_url":"https://api.github.com/users/ojassvi/followers","following_url":"https://api.github.com/users/ojassvi/following{/other_user}","gists_url":"https://api.github.com/users/ojassvi/gists{/gist_id}","starred_url":"https://api.github.com/users/ojassvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojassvi/subscriptions","organizations_url":"https://api.github.com/users/ojassvi/orgs","repos_url":"https://api.github.com/users/ojassvi/repos","events_url":"https://api.github.com/users/ojassvi/events{/privacy}","received_events_url":"https://api.github.com/users/ojassvi/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T19:02:22Z","updated_at":"2018-11-26T19:02:22Z","author_association":"NONE","body":"Yes you can use react-testing-library with headless Chrome. I am using Karma as the test runner and headless Chrome to render my components in real DOM.\r\n\r\nI am using slate in my project and I am able to render it correctly using react-testing-libaray but not able to test the inputs so far. I can add here my findings and how I am testing it, if that is helpful."}}
{"actor":{"display_login":"ojassvi"}}