From 254b3266ea3e645c87eab7b3430564cf30a49526 Mon Sep 17 00:00:00 2001 From: nilshah98 Date: Tue, 31 Oct 2023 21:26:41 +0530 Subject: [PATCH] test: update expectations for storyErrored event --- test/storybook.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/storybook.test.js b/test/storybook.test.js index d652ddef..4f09ff1d 100644 --- a/test/storybook.test.js +++ b/test/storybook.test.js @@ -156,12 +156,12 @@ describe('percy storybook', () => { await expectAsync(storybook(['http://localhost:8000'])) // message contains the client stack trace - .toBeRejectedWithError(/^Story Error\n.*\/iframe\.html.*$/s); + .toBeRejectedWithError(/^Story Errored\n.*\/iframe\.html.*$/s); expect(logger.stderr).toEqual([ '[percy] Build not created', // message contains the client stack trace - jasmine.stringMatching(/^\[percy\] Error: Story Error\n.*\/iframe\.html.*$/s) + jasmine.stringMatching(/^\[percy\] Error: Story Errored\n.*\/iframe\.html.*$/s) ]); }); @@ -191,7 +191,7 @@ describe('percy storybook', () => { expect(logger.stderr).toEqual([ '[percy] Failed to capture story: foo: bar', // error logs contain the client stack trace - jasmine.stringMatching(/^\[percy\] Error: Story Error\n.*\/iframe\.html.*$/s), + jasmine.stringMatching(/^\[percy\] Error: Story Errored\n.*\/iframe\.html.*$/s), // does not create a build if all stories failed [ 1 in this case ] '[percy] Build not created' ]);