mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-17 17:21:48 +00:00
Add GitHub Pages prober
This commit is contained in:
33
playwright.prober.config.ts
Normal file
33
playwright.prober.config.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import {defineConfig, devices} from '@playwright/test';
|
||||
|
||||
/**
|
||||
* Playwright configuration for prober (live smoke) tests.
|
||||
*
|
||||
* Unlike the main playwright.config.ts, this config:
|
||||
* - Does not start a local dev server (specs navigate to absolute URLs).
|
||||
* - Runs tests sequentially to avoid rate-limiting external APIs.
|
||||
* - Enforces forbidOnly unconditionally (probers always run in CI).
|
||||
* - Captures screenshots, video, and traces for debugging live failures.
|
||||
*/
|
||||
export default defineConfig({
|
||||
testDir: './tests/probers',
|
||||
fullyParallel: false,
|
||||
forbidOnly: true,
|
||||
retries: 2,
|
||||
timeout: 120000,
|
||||
reporter: [['html', {open: 'never'}], ['list']],
|
||||
use: {
|
||||
locale: 'en-US',
|
||||
trace: 'on-first-retry',
|
||||
screenshot: 'only-on-failure',
|
||||
video: 'on-first-retry',
|
||||
},
|
||||
projects: [
|
||||
{
|
||||
name: 'prober',
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user