mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-24 22:10:59 +00:00
* fix(web): support bracket-delimited LaTeX in Markdown and share exports * fix(web): preserve Markdown containers around LaTeX * fix(web): handle list fences and math comparisons * fix(web): cover Markdown metadata edge cases * fix(web): protect Markdown metadata around LaTeX * fix(web): preserve reference metadata around LaTeX * fix(web): preserve quoted formulas after prose * fix(web): normalize nested Markdown containers * fix(web): preserve existing dollar math * fix(web): stop LaTeX matching at protected ranges
27 lines
833 B
TypeScript
27 lines
833 B
TypeScript
import { defineConfig, devices } from '@playwright/test'
|
|
|
|
const chromePath = process.env.PLAYWRIGHT_CHROME_PATH
|
|
|
|
/** Live hub session tests — no Vite; hits HAPI_URL with HAPI_LIVE=1. */
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
testMatch: ['mermaid-lightbox-session.spec.ts', 'latex-bracket-math-session.spec.ts'],
|
|
timeout: 120_000,
|
|
expect: { timeout: 20_000 },
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
reporter: [['list']],
|
|
use: {
|
|
...devices['Desktop Chrome'],
|
|
viewport: { width: 1440, height: 1100 },
|
|
...(chromePath
|
|
? {
|
|
launchOptions: {
|
|
executablePath: chromePath,
|
|
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage'],
|
|
},
|
|
}
|
|
: {}),
|
|
},
|
|
})
|