nxtgauge-admin-solid/playwright.storybook.config.ts

25 lines
617 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests/e2e',
fullyParallel: true,
reporter: [['list']],
webServer: {
command: 'npm run storybook -- --ci --host 127.0.0.1 --port 6006',
url: 'http://127.0.0.1:6006/iframe.html',
reuseExistingServer: true,
timeout: 300_000,
},
use: {
baseURL: 'http://127.0.0.1:6006',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
viewport: { width: 1440, height: 900 },
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});