mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-11 21:39:22 +00:00
5a5b4bb93c
* Replace Puppeteer by Playwright * Remove the limit of workers on ci * Various fixes after review * Document things
24 lines
640 B
TypeScript
24 lines
640 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
reporter: [
|
|
process.env.CI ? ['dot'] : ['list'],
|
|
['@argos-ci/playwright/reporter', { uploadToArgos: !!process.env.CI }],
|
|
],
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
],
|
|
use: {
|
|
baseURL: process.env.BASE_URL || 'http://localhost:3000',
|
|
trace: 'on-first-retry',
|
|
screenshot: 'only-on-failure',
|
|
},
|
|
});
|