Skip to content

Commit

Permalink
always show "update snapshot button"
Browse files Browse the repository at this point in the history
I feel that it is more important to have the ability to
always update the snapshot at any time than it is to
only display the snapshot button when there is a failing
snapshot test. This change removes the condition
around displaying the snapshot button so that the
button is always visible

Raathigesh#191
  • Loading branch information
Greg Veres committed May 14, 2020
1 parent 0fb351c commit d035f26
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/test-file/summary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,8 @@ export default function FileSummary({
}}
/>
</Tooltip>
{haveSnapshotFailures && (
<Tooltip
title="Update all snapshots of the file"
title="Update all snapshots for this file"
position="bottom"
size="small"
>
Expand All @@ -204,7 +203,6 @@ export default function FileSummary({
Update Snapshot
</Button>
</Tooltip>
)}
</ActionPanel>
</Container>
);
Expand Down

0 comments on commit d035f26

Please sign in to comment.