[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K1VXH4FVPY2A0PXSBD8YT6":3,"skill-same:01M6K1VXH4FVPY2A0PXSBD8YT6":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":40,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M6K1VXH4FVPY2A0PXSBD8YT6","playwright-e2e",null,"Run Gnosi Playwright smoke and authenticated tests against existing disposable services, or explicitly generate isolated Linux visual candidates.","ismigar\u002FGnosi","ismigar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6537880?v=4","01M6K1KJFJXCT6S4ATNXFRD1Y7","Ismael García","01M6K1KJM0CK16BDEYVZCV6949",2,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fplaywright_e2e\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29],"playwright","e2e","playwright e2e","linux","generate","run","services","smoke","visual","tests","Existing","2026-11-10 10:12:30",false,"---\nname: playwright-e2e\ndescription: Run Gnosi Playwright smoke and authenticated tests against existing disposable services, or explicitly generate isolated Linux visual candidates.\n---\n\n# Playwright E2E\n\nUse the existing Node 22.22.2 and pnpm 11.19.0 workspace toolchain. Dependency\nprovisioning, when separately authorized, uses the repository root frozen\n`pnpm-lock.yaml` and `pnpm-workspace.yaml`; do not install from `tests\u002Fe2e` or\nregenerate locks. The smoke wrapper provisions nothing. The Linux generator\ninstalls dependencies only in its disposable container workspace; neither wrapper\ninstalls browsers or changes host dependencies.\n\n## Sources of truth\n\n- [Playwright configuration](..\u002F..\u002F..\u002Ftests\u002Fe2e\u002Fplaywright.config.ts): projects,\n  URLs, certificate policy, retries and reporters.\n- [Root commands](..\u002F..\u002F..\u002Fpackage.json) and [E2E commands](..\u002F..\u002F..\u002Ftests\u002Fe2e\u002Fpackage.json).\n- [CI](..\u002F..\u002F..\u002F.github\u002Fworkflows\u002Fci.yml): the current native smoke job.\n- [Authentication fixture](..\u002F..\u002F..\u002Ftests\u002Fe2e\u002Ftests\u002Fsetup\u002Fauth.setup.ts) and\n  [visual spec](..\u002F..\u002F..\u002Ftests\u002Fe2e\u002Ftests\u002Fvisual\u002Fregression.spec.ts).\n\nPaths below are relative to the repository root unless stated otherwise. Run\nagainst an explicitly chosen disposable test environment. A full feature suite\ncan write application data; a working frontend is not permission to test against\npersonal vaults or to call live AI\u002Fintegration providers.\n\n## Smoke against an existing service\n\nFrom the repository root, invoke\n`bash pipeline\u002Fskills\u002Fplaywright_e2e\u002Fscripts\u002Frun_smoke.sh` for the readiness check\nfollowed by `chromium-anon` with one worker. The wrapper locates the checkout from\nits own path, so the caller's current directory does not select another checkout.\n\nSet `GNOSI_BASE_URL` to select an explicit HTTP(S) URL. Otherwise, like the\nPlaywright config, the wrapper chooses HTTPS on localhost:5173 when\n`frontend\u002Fcerts\u002Flocalhost.pem` exists, and HTTP on that port otherwise. An empty\noverride also uses this default. Vite has additional HTTPS overrides and cached\ncertificate state; specify the URL explicitly when the running server differs\nfrom config's file-existence default. No certificate contents are read.\n\nThe exact base URL is passed to Playwright. The readiness request uses its origin\nplus `\u002F`, matching smoke's `page.goto('\u002F')` even if the base URL includes a path\nor query. URLs containing credentials or whitespace are rejected. The request\nfollows at most five HTTP(S) redirects with a three-second total timeout, ignores\nuser curl configuration, and requires both curl success and a final HTTP 2xx.\nIt ignores certificate verification to match Playwright's\n`ignoreHTTPSErrors: true`; this is development compatibility, not TLS validation.\n\nUnavailable services, HTTP errors, unresolved redirects and invalid URLs exit 2\nwithout running tests. `STRICT` is obsolete: unset, `0` and `1` all fail on an\nunavailable frontend. Once tests start, the wrapper returns pnpm\u002FPlaywright's\nexit status unchanged. Neither wrapper nor config starts a service or falls back\nto another port. Fix the selected service separately; do not auto-spawn one.\n\nThe root command `pnpm test:e2e:smoke` runs the E2E package directly, not this\nwrapper. CI uses that root command. There is no repository-managed pre-push\nhook here that guarantees the wrapper runs; do not claim hook enforcement.\n\n## Projects and outputs\n\n| Project | Tests under `tests\u002Fe2e\u002Ftests\u002F` | Setup dependency |\n| --- | --- | --- |\n| `setup` | Files matching `*.setup.ts` | None; writes `.auth\u002Fstate.json` |\n| `chromium-anon` | `anon\u002F` | None; anonymous shell smoke |\n| `chromium-auth` | `e2e\u002F` | `setup`; uses saved storage state |\n| `accessibility` | `accessibility\u002F` | `setup`; axe and keyboard\u002Ffocus assertions |\n| `visual` | `visual\u002F` | `setup`; current regression spec runs only on macOS |\n\nRoot commands are `pnpm test:e2e`, `pnpm test:e2e:smoke`,\n`pnpm test:e2e:a11y` and `pnpm test:e2e:ui`. For an individual project, run\n`pnpm exec playwright test --project=PROJECT` from `tests\u002Fe2e`.\n\nConfig uses two workers locally and one in CI, with zero local retries and two\nCI retries. Smoke's package command and wrapper explicitly select one worker.\nRun only one suite at a time per checkout: reports, storage state and\n`test-results\u002F` are shared. Judge your own process exit status and report;\n`.last-run.json` can belong to another run. Config writes HTML and list reports,\ncaptures failure screenshots, retains failure videos, and traces the first retry.\n\n## Authentication against a disposable account\n\nThe application has a [login screen](..\u002F..\u002F..\u002Ffrontend\u002Fsrc\u002Ffeatures\u002Fauth\u002FLoginPage.tsx).\n[App](..\u002F..\u002F..\u002Ffrontend\u002Fsrc\u002Fapp\u002FApp.tsx) shows it for unauthenticated users when\norganization mode or the backend's auth requirement is active.\n[AuthProvider](..\u002F..\u002F..\u002Ffrontend\u002Fsrc\u002Ffeatures\u002Fauth\u002Fcontext\u002FAuthProvider.tsx)\nloads `\u002Fapi\u002Fauth\u002Fme`, performs password login\u002Fregistration through the API,\nand persists returned user\u002Fworkspace context. The\n[backend auth routes](..\u002F..\u002F..\u002Fbackend\u002Fapi\u002Fauth_routes.py) issue an HttpOnly\n`gnosi_session` cookie. Request-context headers read stored values and retain\nlegacy fallback behavior; they are not a replacement for an authenticated session.\n\nSetup requires `GNOSI_TEST_EMAIL` and `GNOSI_TEST_PASSWORD` for a disposable\naccount provisioned separately. It logs in, requires the HttpOnly cookie and\nverifies the returned identity through `\u002Fapi\u002Fauth\u002Fme`. It never registers,\nclaims, resets or promotes an account. `GNOSI_TEST_WORKSPACE_ID` must match a\nreturned membership; without it, exactly one membership is required. The actual\nrole and identity are persisted with Catalan locale and optional\n`GNOSI_TEST_VAULT_ID`; headers do not grant access. Do not use personal credentials\nor disable authentication to satisfy setup.\n\n`GNOSI_TEST_STORAGE_STATE` overrides the ignored `tests\u002F.auth\u002Fstate.json` output;\nuse an absolute path under the disposable validation root for isolated runs.\nThe writer refuses symlink destinations and restricts the file to mode600 before\nwriting. Setup disables screenshots, video and tracing and authenticates before\nthe test-step recorder, sanitizing transport failures. Unset `DEBUG`\u002F`PWDEBUG`;\ndo not enable authentication diagnostics that can expose cookies or passwords.\n\nRun `pnpm test:e2e:contracts` for offline authentication, JSON and API-route\ncontracts plus strict typing of every active E2E TypeScript spec and support file;\nCI runs this without credentials. The focused `typecheck:auth` alias remains\navailable. These tests do not\nreplace actual setup and browser acceptance. Some feature specs mock auth:\ntheir project name alone does not prove login coverage. Anonymous smoke can see\nthe login screen rather than the authenticated application shell.\n\n## Visual baselines and explicit Linux generation\n\nThe current regression spec explicitly skips every platform except Darwin. It\nchecks home, vault, calendar and contacts at desktop and mobile sizes. Baselines\nlive in `tests\u002Fe2e\u002Ftests\u002Fvisual\u002Fregression.spec.ts-snapshots\u002F` as\n`\u003Croute>-\u003Cviewport>-visual-darwin.png`. The spec sets English\u002Flight theme and masks\ndynamic areas; config disables animations and allows a 0.02 pixel-difference ratio.\nUpdate macOS baselines only for reviewed intentional UI changes, using the\n`visual` project with `--update-snapshots` in the chosen test environment.\n\nLinux snapshots are not consumed by the shared visual spec or CI, and there is\nno `e2e-update-baselines.yml` workflow. To generate Linux candidates deliberately,\nset `GNOSI_PLAYWRIGHT_IMAGE` to a trusted, already prepared local image with Bash,\ncurl, standard file utilities, Node 22.22.2, pnpm 11.19.0 and Linux Chromium matching\nthe Playwright version in the root lock. An arbitrary official Playwright image\ndoes not guarantee the required Node\u002Fpnpm versions. The wrapper checks versions,\nuses `--pull=never`, and never builds images or downloads browsers. Image\npreparation is a separate authorized operation; missing\u002Fmismatched tooling fails.\n\nSet `GNOSI_BASE_URL` explicitly to the existing frontend URL reachable from that\ncontainer, for example `https:\u002F\u002Fhost.docker.internal:5173`. There is no default,\nhost-local probe or automatic scheme\u002Fport substitution. The container performs\nthe same bounded final-2xx readiness check and development TLS policy as smoke.\nIt receives only that URL, its derived probe origin, explicitly supplied test\ncredentials\u002Fselectors and fixed CI\u002Ftool settings. Test credentials are forwarded\nby environment key name, never embedded in Docker command arguments. Unrelated\nhost credentials and saved sessions are not forwarded.\n\nRun the wrapper with `--update-snapshots --output-dir \u002Fabsolute\u002Fnew-candidates-directory`.\nBoth flags are required. The output parent must exist, the new directory must\nbe outside the checkout and dependency directories, and existing output is never\noverwritten. This explicitly authorizes dependency installation and candidate\ngeneration, not a baseline update in source. Do not invoke it as an automatic\nretry or to silence a failing visual comparison.\n\nThe wrapper copies only root manifests\u002Flocks, the three workspace package\nmanifests, the reviewed patch, toolchain check, Playwright config, auth setup,\nits two production support modules and the\nvisual spec into a temporary staging directory. It rejects symlink inputs and\ndoes not copy host `node_modules`, certificates, `.env`, `.npmrc`, storage state,\nvaults or existing baselines. Only that staging copy is mounted read-only. The\ncontainer copies it into its own temporary workspace and installs from the root\nwith `pnpm install --frozen-lockfile --ignore-scripts`. Lifecycle scripts are\nunneeded for this E2E-only workspace and would otherwise trigger desktop builds.\nIt runs the toolchain check and verifies lock\u002Fworkspace bytes remain unchanged.\n\nGeneration explicitly removes the known Darwin-only skip statement from the\ntemporary visual spec; it fails if that statement has changed or is not unique.\nThe shared spec is untouched. It runs `visual` plus its setup dependency, with\nsnapshot updates, one worker and zero retries. Setup requires a real login on the\nselected disposable backend; its session output stays inside the container.\nMissing test credentials fail before Docker starts. Never weaken authentication\nto obtain snapshots.\n\nOn success, it verifies all eight expected `\u003Croute>-\u003Cviewport>-visual-linux.png`\nfiles are regular non-symlink PNGs, copies only those names to temporary export\nstorage, and checks them again before returning candidates to the requested new\ndirectory. Extra files, reports, auth state and dependencies are not exported.\nNo source snapshots are overwritten. Playwright\u002Finstall\u002Fcontainer failures\nremain nonzero, and even exit 0 with missing snapshots fails. Host staging is\nremoved on exit; the container uses `--rm`. Review the images before any separate\ndecision to adopt Linux baselines; generating them does not establish CI parity.\n\nThe previous unsafe source-mount implementation is replaced, not retired with\nan error-only stub. Historical preservation and any future deletion belong to\nthe integration owner; do not remove host dependencies or older snapshots.\n\n## Current CI and validation boundaries\n\nThe canonical workflow runs on pull requests and pushes to main, without the old\nfrontend path filter. Its Ubuntu `native-smoke` job installs the frozen root\npnpm\u002Fuv workspaces and Chromium, starts native backend and Vite services, checks\ntheir readiness, then runs anonymous smoke with\n`GNOSI_BASE_URL=http:\u002F\u002F127.0.0.1:5173`. It does not shard E2E, run visual comparisons,\nserve a production preview, or upload Playwright report artifacts. The separate\nDocker job validates\u002Fbuilds application images; it is not a visual baseline job.\n\nKeep explicit keyboard, focus, dialog and live-region checks alongside axe; a\nzero-violation axe result does not prove those interactions. Use visible,\nlocale-aware selectors and isolate live provider calls in feature tests.\n\nFor wrapper maintenance, run `pipeline\u002Ftests\u002Ftest_e2e_wrappers.py` with the existing\nPython environment, strict mypy on that file, Ruff and `bash -n` on both wrappers.\nThe tests use executable doubles and disposable directories, not real browsers,\ncontainers, services, installs or credentials. They establish wrapper contracts\nonly; they do not certify application E2E or cross-platform visual acceptance.\n\n## Failure lessons\n\n- Note: do not match API fixtures with a glob such as `**\u002Fapi\u002Fintegrations**`;\n  Vite's `\u002Fsrc\u002Fshared\u002Fapi\u002Fintegrations.ts` also matches, replacing source code\n  with JSON and leaving a blank page. Match the exact URL pathname and test\n  rejection of source-module paths as well as unrelated API operations.\n\n- Note: do not return success when a service is unavailable, because callers\n  then accept a smoke suite that never ran. Fail before invoking Playwright.\n- Note: do not accept a redirect status or ignore curl's exit code, because a\n  redirect can end at an error and a transfer can fail after reporting 200.\n  Require a completed request and final 2xx instead.\n- Note: do not infer baseline generation from Playwright exit 0, because skipped\n  visual tests also succeed. Confirm supported platforms and intended outputs.\n- Note: do not install dependencies into a writable source mount, because that\n  can replace host dependencies with Linux binaries. Stage reviewed files and\n  install in the disposable container workspace instead.\n- Note: do not seed an invented user or admin role, because browser storage does\n  not authenticate a session. Use login, a verified cookie and actual membership.\n- Note: disabling traces alone does not stop raw API errors entering test reports.\n  Authenticate before the step recorder and return sanitized diagnostic messages.\n- Note: chat streaming rewrites `\u002Fapi\u002Fchat` to\n  `\u002Fapi\u002Fv1\u002Fvaults\u002F{slug}\u002Fai\u002Fchat` after vault selection. Match both exact endpoint\n  forms in provider doubles; do not let a legacy-only interceptor fall through\n  to a backend or broadly mock session\u002Freplay requests. Dashboard requests default\n  to the configured browser origin; any `GNOSI_API_BASE` override must also point\n  at the disposable instance, never a personal service.\n- Note: moving the E2E directory must not rewrite fixture IDs or HTTP paths.\n  Keep notebook IDs and endpoint matchers consistent, and verify visible controls\n  against the current product plus its pre-refactor source before changing a\n  stale assertion. A green setup-only typecheck does not cover feature specs.\n","# Playwright E2E\n\nUse the existing Node 22.22.2 and pnpm 11.19.0 workspace toolchain. Dependency\nprovisioning, when separately authorized, uses the repository root frozen\n`pnpm-lock.yaml` and `pnpm-workspace.yaml`; do not install from `tests\u002Fe2e` or\nregenerate locks. The smoke wrapper provisions nothing. The Linux generator\ninstalls dependencies only in its disposable container workspace; neither wrapper\ninstalls browsers or changes host dependencies.\n\n## Sources of truth\n\n- [Playwright configuration](..\u002F..\u002F..\u002Ftests\u002Fe2e\u002Fplaywright.config.ts): projects,\n  URLs, certificate policy, retries and reporters.\n- [Root commands](..\u002F..\u002F..\u002Fpackage.json) and [E2E commands](..\u002F..\u002F..\u002Ftests\u002Fe2e\u002Fpackage.json).\n- [CI](..\u002F..\u002F..\u002F.github\u002Fworkflows\u002Fci.yml): the current native smoke job.\n- [Authentication fixture](..\u002F..\u002F..\u002Ftests\u002Fe2e\u002Ftests\u002Fsetup\u002Fauth.setup.ts) and\n  [visual spec](..\u002F..\u002F..\u002Ftests\u002Fe2e\u002Ftests\u002Fvisual\u002Fregression.spec.ts).\n\nPaths below are relative to the repository root unless stated otherwise. Run\nagainst an explicitly chosen disposable test environment. A full feature suite\ncan write application data; a working frontend is not permission to test against\npersonal vaults or to call live AI\u002Fintegration providers.\n\n## Smoke against an existing service\n\nFrom the repository root, invoke\n`bash pipeline\u002Fskills\u002Fplaywright_e2e\u002Fscripts\u002Frun_smoke.sh` for the readiness check\nfollowed by `chromium-anon` with one worker. The wrapper locates the checkout from\nits own path, so the caller's current directory does not select another checkout.\n\nSet `GNOSI_BASE_URL` to select an explicit HTTP(S) URL. Otherwise, like the\nPlaywright config, the wrapper chooses HTTPS on localhost:5173 when\n`frontend\u002Fcerts\u002Flocalhost.pem` exists, and HTTP on that port otherwise. An empty\noverride also uses this default. Vite has additional HTTPS overrides and cached\ncertificate state; specify the URL explicitly when the running server differs\nfrom config's file-existence default. No certificate contents are read.\n\nThe exact base URL is passed to Playwright. The readiness request uses its origin\nplus `\u002F`, matching smoke's `page.goto('\u002F')` even if the base URL includes a path\nor query. URLs containing credentials or whitespace are rejected. The request\nfollows at most five HTTP(S) redirects with a three-second total timeout, ignores\nuser curl configuration, and requires both curl success and a final HTTP 2xx.\nIt ignores certificate verification to match Playwright's\n`ignoreHTTPSErrors: true`; this is development compatibility, not TLS validation.\n\nUnavailable services, HTTP errors, unresolved redirects and invalid URLs exit 2\nwithout running tests. `STRICT` is obsolete: unset, `0` and `1` all fail on an\nunavailable frontend. Once tests start, the wrapper returns pnpm\u002FPlaywright's\nexit status unchanged. Neither wrapper nor config starts a service or falls back\nto another port. Fix the selected service separately; do not auto-spawn one.\n\nThe root command `pnpm test:e2e:smoke` runs the E2E package directly, not this\nwrapper. CI uses that root command. There is no repository-managed pre-push\nhook here that guarantees the wrapper runs; do not claim hook enforcement.\n\n## Projects and outputs\n\n| Project | Tests under `tests\u002Fe2e\u002Ftests\u002F` | Setup dependency |\n| --- | --- | --- |\n| `setup` | Files matching `*.setup.ts` | None; writes `.auth\u002Fstate.json` |\n| `chromium-anon` | `anon\u002F` | None; anonymous shell smoke |\n| `chromium-auth` | `e2e\u002F` | `setup`; uses saved storage state |\n| `accessibility` | `accessibility\u002F` | `setup`; axe and keyboard\u002Ffocus assertions |\n| `visual` | `visual\u002F` | `setup`; current regression spec runs only on macOS |\n\nRoot commands are `pnpm test:e2e`, `pnpm test:e2e:smoke`,\n`pnpm test:e2e:a11y` and `pnpm test:e2e:ui`. For an individual project, run\n`pnpm exec playwright test --project=PROJECT` from `tests\u002Fe2e`.\n\nConfig uses two workers locally and one in CI, with zero local retries and two\nCI retries. Smoke's package command and wrapper explicitly select one worker.\nRun only one suite at a time per checkout: reports, storage state and\n`test-results\u002F` are shared. Judge your own process exit status and report;\n`.last-run.json` can belong to another run. Config writes HTML and list reports,\ncaptures failure screenshots, retains failure videos, and traces the first retry.\n\n## Authentication against a disposable account\n\nThe application has a [login screen](..\u002F..\u002F..\u002Ffrontend\u002Fsrc\u002Ffeatures\u002Fauth\u002FLoginPage.tsx).\n[App](..\u002F..\u002F..\u002Ffrontend\u002Fsrc\u002Fapp\u002FApp.tsx) shows it for unauthenticated users when\norganization mode or the backend's auth requirement is active.\n[AuthProvider](..\u002F..\u002F..\u002Ffrontend\u002Fsrc\u002Ffeatures\u002Fauth\u002Fcontext\u002FAuthProvider.tsx)\nloads `\u002Fapi\u002Fauth\u002Fme`, performs password login\u002Fregistration through the API,\nand persists returned user\u002Fworkspace context. The\n[backend auth routes](..\u002F..\u002F..\u002Fbackend\u002Fapi\u002Fauth_routes.py) issue an HttpOnly\n`gnosi_session` cookie. Request-context headers read stored values and retain\nlegacy fallback behavior; they are not a replacement for an authenticated session.\n\nSetup requires `GNOSI_TEST_EMAIL` and `GNOSI_TEST_PASSWORD` for a disposable\naccount provisioned separately. It logs in, requires the HttpOnly cookie and\nverifies the returned identity through `\u002Fapi\u002Fauth\u002Fme`. It never registers,\nclaims, resets or promotes an account. `GNOSI_TEST_WORKSPACE_ID` must match a\nreturned membership; without it, exactly one membership is required. The actual\nrole and identity are persisted with Catalan locale and optional\n`GNOSI_TEST_VAULT_ID`; headers do not grant access. Do not use personal credentials\nor disable authentication to satisfy setup.\n\n`GNOSI_TEST_STORAGE_STATE` overrides the ignored `tests\u002F.auth\u002Fstate.json` output;\nuse an absolute path under the disposable validation root for isolated runs.\nThe writer refuses symlink destinations and restricts the file to mode600 before\nwriting. Setup disables screenshots, video and tracing and authenticates before\nthe test-step recorder, sanitizing transport failures. Unset `DEBUG`\u002F`PWDEBUG`;\ndo not enable authentication diagnostics that can expose cookies or passwords.\n\nRun `pnpm test:e2e:contracts` for offline authentication, JSON and API-route\ncontracts plus strict typing of every active E2E TypeScript spec and support file;\nCI runs this without credentials. The focused `typecheck:auth` alias remains\navailable. These tests do not\nreplace actual setup and browser acceptance. Some feature specs mock auth:\ntheir project name alone does not prove login coverage. Anonymous smoke can see\nthe login screen rather than the authenticated application shell.\n\n## Visual baselines and explicit Linux generation\n\nThe current regression spec explicitly skips every platform except Darwin. It\nchecks home, vault, calendar and contacts at desktop and mobile sizes. Baselines\nlive in `tests\u002Fe2e\u002Ftests\u002Fvisual\u002Fregression.spec.ts-snapshots\u002F` as\n`\u003Croute>-\u003Cviewport>-visual-darwin.png`. The spec sets English\u002Flight theme and masks\ndynamic areas; config disables animations and allows a 0.02 pixel-difference ratio.\nUpdate macOS baselines only for reviewed intentional UI changes, using the\n`visual` project with `--update-snapshots` in the chosen test environment.\n\nLinux snapshots are not consumed by the shared visual spec or CI, and there is\nno `e2e-update-baselines.yml` workflow. To generate Linux candidates deliberately,\nset `GNOSI_PLAYWRIGHT_IMAGE` to a trusted, already prepared local image with Bash,\ncurl, standard file utilities, Node 22.22.2, pnpm 11.19.0 and Linux Chromium matching\nthe Playwright version in the root lock. An arbitrary official Playwright image\ndoes not guarantee the required Node\u002Fpnpm versions. The wrapper checks versions,\nuses `--pull=never`, and never builds images or downloads browsers. Image\npreparation is a separate authorized operation; missing\u002Fmismatched tooling fails.\n\nSet `GNOSI_BASE_URL` explicitly to the existing frontend URL reachable from that\ncontainer, for example `https:\u002F\u002Fhost.docker.internal:5173`. There is no default,\nhost-local probe or automatic scheme\u002Fport substitution. The container performs\nthe same bounded final-2xx readiness check and development TLS policy as smoke.\nIt receives only that URL, its derived probe origin, explicitly supplied test\ncredentials\u002Fselectors and fixed CI\u002Ftool settings. Test credentials are forwarded\nby environment key name, never embedded in Docker command arguments. Unrelated\nhost credentials and saved sessions are not forwarded.\n\nRun the wrapper with `--update-snapshots --output-dir \u002Fabsolute\u002Fnew-candidates-directory`.\nBoth flags are required. The output parent must exist, the new directory must\nbe outside the checkout and dependency directories, and existing output is never\noverwritten. This explicitly authorizes dependency installation and candidate\ngeneration, not a baseline update in source. Do not invoke it as an automatic\nretry or to silence a failing visual comparison.\n\nThe wrapper copies only root manifests\u002Flocks, the three workspace package\nmanifests, the reviewed patch, toolchain check, Playwright config, auth setup,\nits two production support modules and the\nvisual spec into a temporary staging directory. It rejects symlink inputs and\ndoes not copy host `node_modules`, certificates, `.env`, `.npmrc`, storage state,\nvaults or existing baselines. Only that staging copy is mounted read-only. The\ncontainer copies it into its own temporary workspace and installs from the root\nwith `pnpm install --frozen-lockfile --ignore-scripts`. Lifecycle scripts are\nunneeded for this E2E-only workspace and would otherwise trigger desktop builds.\nIt runs the toolchain check and verifies lock\u002Fworkspace bytes remain unchanged.\n\nGeneration explicitly removes the known Darwin-only skip statement from the\ntemporary visual spec; it fails if that statement has changed or is not unique.\nThe shared spec is untouched. It runs `visual` plus its setup dependency, with\nsnapshot updates, one worker and zero retries. Setup requires a real login on the\nselected disposable backend; its session output stays inside the container.\nMissing test credentials fail before Docker starts. Never weaken authentication\nto obtain snapshots.\n\nOn success, it verifies all eight expected `\u003Croute>-\u003Cviewport>-visual-linux.png`\nfiles are regular non-symlink PNGs, copies only those names to temporary export\nstorage, and checks them again before returning candidates to the requested new\ndirectory. Extra files, reports, auth state and dependencies are not exported.\nNo source snapshots are overwritten. Playwright\u002Finstall\u002Fcontainer failures\nremain nonzero, and even exit 0 with missing snapshots fails. Host staging is\nremoved on exit; the container uses `--rm`. Review the images before any separate\ndecision to adopt Linux baselines; generating them does not establish CI parity.\n\nThe previous unsafe source-mount implementation is replaced, not retired with\nan error-only stub. Historical preservation and any future deletion belong to\nthe integration owner; do not remove host dependencies or older snapshots.\n\n## Current CI and validation boundaries\n\nThe canonical workflow runs on pull requests and pushes to main, without the old\nfrontend path filter. Its Ubuntu `native-smoke` job installs the frozen root\npnpm\u002Fuv workspaces and Chromium, starts native backend and Vite services, checks\ntheir readiness, then runs anonymous smoke with\n`GNOSI_BASE_URL=http:\u002F\u002F127.0.0.1:5173`. It does not shard E2E, run visual comparisons,\nserve a production preview, or upload Playwright report artifacts. The separate\nDocker job validates\u002Fbuilds application images; it is not a visual baseline job.\n\nKeep explicit keyboard, focus, dialog and live-region checks alongside axe; a\nzero-violation axe result does not prove those interactions. Use visible,\nlocale-aware selectors and isolate live provider calls in feature tests.\n\nFor wrapper maintenance, run `pipeline\u002Ftests\u002Ftest_e2e_wrappers.py` with the existing\nPython environment, strict mypy on that file, Ruff and `bash -n` on both wrappers.\nThe tests use executable doubles and disposable directories, not real browsers,\ncontainers, services, installs or credentials. They establish wrapper contracts\nonly; they do not certify application E2E or cross-platform visual acceptance.\n\n## Failure lessons\n\n- Note: do not match API fixtures with a glob such as `**\u002Fapi\u002Fintegrations**`;\n  Vite's `\u002Fsrc\u002Fshared\u002Fapi\u002Fintegrations.ts` also matches, replacing source code\n  with JSON and leaving a blank page. Match the exact URL pathname and test\n  rejection of source-module paths as well as unrelated API operations.\n\n- Note: do not return success when a service is unavailable, because callers\n  then accept a smoke suite that never ran. Fail before invoking Playwright.\n- Note: do not accept a redirect status or ignore curl's exit code, because a\n  redirect can end at an error and a transfer can fail after reporting 200.\n  Require a completed request and final 2xx instead.\n- Note: do not infer baseline generation from Playwright exit 0, because skipped\n  visual tests also succeed. Confirm supported platforms and intended outputs.\n- Note: do not install dependencies into a writable source mount, because that\n  can replace host dependencies with Linux binaries. Stage reviewed files and\n  install in the disposable container workspace instead.\n- Note: do not seed an invented user or admin role, because browser storage does\n  not authenticate a session. Use login, a verified cookie and actual membership.\n- Note: disabling traces alone does not stop raw API errors entering test reports.\n  Authenticate before the step recorder and return sanitized diagnostic messages.\n- Note: chat streaming rewrites `\u002Fapi\u002Fchat` to\n  `\u002Fapi\u002Fv1\u002Fvaults\u002F{slug}\u002Fai\u002Fchat` after vault selection. Match both exact endpoint\n  forms in provider doubles; do not let a legacy-only interceptor fall through\n  to a backend or broadly mock session\u002Freplay requests. Dashboard requests default\n  to the configured browser origin; any `GNOSI_API_BASE` override must also point\n  at the disposable instance, never a personal service.\n- Note: moving the E2E directory must not rewrite fixture IDs or HTTP paths.\n  Keep notebook IDs and endpoint matchers consistent, and verify visible controls\n  against the current product plus its pre-refactor source before changing a\n  stale assertion. A green setup-only typecheck does not cover feature specs.\n",{"name":5,"description":7},"main","ddf5fc580ae6656e98e3222889a9c49181664a45","pipeline\u002Fskills\u002Fplaywright_e2e",0,"https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi","https:\u002F\u002Fgnosi.temenosismael.org","https:\u002F\u002Fgithub.com\u002Fismigar","https:\u002F\u002Ftemenosismael.org","💻 & 📚 Computer scientist & philosopher. Exploring the intersection of tech & philosophy for social change & the common good.","2026-11-15 01:43:32",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add ismigar\u002FGnosi --skill playwright-e2e",{"tool":51,"command":52},"bunx","bunx skills add ismigar\u002FGnosi --skill playwright-e2e",{"tool":54,"command":55},"pnpm","pnpm dlx skills add ismigar\u002FGnosi --skill playwright-e2e","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fplaywright_e2e\u002FSKILL.md",true,[59,65],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Fgenerate_linux_baselines.sh","SCRIPT","脚本",8159,"https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fplaywright_e2e\u002Fscripts\u002Fgenerate_linux_baselines.sh",{"path":66,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Frun_smoke.sh",2326,"https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fplaywright_e2e\u002Fscripts\u002Frun_smoke.sh",[70,90,112,134,149,162],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":30},"01M6K1XMNQTR2Z9F0HV40M9CV6","zotero-sync-compatibility","Preserve the historical Zotero reference-table configuration path after Gnosi replaced bidirectional Zotero synchronization with its native reference manager.","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fzotero_sync\u002FSKILL.md",[],[77,78,79,80,81,82,83,84,85,86,87,88,89],"sync","Zotero","compatibility","zotero sync compatibility","preserve","path","manager","with","native","configuration","reference","synchronization","table",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":30},"01M6K1XE33SSY5RXR5D4S8Y4RV","zotero-schema","Generate Gnosi's Python and TypeScript item-type constants from the repository-pinned Zotero schema, or perform an explicitly requested pinned schema refresh. Use for mapping or generated-constant maintenance, not runtime downloads.","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fzotero_schema\u002FSKILL.md",[],[78,97,98,23,99,100,101,102,103,104,105,106,107,108,109,110,111],"schema","zotero schema","python","typescript","constants","repository","for","mapping","type","runtime","maintenance","use","generated","refresh","downloads",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":30},"01M6K1X9M6AKK8JTQJA9G37ZRP","vault-core","Preserve Gnosi vault identifiers, internal links and active-vault context during file or metadata changes. Use for vault integrity work, not blanket normalization or cleanup of user documents.","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Fvault_core\u002FSKILL.md",[],[119,120,121,122,81,123,103,124,125,108,126,127,128,129,130,131,132,133],"vault core","core","vault","integrity","changes","links","active","user","context","work","normalization","metadata","cleanup","documents","file",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":30},"01M6K1X4TE0YP62D789CJWZ4YY","translate-row","Translate configured table-row fields and Markdown into language children, updating existing translations in place. Use for the explicit translate-row action or maintenance of its provider adapters.","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Ftranslate_row\u002FSKILL.md",[],[141,142,143,107,29,103,144,145,125,146,147,108,89,148],"translate","translate row","fields","action","Adapters","language","provider","markdown",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":30},"01M6K1X0G5C2E91RS71NMX0GHG","translate-page","Translate a Vault page title and Markdown body into language children, updating existing translations and preserving Gnosi directives. Use for the explicit translate-page action or Markdown segmentation maintenance.","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Ftranslate_page\u002FSKILL.md",[],[156,141,157,107,108,148,121,158,146,159,160,161,29,103,144,125],"page","translate page","segmentation","body","title","directives",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":30},"01M6K1WSRJTN93ZY4VPNZ2BJW3","technical-documentation","Generate and validate Gnosi's engineering portal from reviewed guides and deterministic source catalogs. Use for source-traceable documentation updates and pre-PR gates; never translate generated catalogs with a model.","https:\u002F\u002Fgithub.com\u002Fismigar\u002FGnosi\u002Fblob\u002Fmain\u002Fpipeline\u002Fskills\u002Ftechnical_documentation\u002FSKILL.md",[],[169,170,171,172,173,103,174,84,175,176,177,108,109,178,179,23,180,181,141],"technical","technical documentation","documentation","gates","source","updates","guides","deterministic","never","model","engineering","pr","validate"]