UNPKG

@nightwatch/storybook

Version:

Automatically integrate Storybook and run stories directly with Nightwatch

10 lines (8 loc) 212 B
module.exports = class OpenStorybookCommand { command(storyId) { return this.api.navigateTo(this._getStoryBookUrl(storyId)); } _getStoryBookUrl(storyId) { return `/?path=/story/${storyId}`; } };