Skip to content

Instantly share code, notes, and snippets.

@AriPerkkio
AriPerkkio / playwright.config.ts
Last active September 29, 2026 07:48
Test runner recipe
import { defineConfig } from '@playwright/test';
const storybookUrl = process.env.STORYBOOK_URL ?? 'http://localhost:6006';
export default defineConfig({
testDir: './playwright',
globalSetup: './playwright/stories-setup.ts',
use: { baseURL: storybookUrl },
fullyParallel: true,
webServer: process.env.STORYBOOK_URL