{"action":"created","issue":{"url":"https://api.github.com/repos/storybooks/storybook/issues/3155","repository_url":"https://api.github.com/repos/storybooks/storybook","labels_url":"https://api.github.com/repos/storybooks/storybook/issues/3155/labels{/name}","comments_url":"https://api.github.com/repos/storybooks/storybook/issues/3155/comments","events_url":"https://api.github.com/repos/storybooks/storybook/issues/3155/events","html_url":"https://github.com/storybooks/storybook/issues/3155","id":302679360,"number":3155,"title":"storyshots classnames of storybook frame cause snapshot mismatch","user":{"login":"chrisjbrown","id":1250638,"avatar_url":"https://avatars0.githubusercontent.com/u/1250638?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisjbrown","html_url":"https://github.com/chrisjbrown","followers_url":"https://api.github.com/users/chrisjbrown/followers","following_url":"https://api.github.com/users/chrisjbrown/following{/other_user}","gists_url":"https://api.github.com/users/chrisjbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisjbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisjbrown/subscriptions","organizations_url":"https://api.github.com/users/chrisjbrown/orgs","repos_url":"https://api.github.com/users/chrisjbrown/repos","events_url":"https://api.github.com/users/chrisjbrown/events{/privacy}","received_events_url":"https://api.github.com/users/chrisjbrown/received_events","type":"User","site_admin":false},"labels":[{"id":603487528,"url":"https://api.github.com/repos/storybooks/storybook/labels/addon:%20storyshots","name":"addon: storyshots","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-06T12:21:12Z","updated_at":"2018-03-15T17:40:26Z","closed_at":null,"author_association":"NONE","body":"### Issue details\r\n\r\nIn CI build snapshots are different but it is complaining about classnames from the storybook frame and not the component. I expect this to only flag an error if there is an error in the rendered component.\r\n\r\nOddly enough I only have this issue when running on the CI build. running locally with `npm test` and even `npm test -- -ci` works as expected\r\n\r\n### Steps to reproduce\r\n\r\nrunning `npm test`\r\n\r\n_(A screencast can be useful for visual bugs, but it is not a substitute for a textual description.)_\r\n\r\n### Please specify which version of Storybook and optionally any affected addons that you're running\r\n\r\n- storybook/react 16.1.1\r\n- storybook/addon-storyshots 3.3.13\r\n\r\n### Affected platforms \r\n\r\n- jest + storybook + storyshots\r\n\r\n### Screenshots / Screencast / Code Snippets (Optional)\r\n\r\npart of the output I receive.\r\n```js\r\nStoryshots › Button › Buy\r\n\r\n    expect(value).toMatchSnapshot()\r\n    \r\n    Received value does not match stored snapshot 1.\r\n    \r\n    - Snapshot\r\n    + Received\r\n    \r\n    @@ -396,185 +396,185 @@\r\n                   \"\r\n                   Button\r\n                   \" Component\r\n                 </h2>\r\n                 <table\r\n    -              className=\"css-glamorous-table--3qhq7f\"\r\n    +              className=\"css-1ytzlk7\"\r\n                 >\r\n                   <thead>\r\n                     <tr>\r\n                       <th\r\n    -                    className=\"css-glamorous-th--1gvy3it\"\r\n    +                    className=\"css-d52hbj\"\r\n                       >\r\n                         property\r\n                       </th>\r\n                       <th\r\n    -                    className=\"css-glamorous-th--1gvy3it\"\r\n    +                    className=\"css-d52hbj\"\r\n                       >\r\n                         propType\r\n                       </th>\r\n                       <th\r\n    -                    className=\"css-glamorous-th--1gvy3it\"\r\n    +                    className=\"css-d52hbj\"\r\n                       >\r\n                         re\r\n```\r\n\r\nUPDATE:\r\n\r\nseems `addon/withinfo` was adding some elements to the page which was create the snapshot miss match. \r\n\r\nremoving `withinfo` has resolved the issue. Is anyone aware that there is a conflict when using both addons?"},"comment":{"url":"https://api.github.com/repos/storybooks/storybook/issues/comments/373462664","html_url":"https://github.com/storybooks/storybook/issues/3155#issuecomment-373462664","issue_url":"https://api.github.com/repos/storybooks/storybook/issues/3155","id":373462664,"user":{"login":"Hypnosphi","id":6651625,"avatar_url":"https://avatars3.githubusercontent.com/u/6651625?v=4","gravatar_id":"","url":"https://api.github.com/users/Hypnosphi","html_url":"https://github.com/Hypnosphi","followers_url":"https://api.github.com/users/Hypnosphi/followers","following_url":"https://api.github.com/users/Hypnosphi/following{/other_user}","gists_url":"https://api.github.com/users/Hypnosphi/gists{/gist_id}","starred_url":"https://api.github.com/users/Hypnosphi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hypnosphi/subscriptions","organizations_url":"https://api.github.com/users/Hypnosphi/orgs","repos_url":"https://api.github.com/users/Hypnosphi/repos","events_url":"https://api.github.com/users/Hypnosphi/events{/privacy}","received_events_url":"https://api.github.com/users/Hypnosphi/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T17:40:26Z","updated_at":"2018-03-15T17:40:26Z","author_association":"OWNER","body":"@ndelangen I remember there was a similar issue, but can’t find it. AFAIR the solution was to set some env var"}}
{"actor":{"display_login":"Hypnosphi"}}