Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prklm10 committed Nov 26, 2024
1 parent 9dbb56e commit e287091
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/storybook.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ describe('percy storybook', () => {
'[percy] Build not created',
// message contains the client stack trace
jasmine.stringMatching(
/^\[percy\] Snapshot Name: .*:\nStory Error\n.*\/iframe\.html.*$/s
/^\[percy\] Error: Snapshot Name: .*: \n {2}Story Error\n.*\/iframe\.html.*$/s
)
]);
});
Expand Down Expand Up @@ -226,7 +226,7 @@ describe('percy storybook', () => {
'[percy] Failed to capture story: foo: bar',
// error logs contain the client stack trace
jasmine.stringMatching(
/^\[percy\] Snapshot Name: .*:\nStory Error\n.*\/iframe\.html.*$/s
/^\[percy\] Error: Snapshot Name: .*: \n {2}Story Error\n.*\/iframe\.html.*$/s
),

// does not create a build if all stories failed [ 1 in this case ]
Expand Down Expand Up @@ -279,7 +279,7 @@ describe('percy storybook', () => {
'[percy] Failed to capture story: foo: bar',
// error logs contain the client stack trace
jasmine.stringMatching(
/^\[percy\] Snapshot Name: .*:\nStory Error\n.*\/iframe\.html.*$/s
/^\[percy\] Error: Snapshot Name: .*: \n {2}Story Error\n.*\/iframe\.html.*$/s
),

// does not create a build if all stories failed [ 1 in this case ]
Expand Down

0 comments on commit e287091

Please sign in to comment.