Skip to content

test: prove native Operations narrow-viewport horizontal access - #292

Merged
pranems merged 1 commit into
masterfrom
vprane/scimserver/containers-native-narrow-viewport-20261125
Nov 25, 2026
Merged

pranems merged 1 commit into
masterfrom
vprane/scimserver/containers-native-narrow-viewport-20261125

Conversation

@pranems

@pranems pranems commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Summary

Prove existing Operations horizontal access through real browser input at 1440px and 900px, without changing production CSS.

The existing results region is 561px wide at 900px. Horizontal wheel input
naturally scrolls the 640px table by 79px, moving the trailing cell right
edge from 930px to 851px inside the clipped visible region. Both All-users
and All-groups pass. The spec measures every header/cell/action against the
viewport and clipping ancestors, verifies real inner overflow, checks ID and
timestamp clipboard copies, and waits for exact destination resource data.
Two deliberately inaccessible fixtures are rejected by the same assertion.

This is a test/documentation-only outcome on normally merged base a72f95b
(PR #291), product 0.55.70. Production API/web/Dockerfile/manifests and all
three locks remain equivalent to the qualified nonshipping f8 image.

Linked Defect / Plan Reference

  • DELIVERY_PLAN.md defect ID: N/A - remaining native Docker Desktop replacement usability qualification, not a new product defect.
  • Audit doc reference: docs/CONTAINER_RUNTIME_REMOVAL_READINESS.md, "Native narrow-viewport access follow-up, 2026-11-25".
  • ADR (if applicable): N/A - preserve the existing scrolling-panel design.

TDD Process

  • RED test written first; observed it fail for the expected reason. N/A for production change: no production bug or implementation change. Two explicit negative fixtures reject inaccessible clipping; earlier harness failures are retained, not treated as production RED.
  • GREEN: minimal implementation that turns the test green. Test-only outcome: real unchanged production pages pass in both owned native backends.
  • Refactor (if any) keeps the test green. Fixture administrative/SCIM identity and destination-response handling were corrected before the final two-mode runs.
  • Permanent regression guard added (where applicable - see existing patterns in api/src/security/). Six permanent Playwright cases use measured outcomes, including two negative controls.

Feature / Bug-Fix Commit Checklist (standing rule)

Every behavioral change must include all that apply. Tick or strike through with N/A + reason.

  • Unit Tests - service-level and controller-level coverage of the new behavior. N/A: no service/controller behavior changes; unchanged full API suites remain owned by the normal Fast hook.
  • E2E Tests - end-to-end spec under api/test/e2e/ exercising the feature through HTTP. N/A: no API behavior changes; six browser cases are added under web/e2e/.
  • Live Integration Tests - new section in scripts/live-test.ps1 runnable against local + Docker + Azure. N/A: no live API behavior change; actual scoped native InMemory and Compose Prisma browser proof was executed.
  • Feature Documentation - dedicated doc in docs/ with architecture, RFC references, Mermaid diagrams, test coverage. N/A for a new doc: update the existing runtime-removal readiness record with measurements, scope and approval limits.
  • INDEX.md Update - add the new doc reference to docs/INDEX.md. N/A: no new documentation file.
  • CHANGELOG.md Update - [Unreleased] entry with full test counts and feature summary. Added six-case scoped evidence; prior complete 353-pass corrected and original 352-pass/1-fail browser receipts remain separate.
  • Session & Context Updates - Session_starter.md and docs/CONTEXT_INSTRUCTIONS.md. Updated measurements and explicit local-only limits.
  • Version Management - bump api/package.json (and any other version refs) when behavior changed. N/A: production behavior/manifests/locks unchanged, version remains 0.55.70.
  • Response Contract Tests - API responses contain ONLY documented fields (key allowlist assertion at unit + E2E + live). N/A: response contracts unchanged.

Validation Output

Final scoped Playwright:
  Native InMemory: 6 passed, 0 failed, 0 skipped (19.9 seconds).
  Actual native Compose Prisma: 6 passed, 0 failed, 0 skipped (20.1 seconds).
  Eight positive browser request IDs match actual live SCIM log items and HTTP 200.
Strict new-spec TypeScript compile: exit 0.
Normal unchanged Fast pre-push: 29/29 gates PASS, exit 0, 749.4 seconds.
API unit: 220 suites / 6,274 tests pass.
API E2E: 120 suites / 2,519 tests pass; 4 suites / 45 tests skip under the existing InMemory configuration.
Production inputs and all three supplied lock SHA-256 values: unchanged.
Exact marked trial cleanup: PASS; original native identities 11 containers / 49 volumes / 6 networks.
Native owned listener checks: PASS.
Em-dash: added lines clean.
Pixel baseline changes: none.

Exact focused commands, run from web with E2E_TOKEN and
E2E_OAUTH_CLIENT_SECRET set only in the process using public owned test defaults:

$env:E2E_BASE_URL = 'http://127.0.0.1:52726'
$env:PLAYWRIGHT_JSON_OUTPUT_FILE = "$e\inmemory-final-v2-results.json"
node node_modules\@playwright\test\cli.js test operations-horizontal-access.spec.ts --reporter=line,json "--output=$e\inmemory-final-v2-output"

$env:E2E_BASE_URL = 'http://127.0.0.1:52727'
$env:PLAYWRIGHT_JSON_OUTPUT_FILE = "$e\prisma-final-v2-results.json"
node node_modules\@playwright\test\cli.js test operations-horizontal-access.spec.ts --reporter=line,json "--output=$e\prisma-final-v2-output"

node node_modules\typescript\bin\tsc --ignoreConfig --noEmit --strict --skipLibCheck --module ESNext --moduleResolution bundler --target ES2022 --types node e2e\operations-horizontal-access.spec.ts

Results are respectively 6 pass, 6 pass, exit 0. $e is the private receipt
directory outside the repository, retaining failed attempts and final
geometry/correlation receipts outside the repository.

Fresh-worktree preparation used separate immutable approved-proxy web/root
npm ci --no-audit --no-fund only after actual missing-module failures, and
pwsh -NoProfile -File scripts\build-standalone.ps1 -PrepareOnly after the
actual missing API TypeScript command. Preparation passed and did not start
a datasource. No dependency updates or local lock generation occurred.

The exact normal push was:

$env:PREPUSH_MODE = 'Fast'
git push --set-upstream origin 'HEAD:refs/heads/vprane/scimserver/containers-native-narrow-viewport-20261125'

Result: exit 0, exact head b5f0d405087727176932c89d99baa62c8ac5b437
pushed to the same task branch; 29 normal Fast gates passed. The hook ran
API build/lint, web TypeScript/build, documentation/supply-chain/runtime
contracts, unit and InMemory HTTP suites without changing gate definitions.
API E2E's existing configuration skips are reported above rather than
misrepresented as zero-skip evidence. The new scoped browser cases have zero
skips in both actual native modes.
No duplicate manual full suite, full new browser matrix, cloud browser
execution, performance qualification or deployment was performed.

Standing Rules Acknowledgment

  • No em-dash (Unicode U+2014) anywhere in the diff. Verified via Select-String -Pattern ([char]0x2014). Added diff lines also checked before commit.
  • No git commit --amend on history that has been pushed. Normal new commit only.
  • No new credentials, tokens, or secrets committed to source. Forbidden patterns regression spec at api/src/security/forbidden-source-patterns.spec.ts will catch known anti-patterns. Existing fixture token configuration is reused.
  • Migrations are additive-only (expand-contract for column changes). Migration linter at api/src/scripts/lint-migrations.ts enforces this. N/A: no migration changes.

Destructive Migration Override (skip if not applicable)

  • This PR contains a NEW destructive Prisma migration (DROP TABLE/COLUMN, ALTER COLUMN ... TYPE, RENAME, INSERT ... SELECT FROM). N/A: none.
  • I have set ALLOW_DESTRUCTIVE_MIGRATION=1 in the CI environment for this PR. N/A: not set or needed.
  • Justification (required if box above is ticked):
    N/A - no migrations or database contract changes.
    <!-- Why this destructive change is necessary, what the rollback path is, and which release window it ships in -->
    

Reviewer Hint

Diff areas worth special attention from the reviewer:

  • web/e2e/operations-horizontal-access.spec.ts: clipping-ancestor intersection,
    hit testing, natural wheel input rather than programmatic scrollLeft,
    real administrative row identity, all headers/cells/actions and two
    nested-clipping negative controls.
  • Existing readiness/session/context/changelog: preserve source/runtime
    equivalence and measured scope without calling the whole pipeline green.
  • Test/gate self-improvement: applied permanent natural-access and exact
    destination-data checks. Design disposition: accepted; the existing
    results panel already owns scrolling, so production abstraction/CSS
    changes would be speculative.

Approval limits: independent parent exact-diff review and normal merge are
still required. Docker Desktop and all original artifacts/backups are
untouched; the offline global bridge was not restarted. Identity preservation
is not fresh data-byte proof. Azure work remains blocked by the missing
approved existing ACR mirror. No cloud writes/login, deployment, production
or canary promotion, operator visual acceptance or Desktop removal is claimed.

Preserve intentional results-region scrolling. Add four measured real-browser positives and two inaccessible-clipping controls, with owned fixture cleanup, clipboard and destination-data assertions. Scoped InMemory and actual Compose Prisma each pass 6/6; strict new-spec compile passes. Production inputs, locks, pixel baselines and gates are unchanged. Self-improvement applied; design accepted because the existing panel already owns scrolling.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@pranems pranems left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parent exact-tip source review completed for all five changed files and the preserved repository PR template. No high-confidence correctness finding was identified. The test measures clipping-ancestor/viewport intersection and hit testing, uses natural wheel input instead of setting scrollLeft, checks every header/cell and existing row action, verifies clipboard values and actual destination HTTP/resource data, and rejects two deliberately inaccessible fixtures. Production CSS is correctly unchanged.

Independently authenticated all 186 sealed evidence files (zero hash/size mismatches), verified both final result inventories are 6 expected / 0 unexpected / 0 skipped / 0 flaky / 0 errors, and ran the exact new-spec strict TypeScript command successfully. No duplicate browser/runtime or full-suite run was performed. The five-file diff does not change protected application/image inputs or any lock. Owner records normal Fast 29/29 and exact owned cleanup with original 11/49/6 identities preserved, not fresh data-byte proof.

Existing exact-head CI is still being awaited; this comment is source review, not an independent GitHub approval or a CI/deployment acceptance claim. No Azure, directory, operator visual, performance or Desktop-removal acceptance is added. Test/gate improvement is applied through discriminating natural-access and destination-data assertions; design is accepted because the existing cohesive scrolling panel works without speculative production changes.

@pranems
pranems merged commit a27c948 into master Nov 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant