Skip to content

Commit 867e8e1

Browse files
authored
Merge pull request #34 from LambdaTest/stage
Release 1.1.5
2 parents 91dc166 + a10f362 commit 867e8e1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

commands/utils/dom.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ 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-
filename = storyInfo.kind.replaceAll('/', '#') + ': ' + storyInfo.name;
57+
let title = storyInfo.kind || storyInfo.title;
58+
title = title ? title.replaceAll('/', '#')+': ' : '';
59+
filename = title + storyInfo.name;
5860
form.append('files', file, filename+'.html');
5961
}
6062
form.append('resolution', storybookConfig.resolutions);

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/smartui-storybook",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "LambdaTest's command-line interface (CLI) aimed to help you run your SmartUI tests on LambdaTest platform",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)