GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — theme/playwright.config.mjs at main · j3w1/theme

Expand file tree

/

playwright.config.mjs

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
47 lines (44 loc) · 1.96 KB
/

playwright.config.mjs

Copy path

File metadata and controls

47 lines (44 loc) · 1.96 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Browser tests run against the built dist/ served only under /theme/.
// Projects: desktop, narrow (360px), zoom200 (1280 at 200% = 640 CSS px),
// and nojs (JavaScript disabled: everything normative must still be there).
import { defineConfig, devices } from "@playwright/test";
import { portFromEnv } from "./scripts/tooling/cli.mjs";
const port = portFromEnv("PW_PORT", 4173, { min: 1 });
export default defineConfig({
testDir: "./tests/browser",
// Tests are independent page loads, so they spread across workers. CI runs
// the suite in shards of two workers each (D-031); locally it uses half the
// cores. The evidence reporter runs in the main process either way.
fullyParallel: true,
forbidOnly: !!process.env.CI,
workers: process.env.CI ? 2 : "50%",
retries: 0,
timeout: 30_000,
reporter: [["list"], ["./tests/evidence-reporter.mjs"], ...(process.env.CI ? [["html", { open: "never" }]] : [])],
use: {
baseURL: `http://localhost:${port}/theme/`,
headless: true,
trace: "retain-on-failure",
browserName: "chromium",
channel: process.env.PW_CHANNEL || undefined,
},
webServer: {
command: `node tests/browser/serve-dist.mjs ${port}`,
url: `http://localhost:${port}/theme/`,
reuseExistingServer: !process.env.CI,
timeout: 20_000,
},
// Each project's environment is written once and used twice: as `use`, and
// as metadata, because merged shard reports keep project metadata but not
// `use`; the evidence reporter reads it there.
projects: [
["desktop", { width: 1440, height: 1000 }, true, {}],
["narrow", { width: 360, height: 740 }, true, {}],
["zoom200", { width: 640, height: 500 }, true, { deviceScaleFactor: 2 }],
["nojs", { width: 1440, height: 1000 }, false, {}],
].map(([name, viewport, javaScript, extra]) => ({
name,
use: { ...devices["Desktop Chrome"], viewport, ...extra, ...(javaScript ? {} : { javaScriptEnabled: false }) },
metadata: { viewport, javaScript },
})),
});
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.