Add storageState config + saveStorageState action, plus CI cleanup safety net #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/storage-state"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
workflow.config.web,pipeline.config.web,test.config.web, andplatforms.web— accepts either a file path or an inline{cookies, origins}object. Mapped straight through to Playwright'sbrowser.newContext({ storageState }). Forwarded from YAML throughWebRunOptions/WorkflowOptionsto bothnewContextcall sites.pathform callspage.context().storageState({path});handlerform dynamic-imports a user TS/JS file and invokes itsdefault async ({page, context, variables}) => void. Variable interpolation on both fields.timeout-minutesinput (default 30) on the Run Intellitester step plus anif: always()Cleanup safety net step that runsnpx intellitester cleanup:retryagainst.intellitester/cleanup/failed/. Catches the SIGKILL-before-finally case where the runner cancels the main step.Files touched: 13 (4 Zod schemas, 4 JSON schemas, 2 executors, 1 CLI, 1 reporter, 1 action.yml). +238 / -1.
Test plan
pnpm typecheckcleanpnpm buildcleanpnpm test— 14/14 passing (schema + interpolation + browser-launch)pnpm lint— only 2 pre-existing warnings, none introducedsaveStorageState: {path: ./auth.json}step in one workflow, thenconfig.web.storageState: ./auth.jsonin a second workflow, confirm login state carries.jsdefault-export async fn) and trigger viasaveStorageState: {handler: ./scripts/saveAuth.js}if: always()) and either retries or reports no failed cleanupsOut of scope / follow-ups
--storage-stateCLI flag yet — easy follow-up.