Previously, if you changed to a story where the comparison is new and the Baseline toggle shows the baseline snapshot, there would be no image shown in the comparison viewer. This PR adjusts the behavior so that for new stories, the user always sees the latest snapshot.
To QA:
Install this canary.
Add a new Story to an Existing Storybook and change an existing story within the Storybook.
Go to the existing story and toggle the snapshot so that you see the Baseline image.
Go to the New Story and verify that you see "Latest Snapshot" along with the image.
📦 Published PR as canary version: 1.1.10--canary.187.a1de870.0
:sparkles: Test out this PR locally via:
```bash
npm install @chromatic-com/storybook@1.1.10--canary.187.a1de870.0
# or
yarn add @chromatic-com/storybook@1.1.10--canary.187.a1de870.0
```
Previously, if you changed to a story where the comparison is new and the Baseline toggle shows the baseline snapshot, there would be no image shown in the comparison viewer. This PR adjusts the behavior so that for new stories, the user always sees the latest snapshot.
To QA:
Go to the New Story and verify that you see "Latest Snapshot" along with the image.
📦 Published PR as canary version:
1.1.10--canary.187.a1de870.0
:sparkles: Test out this PR locally via: ```bash npm install @chromatic-com/storybook@1.1.10--canary.187.a1de870.0 # or yarn add @chromatic-com/storybook@1.1.10--canary.187.a1de870.0 ```