Skip to content

Commit 5d9d71b

Browse files
committed
Replace / with # in DOM filename
* This will be reverted in LSRS. For some reason, LSRS only receives filename base when filename contains /
1 parent 2af343c commit 5d9d71b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commands/utils/dom.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ async function sendDoM(storybookUrl, stories, storybookConfig, options) {
5454
const form = new formData();
5555
for (const [storyId, storyInfo] of Object.entries(stories)) {
5656
const file = fs.readFileSync('doms/' + storyId + '.html');
57-
form.append('files', file, {filepath: storyInfo.kind + ': ' + storyInfo.name + '.html'});
57+
filename = storyInfo.kind.replaceAll('/', '#') + ': ' + storyInfo.name;
58+
form.append('files', file, filename+'.html');
5859
}
5960
form.append('resolution', storybookConfig.resolutions);
6061
form.append('browser', storybookConfig.browsers);

0 commit comments

Comments
 (0)