Files
supanextail/tests/playwright.config.ts
2021-12-16 23:45:43 +01:00

31 lines
754 B
TypeScript

// playwright.config.ts
import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
projects: [
{
name: 'Chrome Stable',
use: {
baseURL: process.env.NEXT_PUBLIC_VERCEL_URL
? process.env.NEXT_PUBLIC_VERCEL_URL
: 'http://localhost:3000',
browserName: 'chromium',
// Test against Chrome Stable channel.
channel: 'chrome',
},
},
{
name: 'Desktop Safari',
use: {
baseURL: process.env.NEXT_PUBLIC_VERCEL_URL
? process.env.NEXT_PUBLIC_VERCEL_URL
: 'http://localhost:3000',
browserName: 'webkit',
viewport: { width: 1200, height: 750 },
},
},
],
};
export default config;