Skip to content

Commit 17d97c5

Browse files
feat: add selector name to autoscreenshot step
1 parent 986b2bb commit 17d97c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/storybook/story-test-runner/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ async function openStoryStep(
7575
}
7676

7777
async function autoScreenshotStep(browser: WebdriverIO.Browser, rootSelector: string): Promise<void> {
78-
await browser.runStep("@testplane/storybook: autoscreenshot", () => browser.assertView("plain", rootSelector));
78+
await browser.runStep(`@testplane/storybook: autoscreenshot "${rootSelector}"`, () =>
79+
browser.assertView("plain", rootSelector),
80+
);
7981
}
8082

8183
async function clearSessionStep(browser: WebdriverIO.Browser): Promise<void> {

0 commit comments

Comments
 (0)