|
1 | | -# PR_26158_027 Testing Lane Execution Report |
| 1 | +# PR_26158_028 Testing Lane Execution Report |
2 | 2 |
|
3 | 3 | ## Lanes Run |
4 | 4 |
|
5 | 5 | | Lane | Command | Result | |
6 | 6 | | --- | --- | --- | |
7 | | -| Changed-file syntax | `node --check src/dev-runtime/server/mock-api-router.mjs`; `node --check src/dev-runtime/persistence/mock-db-store.js`; `node --check tests/playwright/tools/AdminDbViewer.spec.mjs`; `node --check tests/playwright/tools/LoginSessionMode.spec.mjs` | PASS | |
8 | | -| Local DB/API SQLite contract validation | Custom Node probe using `tests/helpers/playwrightRepoServer.mjs`, `node:sqlite`, and isolated `GAMEFOUNDRY_LOCAL_DB_PATH=tmp/local-db/pr_027_sqlite_contract.sqlite` | PASS | |
9 | | -| AdminDbViewer Playwright | `npx playwright test tests/playwright/tools/AdminDbViewer.spec.mjs` | PASS, 7/7 | |
| 7 | +| Changed-file syntax | `node --check assets/theme-v2/js/login-session.js`; `node --check tests/helpers/playwrightRepoServer.mjs`; `node --check tests/playwright/tools/LoginSessionMode.spec.mjs`; `node --check tests/playwright/tools/ToolboxRoutePages.spec.mjs` | PASS | |
10 | 8 | | LoginSessionMode Playwright | `npx playwright test tests/playwright/tools/LoginSessionMode.spec.mjs` | PASS, 5/5 | |
11 | | -| Static import boundary | Focused `rg` checks for forbidden browser imports of `node:sqlite`, `DatabaseSync`, `LocalDbAdapter`, `src/dev-runtime`, and mock repositories | PASS | |
12 | | -| Active source/test JSON-backed Local DB wording check | Focused `rg` for `JSON storage`, `server local JSON`, `local JSON`, and `.json` in active Local DB source/tests | PASS; only normal `response.json()` calls matched | |
| 9 | +| Toolbox route/page smoke | `npx playwright test tests/playwright/tools/ToolboxRoutePages.spec.mjs` | PASS, 1/1 after correcting a stale expected H1 in the new smoke spec | |
| 10 | +| AdminDbViewer Playwright | `npx playwright test tests/playwright/tools/AdminDbViewer.spec.mjs` | PASS, 7/7 | |
13 | 11 | | Changed-file/static validation | `git diff --check` | PASS, with Git line-ending warnings only | |
14 | 12 |
|
15 | | -## Local DB/API SQLite Contract Probe |
16 | | - |
17 | | -| Assertion | Result | |
18 | | -| --- | --- | |
19 | | -| Local login choices remain exactly `Local Mem` and `Local DB`. | PASS | |
20 | | -| Local DB mode description names SQLite storage. | PASS | |
21 | | -| Local DB mode initializes SQLite storage through `/api/session/mode`. | PASS | |
22 | | -| Local DB resolves Admin through SQLite-backed users/roles/user_roles data. | PASS | |
23 | | -| `/api/mock-db/snapshot` reads SQLite-backed Local DB state. | PASS | |
24 | | -| Local DB snapshot includes schemas and empty tables. | PASS | |
25 | | -| Guest is not stored in SQLite `users`. | PASS | |
26 | | -| Physical SQLite tables are initialized for `users`, `roles`, `user_roles`, `palette_colors`, `asset_library_items`, and `project_journey_items`. | PASS | |
27 | | -| SQLite table columns include deterministic schema fields such as `key`, `createdAt`, and `updatedBy`. | PASS | |
28 | | -| SQLite-backed writes through `/api/dev/testing/mock-db-state` persist and appear in snapshots. | PASS | |
29 | | -| SQLite-backed data persists across server restart with the same DB file. | PASS | |
30 | | -| Disabled SQLite snapshot fails visibly with `Local DB adapter not configured`, `SQLite`, and `GAMEFOUNDRY_LOCAL_DB_DISABLE`. | PASS | |
31 | | -| Disabled SQLite write fails visibly with actionable diagnostic text. | PASS | |
32 | | - |
33 | | -## Playwright Coverage |
34 | | - |
35 | | -AdminDbViewer covers: |
| 13 | +## Validation Notes |
36 | 14 |
|
37 | | -- Existing Local Mem DB Viewer behavior. |
38 | | -- SQLite-backed Local DB read-only display. |
39 | | -- Local DB empty-table schema/header rendering. |
40 | | -- Local DB live adapter state rendering. |
41 | | -- Local DB unavailable diagnostic rendering. |
42 | | -- Absence of Local DB write controls. |
43 | | - |
44 | | -LoginSessionMode covers: |
45 | | - |
46 | | -- Local DB login mode copy updated to SQLite. |
47 | | -- Local DB session user selection through server API. |
48 | | -- Direct admin DB Viewer URL access in Local DB mode. |
49 | | - |
50 | | -`docs_build/dev/reports/playwright_v8_coverage_report.txt` was regenerated by the targeted Playwright runs. Node emitted the standard experimental warning for `node:sqlite`; validation passed. |
| 15 | +| Check | Evidence | Result | |
| 16 | +| --- | --- | --- | |
| 17 | +| Local Mem and Local DB mode controls are enabled on the login page. | `LoginSessionMode.spec.mjs` asserts both `[data-login-mode='local-mem']` and `[data-login-mode='local-db']` are enabled before and after selecting Local DB. | PASS | |
| 18 | +| Local DB remains selected when choosing a local user. | `LoginSessionMode.spec.mjs` asserts session mode remains `local-db` and persistence remains `Local DB` after selecting User 2. | PASS | |
| 19 | +| `/tools/.../index.html` route aliases render toolbox pages. | `ToolboxRoutePages.spec.mjs` opens `/tools/project-journey/index.html`, `/tools/colors/index.html`, and `/tools/assets/index.html` and verifies visible H1/main content with no failed requests. | PASS | |
| 20 | +| Local Mem behavior is preserved. | LoginSessionMode and AdminDbViewer Local Mem coverage passed. | PASS | |
| 21 | +| SQLite-backed Local DB behavior is preserved behind the server API boundary. | LoginSessionMode Local DB assertions and AdminDbViewer Local DB readonly/diagnostic tests passed. | PASS | |
| 22 | +| UAT/Prod are not exposed as local login choices. | LoginSessionMode asserts DEV, UAT, and Prod buttons are absent. | PASS | |
51 | 23 |
|
52 | 24 | ## Skipped Lanes |
53 | 25 |
|
54 | 26 | | Lane | Decision | Reason | |
55 | 27 | | --- | --- | --- | |
56 | | -| Full samples smoke | SKIP | No shared sample loader/framework or sample JSON changed. | |
57 | | -| Full Playwright suite | SKIP | Targeted SQLite contract, Admin DB Viewer, LoginSessionMode, and static import checks cover the changed surfaces. | |
| 28 | +| Full samples smoke | SKIP | No samples, shared sample loader, or sample framework files changed. | |
| 29 | +| Full Playwright suite | SKIP | The targeted LoginSessionMode, route smoke, AdminDbViewer, syntax, and static checks cover the changed surfaces. | |
0 commit comments