Skip to content

Commit

Permalink
fix: correct storybook detection
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Oct 25, 2024
1 parent 8e7d152 commit 9ad0f62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apps/frontend/src/pages/Build/BuildDetailToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ export const BuildDetailToolbar = memo(function BuildDetailToolbar({
{url && (
<UrlIndicator
url={url}
isStorybook={automationLibrary?.name === "storybook"}
isStorybook={
automationLibrary?.name === "@storybook/test-runner"
}
/>
)}
{test && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import puppeteerIcon from "./logos/puppeteer.svg";
import storybookIcon from "./logos/storybook.svg";

const Icons: Record<string, string> = {
playwright: playwrightIcon,
"@playwright/test": playwrightIcon,
playwright: playwrightIcon,
"playwright-core": playwrightIcon,
cypress: cypressIcon,
puppeteer: puppeteerIcon,
storybook: storybookIcon,
"@storybook/test-runner": storybookIcon,
};

export function AutomationLibraryIndicator({
Expand Down

0 comments on commit 9ad0f62

Please sign in to comment.