57 lines
1.3 KiB
TypeScript
57 lines
1.3 KiB
TypeScript
import { PlaywrightTestConfig } from '@playwright/test';
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
globalSetup: require.resolve('./test/config/global-setup'),
|
|
use: {
|
|
baseURL: 'http://beta.jamkazam.local:4000',
|
|
actionTimeout: 5000,
|
|
headless: true,
|
|
viewport: { width: 1280, height: 720},
|
|
ignoreHTTPSErrors: true,
|
|
video: 'on-first-retry',
|
|
},
|
|
};
|
|
|
|
export default config;
|
|
|
|
|
|
// const { devices } = require('@playwright/test');
|
|
|
|
// /** @type {import('@playwright/test').PlaywrightTestConfig} */
|
|
// const config = {
|
|
// testDir: './test',
|
|
// workers: 2,
|
|
// retries: 2,
|
|
// use: {
|
|
// headless: false,
|
|
// viewport: { width: 1280, height: 720 },
|
|
// launchOptions: {
|
|
// slowMo: 1000,
|
|
// },
|
|
// video:"on",
|
|
// },
|
|
// projects: [
|
|
// {
|
|
// name: 'Desktop Chromium',
|
|
// use: {
|
|
// browserName: 'chromium',
|
|
// },
|
|
// },
|
|
// { name: 'Desktop Safari',
|
|
// use: {
|
|
// browserName: 'webkit',
|
|
// viewport: { width: 1200, height: 750 },
|
|
// }
|
|
// },
|
|
// // Test against mobile viewports.
|
|
// { name: 'Mobile Chrome',
|
|
// use: devices['Pixel 5'],
|
|
// },
|
|
// {
|
|
// name: 'Mobile Safari',
|
|
// use: devices['iPhone 12'],
|
|
// },
|
|
// ],
|
|
// };
|
|
|
|
// module.exports = config;
|