Skip to content

Commit

Permalink
fix decorator e2e test in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Nov 21, 2023
1 parent e3def1d commit 4784208
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion code/e2e-tests/framework-svelte.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ test.describe('Svelte', () => {
const sbPage = new SbPage(page);
const lines: string[] = [];
page.on('console', (msg) => {
lines.push(msg.text());
const text = msg.text();
if (text === 'decorator called') {
lines.push(text);
}
});

await sbPage.navigateToStory('stories/renderers/svelte/decorators-runs-once', 'default');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
},
decorators: [
(Story) => {
console.log('decorator');
console.log('decorator called');
return Story();
},
],
Expand Down

0 comments on commit 4784208

Please sign in to comment.