test(sw): shared Playwright runtime resolver
This commit is contained in:
1 parent
94c0a13c74
commit
df650c02dd
23 files changed
+120
-55
No files matched your search
@@ -1,13 +1,12 @@
|
||||
// Functional checks of the 2026-10-19 SW integrated improvement on the built Storybook (storybook-static).
|
||||
// Usage: node packages/sw/tests/integrated-improvement.browser.mjs <evidence-dir> [section ...]
|
||||
// Sections: options, tool, popup (default: all). Screenshots and result JSON go to <evidence-dir>.
|
||||
import { createRequire } from 'node:module'
|
||||
import { mkdir, readFile, writeFile } from 'node:fs/promises'
|
||||
import path from 'node:path'
|
||||
import http from 'node:http'
|
||||
import { runtimeRequire } from './playwright-runtime.mjs'
|
||||
|
||||
const runtime = process.env.SW_RUNTIME_MODULES ?? 'C:/Users/user/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/node_modules'
|
||||
const require = createRequire(path.join(runtime, 'index.js'))
|
||||
const require = runtimeRequire()
|
||||
const out = path.resolve(process.argv[2] ?? 'docs/sw/integrated-improvement-qa/verify')
|
||||
// 'tool' opens sw-tool--tool-buttons, retired 2026-10-19 (storybook-inventory retiredToolIds): historical, run it only
|
||||
// by name against an old build. The default runs the sections whose Stories exist (2026-10-20).
|
||||
|
||||
Reference in new issue
Block a user