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 — NaultCore/playwright.config.ts at main · OpenRai/NaultCore

Expand file tree

/

playwright.config.ts

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
78 lines (73 loc) · 3.08 KB
/

playwright.config.ts

Copy path

File metadata and controls

78 lines (73 loc) · 3.08 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import { defineConfig, devices } from '@playwright/test';
import dotenv from 'dotenv';
import { e2eStorageStatePath } from './tests-playwright/test-wallet';
// NanoNym E2E is an explicit profile opt-in. Capture the shell choice before
// dotenv loads local convenience settings so a default run remains NaultCore.
const featureNanonymsRequested = process.env.FEATURE_NANONYMS === 'true';
// Load .env.test (gitignored) — contains NANO_TEST_SEED and optional CHROME_BIN.
// Falls back gracefully if the file doesn't exist (CI uses secrets instead).
dotenv.config({ path: '.env.test', quiet: true });
dotenv.config({ path: '.env', quiet: true });
const featureNanonyms = featureNanonymsRequested;
process.env.FEATURE_NANONYMS = featureNanonyms ? 'true' : 'false';
const hasFundedSeed = Boolean(process.env.NANO_TEST_SEED?.trim());
const isCI = !!process.env.CI;
const isHeadless = isCI || process.env.PLAYWRIGHT_HEADLESS === 'true';
const browserBin = process.env.CHROME_BIN || undefined;
const baseURL = process.env.E2E_BASE_URL || 'http://localhost:4200';
const serverPort = new URL(baseURL).port || '4200';
function getWebServerCommand(): string {
const featureFlag = featureNanonyms ? 'true' : 'false';
const buildConfiguration = featureNanonyms ? 'nanonyms-e2e' : 'naultcore-e2e';
return isCI
? `FEATURE_NANONYMS=${featureFlag} pnpm run start --configuration ${buildConfiguration} --port ${serverPort}`
: `unset npm_config_prefix && /bin/zsh -lc "source ~/.nvm/nvm.sh && FEATURE_NANONYMS=${featureFlag} nvm exec pnpm run start --configuration ${buildConfiguration} --port ${serverPort}"`;
}
export default defineConfig({
testDir: './tests-playwright',
// All browser contexts are isolated, but funded Nano accounts live on one
// chain. Run their transactions serially to avoid frontier races/retries.
fullyParallel: false,
forbidOnly: isCI,
retries: 0,
workers: 1,
reporter: 'html',
use: {
baseURL,
screenshot: 'only-on-failure',
trace: 'on-first-retry',
// CI and PLAYWRIGHT_HEADLESS=true run without opening a browser window.
headless: isHeadless,
},
projects: [
...(hasFundedSeed ? [{
name: 'wallet setup',
testMatch: /.*\.setup\.ts/,
use: {
...devices['Desktop Chrome'],
headless: true,
...(browserBin ? { launchOptions: { executablePath: browserBin } } : {}),
},
}] : []),
{
name: 'Chromium',
...(hasFundedSeed ? { dependencies: ['wallet setup'] } : {}),
testIgnore: /.*\.setup\.ts/,
use: {
...devices['Desktop Chrome'],
...(hasFundedSeed ? { storageState: e2eStorageStatePath } : {}),
// In CI: no executablePath -> Playwright uses its bundled Chromium.
// Locally: CHROME_BIN from .env.test or shell env (e.g. Brave Browser).
...(browserBin ? { launchOptions: { executablePath: browserBin } } : {}),
},
},
],
webServer: {
// CI: pnpm is installed by the workflow.
// Local: use nvm wrapper (AGENTS.md convention).
command: getWebServerCommand(),
url: baseURL,
reuseExistingServer: !isCI,
timeout: 180000,
},
});
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.