feat: publish CodexPi contest snapshot
Some checks are pending
Qualité / tests (push) Waiting to run
Some checks are pending
Qualité / tests (push) Waiting to run
This commit is contained in:
15
frontend/playwright.config.ts
Normal file
15
frontend/playwright.config.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { defineConfig, devices } from '@playwright/test'
|
||||
|
||||
export default defineConfig({
|
||||
testDir:'./e2e',
|
||||
fullyParallel:true,
|
||||
timeout:30_000,
|
||||
expect:{timeout:5_000,toHaveScreenshot:{animations:'disabled',maxDiffPixelRatio:.01}},
|
||||
reporter:process.env.CI?'github':'line',
|
||||
use:{baseURL:process.env.CODEXPI_E2E_BASE_URL||'http://127.0.0.1:4173',trace:'retain-on-failure',screenshot:'only-on-failure',serviceWorkers:'block'},
|
||||
webServer:process.env.CODEXPI_E2E_BASE_URL?undefined:{command:'npm run dev -- --port 4173',url:'http://127.0.0.1:4173',reuseExistingServer:!process.env.CI,timeout:120_000},
|
||||
projects:[
|
||||
{name:'ordinateur',use:{...devices['Desktop Chrome'],viewport:{width:1440,height:900}}},
|
||||
{name:'mobile-375',use:{...devices['iPhone 13'],viewport:{width:375,height:812}}},
|
||||
],
|
||||
})
|
||||
Reference in New Issue
Block a user