Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pankaj443 committed Jul 18, 2024
1 parent a01b431 commit 89b9f15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/storybook.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ describe('percy storybook', () => {
delete process.env.PERCY_RETRY_STORY_ON_ERROR;
});

it('retries story logs the error but does not break build if skip is enabled', async () => {
it('skips the story and logs the error but does not break build', async () => {
server.reply('/iframe.html', () => [200, 'text/html', [
`<script>__STORYBOOK_PREVIEW__ = { async extract() { return ${JSON.stringify([
{ id: '1', kind: 'foo', name: 'bar' }
Expand Down Expand Up @@ -241,7 +241,7 @@ describe('percy storybook', () => {
delete process.env.PERCY_RETRY_STORY_ON_ERROR;
});

it('skips the story and logs the error but does not break build', async () => {
it('retries story logs the error but does not break build if skip is enabled', async () => {
server.reply('/iframe.html', () => [200, 'text/html', [
`<script>__STORYBOOK_PREVIEW__ = { async extract() { return ${JSON.stringify([
{ id: '1', kind: 'foo', name: 'bar' }
Expand Down

0 comments on commit 89b9f15

Please sign in to comment.