Compare commits

..

8 Commits

70 changed files with 13780 additions and 8 deletions
@@ -0,0 +1,21 @@
# PERF-BASE / PERF-12 static encoding measurement
Recorded 17 November, preserved and qualified 18 November 2026. Frozen source `eb2538772e1bfabbeb291e4a5efa177c79074de1`, Node24.19.0 Windows, Next16.4.6 static export, explicit API5302 build. This is an offline content-size/encoding baseline, not an application optimisation, current later-source export, deployed compression test or production readiness. The previous performance baseline used a different application source and is not a controlled before/after comparison.
| Frozen export group | Files | Raw bytes | Gzip6 bytes | Brotli5 bytes |
| --- | ---: | ---: | ---: | ---: |
| JavaScript | 58 | 3,674,509 | 1,089,362 | 1,015,470 |
| CSS | 2 | 3,958 | 1,189 | 1,073 |
| SVG | 4 | 28,397 | 6,971 | 6,404 |
| HTML | 3 | 32,504 | 8,339 | 7,486 |
| Root-declared scripts, deduplicated, including legacy | 7 | 582,094 | 178,820 | 169,211 |
All67 text assets were compressed three times in memory and decompressed with exact byte equality:402 roundtrip assertions passed. Native JSON retains each raw SHA256, encoded sizes and all three elapsed-time samples. Root-declared scripts exclude later dynamic imports; complete export inventory is not a route/network request budget. No source maps were emitted by this frozen build. Headers, TLS, cache state, transfer and on-device decompression are not measured.
The summed per-file median encoding costs were approximately84.9ms gzip6 and180.6ms Brotli5 on this warm-file Windows host. They are exploratory local CPU observations, not a batch-time median or server capacity result. Other development/browser work was active; there was no controlled idle-host/load experiment. These timings justify no production throughput/latency or cost claim. Encoded content sizes are deterministic for the recorded inputs/runtime; no live delivery savings are claimed.
The local desktop-linux Docker endpoint was confirmed to be the local Windows named pipe; a read-only version probe failed because that pipe was absent. No daemon/infrastructure repair, container/image operation or repeated unchanged failure was attempted. Runtime Nginx/static encoding, Accept-Encoding/Vary/cache and private-response boundaries remain unqualified. No gzip/Brotli configuration, CDN, topology, image, API middleware, dependency, file deletion or production change was made.
Next eligible runtime experiment requires an available authorised disposable Nginx/container lane. Compare public immutable assets first; retain HTML revalidation and private API/document isolation, one encoding layer, correct MIME/cache/Vary behavior and exact decode integrity. Brotli module presence and target CPU/storage cost must be proven rather than assumed. Keep PERF-12 PARTIAL and deployed configuration unchanged until that evidence exists. PERF-04 requested-icon and PERF-09 route-chunk concerns retain their own measurements and gates; this census does not qualify either.
[Source, producer and native receipts](evidence/SOURCE_RECEIPTS.json) preserve the exact frozen manifest and assert-bearing Node script without adding a runtime/CI runner. No new backend/MariaDB/browser/provider/model/hosted/native-device or production qualification.
@@ -0,0 +1,33 @@
{
"sourceCommit": "eb2538772e1bfabbeb291e4a5efa177c79074de1",
"sourceGitBlobSha256": {
"job-tracker-ui/package.json": "8b31e44c10b77b6d1e007af04c757c0577f12972ff3f6c7079bbc4c446a0d415",
"job-tracker-ui/package-lock.json": "ac90fbdc79e2e0f23d54748814b41a03f5dcaf8fd27291b3dcb73b2603a83e72",
"job-tracker-ui/next.config.js": "2bbcc9d6093d6f263114f4992fd9c77a6172f0602deb92bf7163823ba58b1757",
"job-tracker-ui/app/layout.tsx": "d2e460998e4182f11657089850f9144059f453ebd9c4d1fbcd3f6aee25449843"
},
"nativeReceipts": [
{
"path": "measure-static-encoding.mjs.txt",
"canonicalSha256": "b700120c790f4ec50f125ade040b82044ccbc79a5d0142885d7a34910762b682",
"rawSha256": "b700120c790f4ec50f125ade040b82044ccbc79a5d0142885d7a34910762b682",
"gzipSha256": "020bb4bc3445a426f8757b9268b8b3b62e1ddbc8d8961d8a35c511840c7cb7d5",
"nativeEncoding": "utf-8-sig"
},
{
"path": "static-encoding.json",
"canonicalSha256": "a5ba46dcad650f8de1bbadcb5f77331ed3f40fc05058f5c79d347471b654a25b",
"rawSha256": "a5ba46dcad650f8de1bbadcb5f77331ed3f40fc05058f5c79d347471b654a25b",
"gzipSha256": "941f8e1bb95196a1c3dd2341623a2f4fd7a79460395afab34562aba14712bcd9",
"nativeEncoding": "utf-8-sig"
},
{
"path": "static-encoding.txt",
"canonicalSha256": "8ae1d675b5874c82ddf4cc0e4a4e7351822f293953ec8338034d3cc3736fefa1",
"rawSha256": "1171e4f98ed0c9eac50f6b1f71c6f643e6e324c4c29aba6ac868e7d7a3717ccd",
"gzipSha256": "5efc6aaf111bfec3478589d5d6d5ced531623a40d41c07408f233b9be84053b7",
"nativeEncoding": "utf-16"
}
],
"scope": "Frozen offline export census/encoding only, not current runtime or deployed transfer"
}
@@ -0,0 +1,34 @@
import fs from 'node:fs';
import path from 'node:path';
import crypto from 'node:crypto';
import os from 'node:os';
import assert from 'node:assert/strict';
import { performance } from 'node:perf_hooks';
import { gzipSync, gunzipSync, brotliCompressSync, brotliDecompressSync, constants } from 'node:zlib';
const [exportPath, output] = process.argv.slice(2);
const root = path.resolve(exportPath);
const sha = bytes => crypto.createHash('sha256').update(bytes).digest('hex');
function walk(dir) { return fs.readdirSync(dir, { withFileTypes: true }).flatMap(e => e.isDirectory() ? walk(path.join(dir, e.name)) : [path.join(dir, e.name)]); }
const entries = walk(root).filter(name => /\.(?:js|css|html|svg)$/.test(name)).sort();
assert.ok(entries.length > 0);
const median = values => [...values].sort((a,b)=>a-b)[Math.floor(values.length/2)];
const files = entries.map(name => {
const raw = fs.readFileSync(name), relative = path.relative(root, name).replaceAll('\\', '/');
const gzipTimes = [], brotliTimes = [];
let gzip, brotli;
for (let repetition=0; repetition<3; repetition++) {
let start = performance.now(); gzip = gzipSync(raw, { level: 6 }); gzipTimes.push(performance.now()-start);
start = performance.now(); brotli = brotliCompressSync(raw, { params: { [constants.BROTLI_PARAM_QUALITY]: 5 } }); brotliTimes.push(performance.now()-start);
assert.deepEqual(gunzipSync(gzip), raw); assert.deepEqual(brotliDecompressSync(brotli), raw);
}
return { path: relative, sha256: sha(raw), rawBytes: raw.length, gzip6Bytes: gzip.length, brotli5Bytes: brotli.length, gzipMilliseconds: gzipTimes, brotliMilliseconds: brotliTimes, gzipMedianMilliseconds: median(gzipTimes), brotliMedianMilliseconds: median(brotliTimes) };
});
const sum = group => ({ files: group.length, rawBytes: group.reduce((n,x)=>n+x.rawBytes,0), gzip6Bytes: group.reduce((n,x)=>n+x.gzip6Bytes,0), brotli5Bytes: group.reduce((n,x)=>n+x.brotli5Bytes,0) });
const html = fs.readFileSync(path.join(root, 'index.html'), 'utf8');
const scriptPaths = [...new Set([...html.matchAll(/<script\b[^>]*\bsrc="([^"]+)"[^>]*>/g)].map(m=>m[1].split('?')[0].replace(/^\//,'')))];
assert.ok(scriptPaths.length > 0);
const indexScripts = files.filter(f=>scriptPaths.includes(f.path));
assert.equal(indexScripts.length, scriptPaths.length);
const report = { source: 'eb2538772e1bfabbeb291e4a5efa177c79074de1', environment: { node: process.version, platform: process.platform, architecture: process.arch, cpu: os.cpus()[0].model }, buildApiBase: 'http://localhost:5302/api', indexSha256: sha(Buffer.from(html)), repetitions: 3, summaries: { javascript: sum(files.filter(x=>x.path.endsWith('.js'))), css: sum(files.filter(x=>x.path.endsWith('.css'))), svg: sum(files.filter(x=>x.path.endsWith('.svg'))), html: sum(files.filter(x=>x.path.endsWith('.html'))), declaredIndexScripts: sum(indexScripts) }, sourceMaps: walk(root).filter(name=>name.endsWith('.map')).length, files, limits: ['Offline warm-file compression cost and content sizes only; excludes HTTP headers/TLS/network', 'No nginx/CDN/API compression configuration or production change', 'Complete export inventory is not a route request budget; root declared scripts exclude later dynamic imports', 'Three local repeats do not establish field latency, server throughput or deployed encoding'] };
fs.writeFileSync(output, JSON.stringify(report, null, 2)+'\n');
console.log(JSON.stringify({ summaries: report.summaries, sourceMaps: report.sourceMaps, verifiedRoundTrips: files.length * 3 * 2 }));
File diff suppressed because it is too large Load Diff
@@ -0,0 +1 @@
{"summaries":{"javascript":{"files":58,"rawBytes":3674509,"gzip6Bytes":1089362,"brotli5Bytes":1015470},"css":{"files":2,"rawBytes":3958,"gzip6Bytes":1189,"brotli5Bytes":1073},"svg":{"files":4,"rawBytes":28397,"gzip6Bytes":6971,"brotli5Bytes":6404},"html":{"files":3,"rawBytes":32504,"gzip6Bytes":8339,"brotli5Bytes":7486},"declaredIndexScripts":{"files":7,"rawBytes":582094,"gzip6Bytes":178820,"brotli5Bytes":169211}},"sourceMaps":0,"verifiedRoundTrips":402}
@@ -0,0 +1,23 @@
# Discovery to application: connected native boundary
18 November 2026. Test-only increment on existing `1db5f488` application/export/API, with pinned dependencies unchanged. The two new cases extend the existing `phase7-discovery.spec.ts` fixture and preserve its external-traffic guard. No provider, model or additional international source was activated.
## Verified journey
English/light/1440 desktop and Bokmål/dark/390 phone: discover a synthetic NAV vacancy, open its synthetic source advert, return to results, explicitly review its import preview, choose an existing company, create one actual tracked application, revisit it through the applications interface and verify its full workspace. Search, external advert HTML and import-preview responses are intercepted. Company setup, application creation (201), subsequent API reads, duplicate lookup and foreign-owner denial (404) execute against the isolated actual API and disposable SQLite database.
The application GET DTO does not expose canonical job provenance. A read-only SQLite query joins the linked job with both owner IDs constrained, proving retained source `nav` and country `NO`; the existing generated fixture-root/path guard and query-only connection prevent mutation. Career Profile and company data remain unchanged. Advert language is independently `nb`, including during English UI execution. There is one explicit create, with no automatic creation or alternative-application chooser.
Final result: **2/2 passed, zero skips/unexpected/flaky; four scoped axe scans with zero violations; four retained screenshots**, zero root horizontal overflow. Final TypeScript and scoped ESLint passed. These two cases are additional connected coverage, not a full regression or final A3 acceptance.
The original two failures were verifier mistakes: provenance was asserted on the application DTO rather than its linked job. After correcting that boundary, one desktop assertion still assumed a link where the real keyboard-enabled table exposes a row; the phone exposes a link. Both original and intermediate outputs are retained. No application changes were made to satisfy those assumptions.
## Visual review and limits
The retained desktop workspace shows the approved right-side context and flat section hierarchy. The phone workspace stacks context below content and uses the hybrid bottom navigation. These are full-page captures at the journey's current scroll position: sticky header/bottom navigation appear within the stitched phone image, and the route heading is partly under the header in that capture. This is a capture/scroll review limitation requiring a controlled viewport check, not proof that every screen or header state is accepted. The Bokmål activity entry still displays the server event text `Created`; synthetic company content is English. These captures do not establish complete native-language acceptance or resolve the existing visual discrepancy register.
The fixture advert deadline is historical synthetic data. This package does not exercise live NAV access, provider rights, saved-run ingestion, provider dismissal persistence, extraction/model quality, physical devices, assistive technology, browser zoom, or production. The frozen backend predates the later checklist error-classification correction and analytics aggregate change: combined affected browser validation remains separate.
Exact original/intermediate/final reports, native logs, screenshots, audits, request boundaries, readbacks and LF-normalised source hashes are retained in [evidence receipts](evidence/connected-discovery/SOURCE_RECEIPTS.json). The source test is the rollback unit; no application/data rollback or migration is needed.
AST-only graph refresh passed: 19,963 nodes / 49,440 edges. Existing optional PDF/SQL extractors and symbol-free generated-input warnings remain; no model labeling was run.
@@ -0,0 +1,19 @@
# Public landing semantic landmarks
18 November2026. Application source36084473, baseline5b50cb27. Existing anonymous landing correctness/accessibility work only; public homepage visual direction and final launch acceptance remain separate.
The12-state landing review reproduced two axe best-practice failures in every configuration: no main landmark and25 content nodes outside landmarks. A new regression failed on the original runtime source with `Unable to find an accessible element with the role main`. The existing top/footer boxes now render as `header`/`footer`, and a plain existing MUI Box groups the unchanged page content as `main`. The loading surface also renders as main. No style, content, action, translation, dependency, routing or authenticated preference behavior changed.
Verification PASSED:
- 14 affected tests/three suites, zero failures/skips; the new failing regression is included in14. Main contains the hero/plans and excludes the header/footer. Existing local language, authenticated preference and deep-link tests remain.
- Scoped ESLint, standard Next16.4.6 build/TypeScript/static export and source whitespace check.
- 12 existing rendered journeys at320/768/1440, EN/NB, light/dark; zero rejected preference requests, unexpected writes, unavailable reads or page errors.
- 12 scoped axe scans now have **zero violations** under the unchanged WCAG2A/AA,2.1AA,2.2AA and best-practice tags. These tags are a bounded automated scan, not native/human/whole-application acceptance.
- All12 before/after full-page PNG pairs are **byte-identical**, proving no screenshot-visible change for these samples. Hash pairs are in the receipts; two selected baseline screenshots are already committed under landing-local-language/browser, all12 pairs remain preserved locally. No image conversion or new imaging dependency was needed.
The existing harness was reused with isolated output/current API origin plus explicit zero-violation and zero-preference-request assertions. All API responses are intercepted; no real identity, email, provider/model or production activity. Original failed snapshots/logs remain retained; they are not replaced with green outputs. Exact native logs/JSON gzip and executed harness/source bindings: [receipts](evidence/landing-landmarks/browser/SOURCE_RECEIPTS.json).
Raw static SEO, earlier mockup images and public design/claim decisions remain open. Full A3 route/preservation acceptance, human/device/AT/native-language checks and security/release qualification remain open. Rollback restores the semantic tags/removes the plain main grouping and its regression; no data rollback or migration.
AST-only graph refresh PASSED19,898 nodes/49,311 edges with existing missing SQL extractor/symbol-free file warnings; no semantic/model processing.
@@ -31,3 +31,9 @@ These are mocked API/JSDOM contract checks. No fresh browser, real preference AP
Rollback restores the two LandingPage setter references and associated regression tests; no data migration or stored preference rollback is required.
Root recovery verification: independently verified all12 source/native receipt bindings and the structured13-case passing result, repeated nonincremental TypeScript and scoped ESLint (exit0), and completed `graphify update . --no-cluster` (19,888 nodes/49,292 edges, AST only). Missing SQL extractor and symbol-free file warnings remain. The worker usage interruption did not lose these changes. No browser result is implied by this checkpoint.
## Integrated rendered verification
On integrated application c536e091/evidence d9fbed52, fresh standard Next16.4.6 build/TypeScript/export PASSED. The existing landing harness was reused with an isolated evidence directory, current5302 API origin and an explicit zero-preference-PUT assertion. Original baseline evidence was not overwritten. **12/12 controlled rendered journeys PASSED** across320/768/1440 widths, EN/NB, light/dark: language switch both directions, local preference, features anchor, sign-in and registration navigation. Rejected preference requests fell from historical24 to **zero** under the same12-state matrix; zero unexpected writes, unavailable reads or page errors. All API responses are intercepted and external requests blocked; this proves frontend behavior, not real identity/server persistence. No auth submissions or provider/model activation.
Existing accessibility findings remain: each state reports missing main landmark and uncontained regions (25 nodes), unchanged from the recorded landing baseline. Therefore the accessibility scans are **not passing acceptance**. Raw static HTML still lacks canonical/hreflang and headings. These findings remain in the public-site backlog; a passing navigation/language journey does not close LAUNCH or final A3 acceptance. Selected desktop/mobile screenshots, native exact-gzip build/browser logs and executed harness are bound in [browser receipts](evidence/landing-local-language/browser/SOURCE_RECEIPTS.json); other12-state captures remain locally preserved.
@@ -24,3 +24,11 @@ The PDF check covers MIME, filename, %PDF header, download completion, hash and
Root inspected retained desktop/mobile focus viewport screenshots and the populated connected CV capture against the existing A3 reference. Editor-left/preview-right, mobile navigation, readable wrap and visible keyboard focus remain. Full-page images can place sticky elements outside the viewport; viewport captures are separately retained. Synthetic empty-source recovery is not a populated-concept comparison. These samples do not close the34-route/57-group visual discrepancy register or final owner review.
Evidence and exact source/native hashes: [receipts](evidence/native-recovery-20261118/SOURCE_RECEIPTS.json). Native traces and disposable credentials stay outside Git. Rollback restores the small heading delta and test changes; no data rollback or dependency change. Parent read/draft lifetime fixes and later dependency candidates retain their own source-bound evidence. No orchestrator, main merge or deployment.
## Final integrated affected regression
18 November: frozen application0765b151, qualification HEAD4eb8a293 (documentation-only difference), freshly locked E-drive dependencies. Full lint and standard Next16.4.6 build/TypeScript/export PASSED exit0. Fresh server-backed Playwright run PASSED **44/44 tests across five existing specs**, zero skipped, failed or flaky,292.38seconds. This is original43 plus the new connected selected-source CV journey; it supersedes the earlier40/3 outcome for this affected scope, without erasing original failures. Counts overlap prior focused runs and are not added together.
Coverage: application form draft/revision/recovery paths, Career Profile overview/evidence/history, saved discovery actions, document ownership/source/error/retry/sign-out and CV profile-selection/edit/preview/explicit PDF. Responsive cases include finite desktop/tablet/phone EN/NB/theme samples with existing axe/target-size assertions. It is not all34 routes,57 groups, full backend/MariaDB, human/device/AT/native-language, PDF fidelity, provider/model, integrated security/recovery or release acceptance. Disposable SQLite and actual local Identity/CSRF/API/renderer were used; provider/model/import workers disabled, browser external/model/delivery requests blocked.
Exact native logs (including original encoding) are losslessly gzipped beside normalized UTF8 reports and source/blob receipts in [native-integrated evidence](evidence/native-integrated-20261118/SOURCE_RECEIPTS.json). Traces/disposable credentials remain outside Git. No running production service was accessed.
@@ -0,0 +1,110 @@
{
"baseline": "1db5f488f6138e4f0f33749452b7d9f47658f4b0",
"qualification": "Test-only connected journeys against frozen existing export/API, no provider/model execution. Native readbacks and four scoped axe scans, not full visual acceptance.",
"stats": {
"startTime": "2026-11-18T17:40:00.807Z",
"duration": 25672.649,
"expected": 2,
"skipped": 0,
"unexpected": 0,
"flaky": 0
},
"sourcesLfSha256": {
"job-tracker-ui/e2e/phase7-discovery.spec.ts": "bcf2c84d0bc86d6fa6fdf43b62eaa70e066acf3ba1425b9496b6c9ea5ac7de46",
"job-tracker-ui/package-lock.json": "7ebd728f99a1ed9a5334542fb578b30127b4a0c7984efe2913266e89e2fbfbd3",
"job-tracker-ui/playwright.config.ts": "9252c961ac2779485bb72b24c31d526773d7c09f764eca638c4c1d47235e9f65",
"job-tracker-ui/src/i18n/translations.ts": "2b29e81921fc44fba95df62497dba18fb8d91568340aa529f7d25eef93b032ab"
},
"artifacts": [
{
"file": "focused.json.gz",
"bytes": 147829,
"sha256": "1124afe68404328500a5134be29b51b0039efdc035146c147539f03900fb29e8"
},
{
"file": "focused.log.gz",
"bytes": 2437,
"sha256": "62fef0f99dfb844ff1562186e01ca819c7e4014b00aa2b1ccb5b859a0e3fb190"
},
{
"file": "corrected.json.gz",
"bytes": 233327,
"sha256": "8de56092bc1e8f90606293b63e55e84ea5842027790b888c6dfdf2dcec23b9e0"
},
{
"file": "corrected.log.gz",
"bytes": 2273,
"sha256": "7a79a52766d2f1d58a0cea5cfdd539f8f27742cd950555d818aae430b53482c9"
},
{
"file": "final.json.gz",
"bytes": 358425,
"sha256": "866e94ea9dc5043b46e3645afdd82a40434061b1ef1740e418e0f2b14c277c37"
},
{
"file": "final.log.gz",
"bytes": 1384,
"sha256": "e98d65b77b35182f0015c55feaa42429e822bd7a28d6e5845e2d56a6fba0d851"
},
{
"file": "en-p7-discovery-en-light-1440-connected-fixture-result-return-audit.json",
"bytes": 10842,
"sha256": "e4e1d4f32458c44791fca7bd034fe9d45700316c9b6052cb776f197e2929ea22"
},
{
"file": "en-p7-discovery-en-light-1440-connected-fixture-result-return.png",
"bytes": 93797,
"sha256": "bc28e6a338769f4baf7ad7dae14e0516c98a19e312114992b8f9326862e838f7"
},
{
"file": "en-connected-native-tracker-readbacks.json",
"bytes": 3739,
"sha256": "e078245f64ce5513057710f0d3c9395f159b9b72438bf38858ebf21a857b7e98"
},
{
"file": "en-p7-discovery-en-light-1440-connected-native-workspace-audit.json",
"bytes": 9268,
"sha256": "e115a6a6872110091799baa9484906779365bf33d36e70053a858288bbfaa07a"
},
{
"file": "en-p7-discovery-en-light-1440-connected-native-workspace.png",
"bytes": 122650,
"sha256": "556c5e697bc05f1094a183ed9493403971643dbbb26e2dd74c2e35e2a69a24b1"
},
{
"file": "en-discovery-request-boundary.json",
"bytes": 1264,
"sha256": "1b566579e51d569be46ed43d6fc8fb8b4cf4959831493bccb0dd67086fe2ed30"
},
{
"file": "nb-p7-discovery-nb-dark-390-connected-fixture-result-return-audit.json",
"bytes": 11333,
"sha256": "f9a09992219a3a5ff0f9848785227eccb34f336af3281c4343fc6665aab4e52d"
},
{
"file": "nb-p7-discovery-nb-dark-390-connected-fixture-result-return.png",
"bytes": 41080,
"sha256": "907ab5bba5793caa220a974506b791b28183e1e1b1bde82b26bb8ba3d69634e7"
},
{
"file": "nb-connected-native-tracker-readbacks.json",
"bytes": 3737,
"sha256": "88610906a3b65175350b5a83b55795e029b878b90cf5967bcead821ed50991ce"
},
{
"file": "nb-p7-discovery-nb-dark-390-connected-native-workspace-audit.json",
"bytes": 14328,
"sha256": "714231108ce7ee9781e16d3ac6a4780eaada0685e15c2b03ec7e3be713c40614"
},
{
"file": "nb-p7-discovery-nb-dark-390-connected-native-workspace.png",
"bytes": 81638,
"sha256": "eacdcadd05b014cb45e0038486513fa828a7a099f004c73d3468ebd5d597db1b"
},
{
"file": "nb-discovery-request-boundary.json",
"bytes": 1264,
"sha256": "1b566579e51d569be46ed43d6fc8fb8b4cf4959831493bccb0dd67086fe2ed30"
}
]
}
@@ -0,0 +1 @@
{"sample":{"language":"en","theme":"light","width":1440,"height":900},"job":{"id":"connected-en","title":"Faglærer i kunst og håndverk — æøå","company":"Synthetic community learning centre","location":"TRONDHEIM","modifiedAt":"2026-10-09T10:00:00Z","deadline":"2026-10-20T23:59:59Z","url":"https://arbeidsplassen.nav.no/stillinger/stilling/connected-en","source":"nav","sourceName":"NAV Arbeidsplassen","acquisitionType":"searched","retrievedAt":"2026-10-10T10:00:00Z","countryCode":"NO"},"readback":{"id":1,"companyId":1,"company":{"id":1,"ownerUserId":"c3b9c5f7-7ffe-4e21-8dfc-0b68365e85ed","name":"Synthetic community learning centre","location":"Trondheim","source":"User","recruiterName":null,"recruiterEmail":null,"recruiterLinkedIn":null,"lastContactedAt":null,"nextContactAt":null,"pipelineStage":null},"jobTitle":"Faglærer i kunst og håndverk — æøå","status":"Saved","dateApplied":null,"savedAt":"2026-11-18T17:40:14.1198041","responseReceived":false,"responseDate":null,"notes":null,"coverLetterText":null,"jobUrl":"https://arbeidsplassen.nav.no/stillinger/stilling/connected-en","description":"Syntetisk stilling: planlegg aktiviteter og undervisning i kunst og håndverk. Kilden beholdes ordrett — æøå.","translatedDescription":null,"descriptionLanguage":"nb","tags":null,"deadline":"2026-10-20T00:00:00","location":"TRONDHEIM","salary":null,"salaryMin":null,"salaryMax":null,"salaryCurrency":null,"salaryPeriod":null,"nextAction":null,"followUpAt":null,"feedbackRequestedAt":null,"hasResume":false,"hasCoverLetter":false,"hasPortfolio":false,"hasOtherAttachment":false,"isDeleted":false,"deletedAt":null,"daysSince":null,"needsFollowUp":false,"followUpReason":null,"tailoredCvText":null,"workflowSignal":{"actionKey":"follow-up","reason":"No response yet and no follow-up is scheduled.","workspaceTab":"follow-up","followMode":"waiting-update","needsAttention":true,"hasPackageGap":false,"needsInterviewPrep":false,"needsFollowUpAction":true,"hasTailoredCv":false,"hasSavedApplicationAnswerDraft":false,"hasInterviewPrepNotes":false},"shortSummary":null,"fullSummary":null,"version":1},"opportunity":{"source":"nav","countryCode":"NO"},"duplicates":{"hasDuplicates":true,"matches":[{"id":1,"jobTitle":"Faglærer i kunst og håndverk — æøå","company":"Synthetic community learning centre","jobUrl":"https://arbeidsplassen.nav.no/stillinger/stilling/connected-en","status":"Saved","dateApplied":null,"reason":"same URL, same company and similar title"}]},"trackerWrites":[{"method":"POST","path":"/api/jobapplications","query":{},"body":{"jobTitle":"Faglærer i kunst og håndverk — æøå","companyId":1,"status":"Saved","location":"TRONDHEIM","salary":"","salaryMin":null,"salaryMax":null,"salaryCurrency":null,"salaryPeriod":null,"nextAction":null,"followUpAt":null,"jobUrl":"https://arbeidsplassen.nav.no/stillinger/stilling/connected-en","source":"nav","countryCode":"NO","description":"Syntetisk stilling: planlegg aktiviteter og undervisning i kunst og håndverk. Kilden beholdes ordrett — æøå.","translatedDescription":null,"descriptionLanguage":"nb","tags":null,"deadline":"2026-10-20","notes":"","coverLetterText":null,"dateApplied":"2026-11-18"}}],"searches":1,"previews":1,"detailViews":1,"choosers":[],"qualification":"Search, original-source popup HTML and import preview are explicitly synthetic route fixtures, with no provider fetch. Company setup/job POST/readbacks/duplicate check/foreign denial are actual disposable API. Source/country checked on the linked opportunity through a guarded read-only query of this fixture SQLite only; application DTO does not expose them. No full provider integration, canonical geography, import parser or automatic duplicate blocking claim."}
@@ -0,0 +1 @@
{"providerBoundary":"Saved-search list/create/alert PATCH/delete and readbacks use the real isolated owner API and disposable SQLite. Browser vacancy-provider /search and owner /saved-searches/{id}/run responses are intercepted because the server provider has an external NAV base URL. Intercepted runs do not create SavedJobSearchResults: successful intercepted Dismiss establishes presentation only, never runner/history/dismiss persistence or alert delivery. A real missing-result Dismiss 404 is exercised separately. The unchanged saved-search-repair suite and backend fake-provider SQLite tests retain owner/anonymous and real runner/history contracts. External browser traffic and unregistered provider-dependent requests are blocked.","requests":[{"method":"GET","path":"/api/job-discovery/saved-searches","query":{},"body":null},{"method":"GET","path":"/api/job-discovery/search","query":{"q":"kunstlærer","location":"Trondheim"},"body":null}],"blockedProviderRequests":[],"blockedExternalRequests":[],"qualification":"Browser request log contains only method/path/query/JSON payload, with no cookies or authorization/CSRF/session headers. Direct API fixture reads are verified in individual tests; this log is not a server outbound-traffic measurement."}
Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

@@ -0,0 +1 @@
{"sample":{"language":"nb","theme":"dark","width":390,"height":844},"job":{"id":"connected-nb","title":"Faglærer i kunst og håndverk — æøå","company":"Synthetic community learning centre","location":"TRONDHEIM","modifiedAt":"2026-10-09T10:00:00Z","deadline":"2026-10-20T23:59:59Z","url":"https://arbeidsplassen.nav.no/stillinger/stilling/connected-nb","source":"nav","sourceName":"NAV Arbeidsplassen","acquisitionType":"searched","retrievedAt":"2026-10-10T10:00:00Z","countryCode":"NO"},"readback":{"id":2,"companyId":2,"company":{"id":2,"ownerUserId":"33728467-11f1-4863-97d8-fc14a6b2421d","name":"Synthetic community learning centre","location":"Trondheim","source":"User","recruiterName":null,"recruiterEmail":null,"recruiterLinkedIn":null,"lastContactedAt":null,"nextContactAt":null,"pipelineStage":null},"jobTitle":"Faglærer i kunst og håndverk — æøå","status":"Saved","dateApplied":null,"savedAt":"2026-11-18T17:40:22.5290878","responseReceived":false,"responseDate":null,"notes":null,"coverLetterText":null,"jobUrl":"https://arbeidsplassen.nav.no/stillinger/stilling/connected-nb","description":"Syntetisk stilling: planlegg aktiviteter og undervisning i kunst og håndverk. Kilden beholdes ordrett — æøå.","translatedDescription":null,"descriptionLanguage":"nb","tags":null,"deadline":"2026-10-20T00:00:00","location":"TRONDHEIM","salary":null,"salaryMin":null,"salaryMax":null,"salaryCurrency":null,"salaryPeriod":null,"nextAction":null,"followUpAt":null,"feedbackRequestedAt":null,"hasResume":false,"hasCoverLetter":false,"hasPortfolio":false,"hasOtherAttachment":false,"isDeleted":false,"deletedAt":null,"daysSince":null,"needsFollowUp":false,"followUpReason":null,"tailoredCvText":null,"workflowSignal":{"actionKey":"follow-up","reason":"No response yet and no follow-up is scheduled.","workspaceTab":"follow-up","followMode":"waiting-update","needsAttention":true,"hasPackageGap":false,"needsInterviewPrep":false,"needsFollowUpAction":true,"hasTailoredCv":false,"hasSavedApplicationAnswerDraft":false,"hasInterviewPrepNotes":false},"shortSummary":null,"fullSummary":null,"version":1},"opportunity":{"source":"nav","countryCode":"NO"},"duplicates":{"hasDuplicates":true,"matches":[{"id":2,"jobTitle":"Faglærer i kunst og håndverk — æøå","company":"Synthetic community learning centre","jobUrl":"https://arbeidsplassen.nav.no/stillinger/stilling/connected-nb","status":"Saved","dateApplied":null,"reason":"same URL, same company and similar title"}]},"trackerWrites":[{"method":"POST","path":"/api/jobapplications","query":{},"body":{"jobTitle":"Faglærer i kunst og håndverk — æøå","companyId":2,"status":"Saved","location":"TRONDHEIM","salary":"","salaryMin":null,"salaryMax":null,"salaryCurrency":null,"salaryPeriod":null,"nextAction":null,"followUpAt":null,"jobUrl":"https://arbeidsplassen.nav.no/stillinger/stilling/connected-nb","source":"nav","countryCode":"NO","description":"Syntetisk stilling: planlegg aktiviteter og undervisning i kunst og håndverk. Kilden beholdes ordrett — æøå.","translatedDescription":null,"descriptionLanguage":"nb","tags":null,"deadline":"2026-10-20","notes":"","coverLetterText":null,"dateApplied":"2026-11-18"}}],"searches":1,"previews":1,"detailViews":1,"choosers":[],"qualification":"Search, original-source popup HTML and import preview are explicitly synthetic route fixtures, with no provider fetch. Company setup/job POST/readbacks/duplicate check/foreign denial are actual disposable API. Source/country checked on the linked opportunity through a guarded read-only query of this fixture SQLite only; application DTO does not expose them. No full provider integration, canonical geography, import parser or automatic duplicate blocking claim."}
@@ -0,0 +1 @@
{"providerBoundary":"Saved-search list/create/alert PATCH/delete and readbacks use the real isolated owner API and disposable SQLite. Browser vacancy-provider /search and owner /saved-searches/{id}/run responses are intercepted because the server provider has an external NAV base URL. Intercepted runs do not create SavedJobSearchResults: successful intercepted Dismiss establishes presentation only, never runner/history/dismiss persistence or alert delivery. A real missing-result Dismiss 404 is exercised separately. The unchanged saved-search-repair suite and backend fake-provider SQLite tests retain owner/anonymous and real runner/history contracts. External browser traffic and unregistered provider-dependent requests are blocked.","requests":[{"method":"GET","path":"/api/job-discovery/saved-searches","query":{},"body":null},{"method":"GET","path":"/api/job-discovery/search","query":{"q":"kunstlærer","location":"Trondheim"},"body":null}],"blockedProviderRequests":[],"blockedExternalRequests":[],"qualification":"Browser request log contains only method/path/query/JSON payload, with no cookies or authorization/CSRF/session headers. Direct API fixture reads are verified in individual tests; this log is not a server outbound-traffic measurement."}
Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

@@ -0,0 +1,471 @@
{
"screens": [
{
"width": 320,
"language": "en",
"mode": "light",
"state": "landing-baseline",
"layout": {
"pageOverflow": false,
"landmarks": [
"header",
"main",
"footer"
],
"mockups": [
{
"src": "/mockups/dashboard.svg",
"loaded": true
},
{
"src": "/mockups/pipeline.svg",
"loaded": true
},
{
"src": "/mockups/workspace.svg",
"loaded": true
}
]
},
"violations": []
},
{
"width": 320,
"language": "en",
"mode": "dark",
"state": "landing-baseline",
"layout": {
"pageOverflow": false,
"landmarks": [
"header",
"main",
"footer"
],
"mockups": [
{
"src": "/mockups/dashboard.svg",
"loaded": true
},
{
"src": "/mockups/pipeline.svg",
"loaded": true
},
{
"src": "/mockups/workspace.svg",
"loaded": true
}
]
},
"violations": []
},
{
"width": 320,
"language": "nb",
"mode": "light",
"state": "landing-baseline",
"layout": {
"pageOverflow": false,
"landmarks": [
"header",
"main",
"footer"
],
"mockups": [
{
"src": "/mockups/dashboard.svg",
"loaded": true
},
{
"src": "/mockups/pipeline.svg",
"loaded": true
},
{
"src": "/mockups/workspace.svg",
"loaded": true
}
]
},
"violations": []
},
{
"width": 320,
"language": "nb",
"mode": "dark",
"state": "landing-baseline",
"layout": {
"pageOverflow": false,
"landmarks": [
"header",
"main",
"footer"
],
"mockups": [
{
"src": "/mockups/dashboard.svg",
"loaded": true
},
{
"src": "/mockups/pipeline.svg",
"loaded": true
},
{
"src": "/mockups/workspace.svg",
"loaded": true
}
]
},
"violations": []
},
{
"width": 768,
"language": "en",
"mode": "light",
"state": "landing-baseline",
"layout": {
"pageOverflow": false,
"landmarks": [
"header",
"main",
"footer"
],
"mockups": [
{
"src": "/mockups/dashboard.svg",
"loaded": true
},
{
"src": "/mockups/pipeline.svg",
"loaded": true
},
{
"src": "/mockups/workspace.svg",
"loaded": true
}
]
},
"violations": []
},
{
"width": 768,
"language": "en",
"mode": "dark",
"state": "landing-baseline",
"layout": {
"pageOverflow": false,
"landmarks": [
"header",
"main",
"footer"
],
"mockups": [
{
"src": "/mockups/dashboard.svg",
"loaded": true
},
{
"src": "/mockups/pipeline.svg",
"loaded": true
},
{
"src": "/mockups/workspace.svg",
"loaded": true
}
]
},
"violations": []
},
{
"width": 768,
"language": "nb",
"mode": "light",
"state": "landing-baseline",
"layout": {
"pageOverflow": false,
"landmarks": [
"header",
"main",
"footer"
],
"mockups": [
{
"src": "/mockups/dashboard.svg",
"loaded": true
},
{
"src": "/mockups/pipeline.svg",
"loaded": true
},
{
"src": "/mockups/workspace.svg",
"loaded": true
}
]
},
"violations": []
},
{
"width": 768,
"language": "nb",
"mode": "dark",
"state": "landing-baseline",
"layout": {
"pageOverflow": false,
"landmarks": [
"header",
"main",
"footer"
],
"mockups": [
{
"src": "/mockups/dashboard.svg",
"loaded": true
},
{
"src": "/mockups/pipeline.svg",
"loaded": true
},
{
"src": "/mockups/workspace.svg",
"loaded": true
}
]
},
"violations": []
},
{
"width": 1440,
"language": "en",
"mode": "light",
"state": "landing-baseline",
"layout": {
"pageOverflow": false,
"landmarks": [
"header",
"main",
"footer"
],
"mockups": [
{
"src": "/mockups/dashboard.svg",
"loaded": true
},
{
"src": "/mockups/pipeline.svg",
"loaded": true
},
{
"src": "/mockups/workspace.svg",
"loaded": true
}
]
},
"violations": []
},
{
"width": 1440,
"language": "en",
"mode": "dark",
"state": "landing-baseline",
"layout": {
"pageOverflow": false,
"landmarks": [
"header",
"main",
"footer"
],
"mockups": [
{
"src": "/mockups/dashboard.svg",
"loaded": true
},
{
"src": "/mockups/pipeline.svg",
"loaded": true
},
{
"src": "/mockups/workspace.svg",
"loaded": true
}
]
},
"violations": []
},
{
"width": 1440,
"language": "nb",
"mode": "light",
"state": "landing-baseline",
"layout": {
"pageOverflow": false,
"landmarks": [
"header",
"main",
"footer"
],
"mockups": [
{
"src": "/mockups/dashboard.svg",
"loaded": true
},
{
"src": "/mockups/pipeline.svg",
"loaded": true
},
{
"src": "/mockups/workspace.svg",
"loaded": true
}
]
},
"violations": []
},
{
"width": 1440,
"language": "nb",
"mode": "dark",
"state": "landing-baseline",
"layout": {
"pageOverflow": false,
"landmarks": [
"header",
"main",
"footer"
],
"mockups": [
{
"src": "/mockups/dashboard.svg",
"loaded": true
},
{
"src": "/mockups/pipeline.svg",
"loaded": true
},
{
"src": "/mockups/workspace.svg",
"loaded": true
}
]
},
"violations": []
}
],
"journeys": [
{
"width": 320,
"language": "en",
"mode": "light",
"publicLanguageSwitch": "PASS",
"featuresAnchorAndAuthNavigation": "PASS",
"submissions": "NOT RUN"
},
{
"width": 320,
"language": "en",
"mode": "dark",
"publicLanguageSwitch": "PASS",
"featuresAnchorAndAuthNavigation": "PASS",
"submissions": "NOT RUN"
},
{
"width": 320,
"language": "nb",
"mode": "light",
"publicLanguageSwitch": "PASS",
"featuresAnchorAndAuthNavigation": "PASS",
"submissions": "NOT RUN"
},
{
"width": 320,
"language": "nb",
"mode": "dark",
"publicLanguageSwitch": "PASS",
"featuresAnchorAndAuthNavigation": "PASS",
"submissions": "NOT RUN"
},
{
"width": 768,
"language": "en",
"mode": "light",
"publicLanguageSwitch": "PASS",
"featuresAnchorAndAuthNavigation": "PASS",
"submissions": "NOT RUN"
},
{
"width": 768,
"language": "en",
"mode": "dark",
"publicLanguageSwitch": "PASS",
"featuresAnchorAndAuthNavigation": "PASS",
"submissions": "NOT RUN"
},
{
"width": 768,
"language": "nb",
"mode": "light",
"publicLanguageSwitch": "PASS",
"featuresAnchorAndAuthNavigation": "PASS",
"submissions": "NOT RUN"
},
{
"width": 768,
"language": "nb",
"mode": "dark",
"publicLanguageSwitch": "PASS",
"featuresAnchorAndAuthNavigation": "PASS",
"submissions": "NOT RUN"
},
{
"width": 1440,
"language": "en",
"mode": "light",
"publicLanguageSwitch": "PASS",
"featuresAnchorAndAuthNavigation": "PASS",
"submissions": "NOT RUN"
},
{
"width": 1440,
"language": "en",
"mode": "dark",
"publicLanguageSwitch": "PASS",
"featuresAnchorAndAuthNavigation": "PASS",
"submissions": "NOT RUN"
},
{
"width": 1440,
"language": "nb",
"mode": "light",
"publicLanguageSwitch": "PASS",
"featuresAnchorAndAuthNavigation": "PASS",
"submissions": "NOT RUN"
},
{
"width": 1440,
"language": "nb",
"mode": "dark",
"publicLanguageSwitch": "PASS",
"featuresAnchorAndAuthNavigation": "PASS",
"submissions": "NOT RUN"
}
],
"confirmations": [],
"signIns": [],
"challenges": [],
"preferenceDenials": [],
"unexpectedWrites": [],
"unavailableReads": [],
"blockedExternal": [],
"errors": [],
"rawHtml": {
"language": "en",
"title": "Jobbjakt",
"description": "Jobbjakt — track and manage job applications",
"canonical": null,
"alternateLanguages": [],
"headings": []
},
"limits": [
"Every API response is intercepted; no real account, password, email delivery, verification, MFA or provider activation.",
"Synthetic confirmation tokens and challenge values cannot qualify server-side token, rate-limit or authentication enforcement.",
"No native/human, integrated security, release or production qualification."
]
}
@@ -0,0 +1,135 @@
{
"source": "36084473c354592769578d1436e43f4fc338e1b3",
"artifacts": [
{
"file": "BROWSER.json",
"bytes": 10446,
"sha256": "aee8f14ed626ab7bb838c65ed4fbd02e22b90946d2ca4cd59af78ccaf14a673c"
},
{
"file": "browser.txt",
"bytes": 363,
"sha256": "178bcdb49a9b9bcea6a1ede31dea679931768d11c71e87c47a3fac9c1cabcadb"
},
{
"file": "browser.txt.native.gz",
"bytes": 218,
"sha256": "dbf4626aaf58502b47e1277fb1caa7f527a5d9ea21877594cc920975774c8fb0"
},
{
"file": "build.txt",
"bytes": 592,
"sha256": "677596d0debc6ad0606124824048f9234574c2fad59511583ff371000b884d34"
},
{
"file": "build.txt.native.gz",
"bytes": 485,
"sha256": "1d27f1eee3d98eeb42cca7813c7d6190b68c2cf33ad156f8745ff96bca86c366"
},
{
"file": "green.json",
"bytes": 6817,
"sha256": "a73bcff9ecddb907056fff0ba2ef6da4070572f17e921b6b0e7016864c9c10de"
},
{
"file": "green.json.native.gz",
"bytes": 1330,
"sha256": "9468011271553f8637bc91333f82c8625053aa297a33270c55507e8115c239e2"
},
{
"file": "green.txt",
"bytes": 643,
"sha256": "007abce908e81c1cbc70223e35ff952c8ff526bdb14da2a209dee73b569cb89c"
},
{
"file": "green.txt.native.gz",
"bytes": 511,
"sha256": "7d6bf6e13c33da11d668606e1fb0e27af0e6d7dcf2897951395d2651c889ed11"
},
{
"file": "harness.mjs.txt",
"bytes": 16218,
"sha256": "c9d0cfb7c2b6b29540e02f0b7bae218ba47a4f9bdd648c3cd3f95d53b4ea7cda"
},
{
"file": "red.json",
"bytes": 65549,
"sha256": "e474e48993708a252f942ecf52d7fe2f9f374a14e8cb8f8a576bd129c2ff71d2"
},
{
"file": "red.json.native.gz",
"bytes": 4866,
"sha256": "bb81a380e6379e277a91b35cf6637f41c08ec32b4f6b492e5eb7c1829a1b6218"
},
{
"file": "red.txt",
"bytes": 26905,
"sha256": "57254b44ce28f7794abd4c4f62618e661e269b12b30fd2786deb46c3b8b89251"
},
{
"file": "red.txt.native.gz",
"bytes": 3708,
"sha256": "dd56c99927f7db535eba399cf379526b0b39660091227d43f713dc9dc0f0165a"
}
],
"screenshotPairs": [
{
"file": "landing-en-dark-1440.png",
"beforeAfterExactSha256": "bd01a89dacbc90a9de8c66907b7184a86fc429554cc1ba16ef2c9c9c946ccb20"
},
{
"file": "landing-en-dark-320.png",
"beforeAfterExactSha256": "d3bafb63cc49e19edf37d73e0bc06fdbe42962f485a50c02db4e8de9ff7fce9b"
},
{
"file": "landing-en-dark-768.png",
"beforeAfterExactSha256": "d9d52097ba94554ce9790a0b01aa2a22a358410ad7c787171445efb4b7ce6dde"
},
{
"file": "landing-en-light-1440.png",
"beforeAfterExactSha256": "587172f777a93c3333a26f8257b30f8ea84ea8724ab94bb4a1fa4d147055c6fa"
},
{
"file": "landing-en-light-320.png",
"beforeAfterExactSha256": "536b4ec0a27e4b979db51703031f0c3dd7e367b20a19e59405355c4feaf18cb1"
},
{
"file": "landing-en-light-768.png",
"beforeAfterExactSha256": "95b8bb5e87966a3579cfc03f9293a67b6bf3697fd3292d7614e1af19ea9b9f27"
},
{
"file": "landing-nb-dark-1440.png",
"beforeAfterExactSha256": "e4372d03a59798b023eb658c75b54cbf23fd508e3d21af6143c16e7155695d0f"
},
{
"file": "landing-nb-dark-320.png",
"beforeAfterExactSha256": "4c51ec5a53766805719d78be00c8692e83bd98c533f6761bf238b36d04f430c7"
},
{
"file": "landing-nb-dark-768.png",
"beforeAfterExactSha256": "7c0b22d80cfb38197652f6d12b1241e1c091907a6a0378281d873e7ff66efd60"
},
{
"file": "landing-nb-light-1440.png",
"beforeAfterExactSha256": "fe51361187f27df68d286bb2e926a25f79fbc35860097161700eef889851e3b6"
},
{
"file": "landing-nb-light-320.png",
"beforeAfterExactSha256": "72b97cf02e0961db26519ec44964f57583a498ab55522d6a09c8b9bd5c27441d"
},
{
"file": "landing-nb-light-768.png",
"beforeAfterExactSha256": "60deb31ef35d89b0e7a735911b58d58cca7ae856fe770801810acb93d1dcf2cc"
}
],
"sources": [
{
"path": "job-tracker-ui/src/views/LandingPage.tsx",
"gitBlob": "deaeb7dc494f34275d1042fd75b66704a795bd27"
},
{
"path": "job-tracker-ui/src/landing-page.test.tsx",
"gitBlob": "63841c030eeb519213d302b51003a8ae82b61570"
}
]
}
@@ -0,0 +1,13 @@
Checking 320/en/light
Checking 320/en/dark
Checking 320/nb/light
Checking 320/nb/dark
Checking 768/en/light
Checking 768/en/dark
Checking 768/nb/light
Checking 768/nb/dark
Checking 1440/en/light
Checking 1440/en/dark
Checking 1440/nb/light
Checking 1440/nb/dark
Audited 12 existing landing states. 12 controlled navigation journeys passed. See recorded findings.
@@ -0,0 +1,23 @@
> job-tracker-ui@0.1.0 build
> node --max-old-space-size=4096 ./node_modules/next/dist/bin/next build
▲ Next.js 16.4.6 (Turbopack)
✓ Running next.config.js took 31ms
Creating an optimized production build ...
✓ Compiled successfully in 878ms
Running TypeScript ...
Finished TypeScript in 5.7s ...
Collecting page data using 4 workers ...
Generating static pages using 4 workers (0/3) ...
✓ Generating static pages using 4 workers (3/3) in 901ms
Finalizing page optimization ...
Route (app)
┌ ○ /
└ ○ /_not-found
○ (Static) prerendered as static content
File diff suppressed because one or more lines are too long
@@ -0,0 +1,14 @@
node :
At line:1 char:1
+ node node_modules/jest/bin/jest.js --runInBand --runTestsByPath src/l ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Test Suites: 3 passed, 3 total
Tests: 14 passed, 14 total
Snapshots: 0 total
Time: 6.197 s, estimated 10 s
Ran all test suites within paths "src/landing-page.test.tsx", "src/i18n-provider.test.tsx",
"src/LandingPage.authRedirect.test.tsx".
Test results written to: ..\..\browser-restoration-20261117\landing-landmarks-green.json
@@ -0,0 +1,134 @@
// Actual public routes; synthetic confirmation/MFA responses, no real identity or provider access.
import { chromium, expect } from '@playwright/test';
import AxeBuilder from '@axe-core/playwright';
import ts from 'typescript';
import assert from 'node:assert/strict';
import fs from 'node:fs';
import path from 'node:path';
const compiled = ts.transpileModule(fs.readFileSync(new URL('../src/i18n/translations.ts', import.meta.url), 'utf8'), { compilerOptions: { module: ts.ModuleKind.ESNext } }).outputText;
const { translations } = await import(`data:text/javascript;base64,${Buffer.from(compiled).toString('base64')}`);
const landingAudit = process.env.A3_LANDING_AUDIT === '1';
const out = path.resolve(import.meta.dirname, '../../docs/ui-modernisation/evidence/landing-landmarks/browser');
fs.mkdirSync(out, { recursive: true });
const report = { screens: [], journeys: [], confirmations: [], signIns: [], challenges: [], preferenceDenials: [], unexpectedWrites: [], unavailableReads: [], blockedExternal: [], errors: [] };
const browser = await chromium.launch();
try {
const widths = landingAudit ? [320, 768, 1440] : [320, 360, 390, 430, 768, 1024, 1280, 1440, 1920];
const configurations = process.env.A3_PILOT ? [[320, 'en', 'light']] : widths.flatMap(width => ['en', 'nb'].flatMap(language => ['light', 'dark'].map(mode => [width, language, mode])));
for (const [width, language, mode] of configurations) {
console.log(`Checking ${width}/${language}/${mode}`);
const other = language === 'en' ? 'nb' : 'en';
const text = (locale, key) => { assert.ok(translations[locale][key], key); return translations[locale][key]; };
const t = key => text(language, key);
const context = await browser.newContext({ viewport: { width, height: 1000 }, reducedMotion: 'reduce' });
const page = await context.newPage(); page.on('pageerror', error => report.errors.push(error.message));
await page.addInitScript(({ language, mode }) => { localStorage.setItem('uiLanguage', language); localStorage.setItem('jobtracker.themeMode', mode); }, { language, mode });
let configReads = 0, confirmations = 0, signIns = 0, challenges = 0;
await page.route('**/*', route => {
const req = route.request(), url = new URL(req.url()), p = url.pathname;
if (url.origin !== 'http://localhost:4338' && !(url.origin === 'http://localhost:5302' && p.startsWith('/api/'))) { report.blockedExternal.push(url.origin); return route.abort(); }
if (landingAudit && p === '/mockups/dashboard.svg') {
const mockup = fs.readFileSync(path.resolve(import.meta.dirname, '../out/mockups/dashboard.svg'), 'utf8');
const safeMockup = mockup.replace(/[\w.%+-]+@[\w.-]+\.[A-Za-z]{2,}/g, 'alex@example.test');
return route.fulfill({ status: 200, contentType: 'image/svg+xml', body: safeMockup });
}
if (!p.startsWith('/api/')) return route.continue();
const answer = data => route.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify(data) });
if (req.method() === 'GET' && p === '/api/auth/config') { configReads++; return answer({ requireAuth: true, localEnabled: true, allowRegistration: true, requireEmailVerification: true, googleEnabled: false, microsoftEnabled: false, turnstileEnabled: false }); }
if (landingAudit && req.method() === 'GET' && p === '/api/auth/me') return route.fulfill({ status: 401, contentType: 'application/json', body: '{}' });
if (landingAudit && req.method() === 'PUT' && p === '/api/auth/preferences/language') {
const preference = req.postDataJSON().language;
assert.ok(['en', 'nb-NO'].includes(preference));
report.preferenceDenials.push({ width, language, mode, preference });
return route.fulfill({ status: 401, contentType: 'application/json', body: '{}' });
}
if (landingAudit && req.method() !== 'GET') { report.unexpectedWrites.push(p); return route.abort(); }
if (req.method() === 'POST' && ['/api/auth/verify-email', '/api/auth/email-change/confirm'].includes(p)) {
const expected = { userId: 'synthetic-owner', ...(p.includes('email-change') ? { email: 'synthetic@example.test' } : {}), token: 'synthetic-confirmation' };
assert.deepEqual(req.postDataJSON(), expected); confirmations++; report.confirmations.push({ width, language, mode, path: p }); return answer({});
}
if (req.method() === 'POST' && p === '/api/auth/login') {
const body = req.postDataJSON(); assert.equal(body.email, 'synthetic@example.test'); assert.equal(body.password, 'Synthetic challenge example'); assert.equal(typeof body.rememberMe, 'boolean'); assert.deepEqual(Object.keys(body).sort(), ['email', 'password', 'rememberMe']);
signIns++; report.signIns.push({ width, language, mode }); return answer({ requiresTwoFactor: true, pendingToken: 'synthetic-pending' });
}
if (req.method() === 'POST' && p === '/api/auth/2fa/challenge') {
assert.deepEqual(req.postDataJSON(), { pendingToken: 'synthetic-pending', code: '000000', trustDevice: false }); challenges++; report.challenges.push({ width, language, mode });
return route.fulfill({ status: 429, contentType: 'application/problem+json', body: '{}' });
}
if (req.method() !== 'GET') { report.unexpectedWrites.push(p); return route.abort(); }
report.unavailableReads.push(p); return route.fulfill({ status: 503, contentType: 'application/json', body: '{}' });
});
const scan = async state => {
assert.equal(await page.evaluate(() => document.documentElement.scrollWidth > innerWidth + 1), false, `overflow:${state}`);
const result = await new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa']).analyze();
report.screens.push({ width, language, mode, state, violations: result.violations }); assert.deepEqual(result.violations, [], state);
await page.evaluate(() => window.scrollTo({ top: 0, behavior: 'instant' })); await page.screenshot({ path: path.join(out, `${state}-${language}-${mode}-${width}.png`), fullPage: true });
};
const selectLanguage = locale => page.getByRole('button', { name: locale === 'en' ? 'English' : 'Norsk bokmål', exact: true }).click();
const ready = async (url, title, config = false) => { await page.goto(`http://localhost:4338${url}`); await expect(page.getByRole('heading', { level: 1, name: t(title), exact: true })).toBeVisible(); if (config) await expect(page.getByText(t('loading'), { exact: true })).toHaveCount(0); };
if (landingAudit) {
const landing = async locale => {
const heading = `${text(locale, 'landingHeroBefore')} ${text(locale, 'landingHeroAccent')}.`;
await expect(page.getByRole('heading', { level: 1, name: heading, exact: true })).toBeVisible();
};
await page.goto('http://localhost:4338/');
await landing(language);
await expect.poll(() => page.locator('img[src^="/mockups/"]').evaluateAll(images => images.filter(img => img.complete).length)).toBe(3);
if (!report.rawHtml) {
const response = await page.request.get('http://localhost:4338/');
assert.equal(response.status(), 200);
report.rawHtml = await page.evaluate(html => {
const raw = new DOMParser().parseFromString(html, 'text/html');
return { language: raw.documentElement.lang, title: raw.title, description: raw.querySelector('meta[name=description]')?.content ?? null, canonical: raw.querySelector('link[rel=canonical]')?.getAttribute('href') ?? null, alternateLanguages: [...raw.querySelectorAll('link[hreflang]')].map(link => link.hreflang), headings: [...raw.querySelectorAll('body h1')].map(heading => heading.textContent) };
}, await response.text());
}
const layout = await page.evaluate(() => ({
pageOverflow: document.documentElement.scrollWidth > innerWidth + 1,
landmarks: [...document.querySelectorAll('header, main, footer, nav')].map(node => node.tagName.toLowerCase()),
mockups: [...document.querySelectorAll('img[src^="/mockups/"]')].map(img => ({ src: img.getAttribute('src'), loaded: img.complete && img.naturalWidth > 0 })),
}));
const result = await new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa', 'best-practice']).analyze();
report.screens.push({ width, language, mode, state: 'landing-baseline', layout, violations: result.violations });
await page.screenshot({ path: path.join(out, `landing-${language}-${mode}-${width}.png`), fullPage: true });
await selectLanguage(other); await landing(other);
assert.equal(await page.evaluate(() => localStorage.getItem('uiLanguage')), other);
await selectLanguage(language); await landing(language);
await page.getByRole('link', { name: t('landingSeeFeatures'), exact: true }).press('Enter');
await expect.poll(() => new URL(page.url()).hash).toBe('#features');
await page.getByRole('button', { name: t('landingSignIn'), exact: true }).first().press('Enter');
await expect(page.getByRole('heading', { name: t('signInTitle'), level: 1, exact: true })).toBeVisible();
await page.goto('http://localhost:4338/'); await landing(language);
await page.getByRole('button', { name: t('landingPlanFreeCta'), exact: true }).press('Enter');
await expect(page.getByRole('heading', { name: t('createAccount'), level: 1, exact: true })).toBeVisible();
report.journeys.push({ width, language, mode, publicLanguageSwitch: 'PASS', featuresAnchorAndAuthNavigation: 'PASS', submissions: 'NOT RUN' });
await context.close(); continue;
}
await ready('/login', 'signInTitle', true); await scan('login');
await page.getByLabel(t('usernameOrEmail'), { exact: true }).fill('synthetic@example.test'); await page.getByLabel(t('profileCurrentPassword'), { exact: true }).fill('Synthetic unsubmitted example');
const reads = configReads; await selectLanguage(other);
await expect(page.getByLabel(text(other, 'usernameOrEmail'), { exact: true })).toHaveValue('synthetic@example.test'); await expect(page.getByLabel(text(other, 'profileCurrentPassword'), { exact: true })).toHaveValue('Synthetic unsubmitted example');
assert.equal(await page.evaluate(() => localStorage.getItem('uiLanguage')), other); assert.equal(configReads, reads); assert.equal(signIns, 0);
await selectLanguage(language); await page.getByLabel(t('usernameOrEmail'), { exact: true }).fill(''); await page.getByLabel(t('profileCurrentPassword'), { exact: true }).fill('');
await page.getByRole('button', { name: t('signInTitle'), exact: true }).click(); await expect(page.getByText(t('usernameOrEmailRequired'), { exact: true })).toBeVisible(); await scan('login-validation');
await ready('/register', 'createAccount', true); await scan('register'); await page.getByRole('button', { name: t('createAccount'), exact: true }).click(); await expect(page.getByText(t('emailRequired'), { exact: true })).toBeVisible(); await scan('register-validation');
await ready('/forgot-password', 'forgotPasswordTitle'); await scan('password-request'); await page.getByRole('button', { name: t('forgotPasswordSubmit'), exact: true }).click(); await expect(page.getByText(t('emailRequired'), { exact: true })).toBeVisible(); await scan('password-request-validation');
await ready('/reset-password?email=synthetic%40example.test&token=synthetic', 'resetPasswordTitle'); await expect(page.getByRole('button', { name: t('updatePassword'), exact: true })).toBeEnabled(); await scan('password-reset');
await page.getByRole('button', { name: t('updatePassword'), exact: true }).click(); await expect(page.getByLabel(t('profileNewPassword'), { exact: true })).toHaveAttribute('aria-invalid', 'true'); await scan('password-reset-validation');
for (const [url, title, errorKey, state] of [['/verify-email', 'verifyEmailTitle', 'missingVerifyLinkInfo', 'verify-missing'], ['/confirm-email-change', 'confirmEmailChangeTitle', 'missingEmailChangeLinkInfo', 'email-change-missing'], ['/microsoft-legacy-relink', 'microsoftLegacyRelinkTitle', 'microsoftLegacyRelinkMissing', 'microsoft-recovery-missing']]) {
await ready(url, title); await expect(page.getByRole('main').getByRole('alert')).toContainText(t(errorKey)); if (state === 'microsoft-recovery-missing') await expect(page.getByRole('button', { name: t('continueWithMicrosoft'), exact: true })).toBeDisabled(); await scan(state);
}
assert.equal(confirmations, 0); assert.equal(signIns, 0); assert.equal(challenges, 0);
for (const [url, title, successKey, state] of [['/verify-email?userId=synthetic-owner&token=synthetic-confirmation', 'verifyEmailTitle', 'verifyEmailSuccess', 'verify-success'], ['/confirm-email-change?userId=synthetic-owner&email=synthetic%40example.test&token=synthetic-confirmation', 'confirmEmailChangeTitle', 'confirmEmailChangeSuccess', 'email-change-success']]) {
const expected = confirmations + 1; await ready(url, title); await expect(page.getByRole('status')).toContainText(t(successKey)); await selectLanguage(other); await expect(page.getByRole('status')).toContainText(text(other, successKey)); await selectLanguage(language); assert.equal(confirmations, expected); await scan(state);
}
await ready('/login', 'signInTitle', true); await page.getByLabel(t('usernameOrEmail'), { exact: true }).fill('synthetic@example.test'); await page.getByLabel(t('profileCurrentPassword'), { exact: true }).fill('Synthetic challenge example'); await page.getByRole('button', { name: t('signInTitle'), exact: true }).click();
await page.getByLabel(t('twoFactorCodeLabel'), { exact: true }).fill('000000'); await page.getByRole('button', { name: t('twoFactorVerify'), exact: true }).click(); await expect(page.getByRole('main').getByRole('alert')).toContainText(t('twoFactorRateLimited'));
await selectLanguage(other); await expect(page.getByRole('main').getByRole('alert')).toContainText(text(other, 'twoFactorRateLimited')); await expect(page.getByLabel(text(other, 'twoFactorCodeLabel'), { exact: true })).toHaveValue('000000'); await selectLanguage(language); await scan('mfa-rate-limit');
assert.equal(confirmations, 2); assert.equal(signIns, 1); assert.equal(challenges, 1); report.journeys.push({ width, language, mode, publicLanguageAndDraft: 'PASS', clientValidationWithoutSubmission: 'PASS', confirmationLocaleWithoutReplay: 'PASS', mfaRateLimitAndCodeRetained: 'PASS' }); await context.close();
}
assert.equal(report.screens.length, configurations.length * (landingAudit ? 1 : 14)); assert.equal(report.journeys.length, configurations.length); assert.equal(report.confirmations.length, landingAudit ? 0 : configurations.length * 2); assert.equal(report.signIns.length, landingAudit ? 0 : configurations.length); assert.equal(report.challenges.length, landingAudit ? 0 : configurations.length);
assert.ok(report.screens.every(screen => screen.violations.length === 0)); assert.deepEqual(report.preferenceDenials, []); assert.deepEqual(report.errors, []); assert.deepEqual(report.unexpectedWrites, []); assert.deepEqual(report.unavailableReads, []); assert.ok(report.blockedExternal.every(origin => origin === 'https://fonts.googleapis.com'));
console.log(landingAudit ? `Audited ${report.screens.length} existing landing states. ${report.journeys.length} controlled navigation journeys passed. See recorded findings.` : `PASS:${report.journeys.length} public journeys,${report.screens.length} scans/captures; synthetic confirmations and MFA only.`);
} finally {
fs.writeFileSync(path.join(out, process.env.A3_PILOT ? 'PILOT.json' : 'BROWSER.json'), JSON.stringify({ ...report, limits: ['Every API response is intercepted; no real account, password, email delivery, verification, MFA or provider activation.', 'Synthetic confirmation tokens and challenge values cannot qualify server-side token, rate-limit or authentication enforcement.', 'No native/human, integrated security, release or production qualification.'] }, null, 2)); await browser.close();
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,629 @@
node : FAIL src/landing-page.test.tsx (9.641 s)
At line:1 char:1
+ node node_modules/jest/bin/jest.js --runInBand --runTestsByPath src/l ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (FAIL src/landing-page.test.tsx (9.641 s):String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
● public content is reachable through one main landmark separate from header and footer
TestingLibraryElementError: Unable to find an accessible element with the role "main"
Here are the accessible roles:
paragraph:
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-8snv7u-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-88irll-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-69zigq-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-h0dad7-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-1ywugkf-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-h0dad7-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-8hj93v-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-lpsiav-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-lpsiav-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-lpsiav-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-lpsiav-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-lpsiav-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-lpsiav-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-1ogsywi-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-jion45-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-1vjhck4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-jion45-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-1vjhck4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-jion45-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-1vjhck4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-jion45-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-1vjhck4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-jion45-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-1vjhck4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-jion45-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-1vjhck4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-h0dad7-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-8hj93v-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-1u5co4u-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-1u5co4u-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-1unda5x-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-vefrzx-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-1uztt2u-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-z0yr09-MuiTypography-root"
/>
--------------------------------------------------
group:
Name "Application language":
<div
aria-label="Application language"
class="MuiButtonGroup-root MuiButtonGroup-outlined MuiButtonGroup-horizontal
MuiButtonGroup-colorPrimary css-u6fmfy-MuiButtonGroup-root"
role="group"
/>
--------------------------------------------------
button:
Name "English":
<button
aria-label="English"
aria-pressed="true"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary
MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButtonGroup-grouped
MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedOutlined MuiButtonGroup-groupedOutlinedHorizontal
MuiButtonGroup-groupedOutlinedPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary
MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButtonGroup-grouped
MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedOutlined MuiButtonGroup-groupedOutlinedHorizontal
MuiButtonGroup-groupedOutlinedPrimary MuiButtonGroup-firstButton css-tm237w-MuiButtonBase-root-MuiButton-root"
lang="en"
tabindex="0"
type="button"
/>
Name "Norsk bokmål":
<button
aria-label="Norsk bokmål"
aria-pressed="false"
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary
MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButtonGroup-grouped
MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedOutlined MuiButtonGroup-groupedOutlinedHorizontal
MuiButtonGroup-groupedOutlinedPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall
MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButtonGroup-grouped MuiButtonGroup-groupedHorizontal
MuiButtonGroup-groupedOutlined MuiButtonGroup-groupedOutlinedHorizontal MuiButtonGroup-groupedOutlinedPrimary
MuiButtonGroup-lastButton css-74b9is-MuiButtonBase-root-MuiButton-root"
lang="nb"
tabindex="0"
type="button"
/>
Name "Sign in":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary
MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-disableElevation MuiButton-root
MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium
MuiButton-colorPrimary MuiButton-disableElevation css-xg69i6-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
Name "Get started":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary
MuiButton-sizeLarge MuiButton-containedSizeLarge MuiButton-colorPrimary MuiButton-disableElevation MuiButton-root
MuiButton-contained MuiButton-containedPrimary MuiButton-sizeLarge MuiButton-containedSizeLarge MuiButton-colorPrimary
MuiButton-disableElevation css-1iy5dy8-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
Name "Create a Free account":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary
MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary MuiButton-fullWidth MuiButton-root
MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary
MuiButton-fullWidth css-7ojbb2-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
Name "Sign in to view Pro":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary
MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-disableElevation
MuiButton-fullWidth MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium
MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-disableElevation MuiButton-fullWidth
css-1si4an9-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
Name "Sign in →":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary
MuiButton-sizeLarge MuiButton-containedSizeLarge MuiButton-colorPrimary MuiButton-disableElevation MuiButton-root
MuiButton-contained MuiButton-containedPrimary MuiButton-sizeLarge MuiButton-containedSizeLarge MuiButton-colorPrimary
MuiButton-disableElevation css-1ikfjcd-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
Name "Sign in":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary
MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text
MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary
css-r98byb-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
--------------------------------------------------
heading:
Name "Run your job search without losing the thread .":
<h1
class="MuiTypography-root MuiTypography-body1 css-xp5go3-MuiTypography-root"
/>
Name "Your whole search, at a glance":
<h2
class="MuiTypography-root MuiTypography-body1 css-5cqdzm-MuiTypography-root"
/>
Name "One workspace for the whole search":
<h2
class="MuiTypography-root MuiTypography-body1 css-fo8kax-MuiTypography-root"
/>
Name "From a link to an offer":
<h2
class="MuiTypography-root MuiTypography-body1 css-fo8kax-MuiTypography-root"
/>
Name "Two clear plans":
<h2
class="MuiTypography-root MuiTypography-body1 css-fo8kax-MuiTypography-root"
/>
Name "Free":
<h3
class="MuiTypography-root MuiTypography-body1 css-101xmb3-MuiTypography-root"
id="plan-free"
/>
Name "Pro":
<h3
class="MuiTypography-root MuiTypography-body1 css-101xmb3-MuiTypography-root"
id="plan-pro"
/>
--------------------------------------------------
link:
Name "See features":
<a
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary
MuiButton-sizeLarge MuiButton-outlinedSizeLarge MuiButton-colorPrimary MuiButton-root MuiButton-outlined
MuiButton-outlinedPrimary MuiButton-sizeLarge MuiButton-outlinedSizeLarge MuiButton-colorPrimary
css-484vrr-MuiButtonBase-root-MuiButton-root"
href="#features"
tabindex="0"
/>
--------------------------------------------------
img:
Name "Jobbjakt dashboard — KPIs, funnel, response trend and follow-ups":
<img
alt="Jobbjakt dashboard — KPIs, funnel, response trend and follow-ups"
class="MuiBox-root css-1pf0x3y"
src="/mockups/dashboard.svg"
/>
Name "Drag-and-drop pipeline board":
<img
alt="Drag-and-drop pipeline board"
class="MuiBox-root css-1pf0x3y"
src="/mockups/pipeline.svg"
/>
Name "Per-job workspace with match score, correspondence and attachments":
<img
alt="Per-job workspace with match score, correspondence and attachments"
class="MuiBox-root css-1pf0x3y"
src="/mockups/workspace.svg"
/>
--------------------------------------------------
region:
Name "Free":
<section
aria-labelledby="plan-free"
class="MuiBox-root css-1aena2c"
/>
Name "Pro":
<section
aria-labelledby="plan-pro"
class="MuiBox-root css-1yhjs04"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body>
<div>
<div
class="MuiBox-root css-1k9ek97"
>
<div
class="MuiBox-root css-922rya"
>
<div
class="MuiContainer-root MuiContainer-maxWidthLg css-5c1adp-MuiContainer-root"
>
<div
class="MuiStack-root css-paiku9-MuiStack-root"
>
<div
class="MuiStack-root css-19jlz5w-MuiStack-root"
>
<div
class="MuiBox-root css-2jp6ab"
>
✓
</div>
<p
class="MuiTypography-root MuiTypography-body1 css-8snv7u-MuiTypography-root"
>
Jobbjakt
</p>
</div>
<div
class="MuiStack-root css-kdc3n8-MuiStack-root"
>
<div
aria-label="Application language"
class="MuiButtonGroup-root MuiButtonGroup-outlined MuiButtonGroup-horizontal
MuiButtonGroup-colorPrimary css-u6fmfy-MuiButtonGroup-root"
role="group"
>
<button
aria-label="English"
aria-pressed="true"
class="MuiButtonBase-root MuiButton-root MuiButton-contained
MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary
MuiButtonGroup-grouped MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedOutlined
MuiButtonGroup-groupedOutlinedHorizontal MuiButtonGroup-groupedOutlinedPrimary MuiButton-root MuiButton-contained
MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary
MuiButtonGroup-grouped MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedOutlined
MuiButtonGroup-groupedOutlinedHorizontal MuiButtonGroup-groupedOutlinedPrimary MuiButtonGroup-firstButton
css-tm237w-MuiButtonBase-root-MuiButton-root"
lang="en"
tabindex="0"
type="button"
>
EN
</button>
<button
aria-label="Norsk bokmål"
aria-pressed="false"
class="MuiButtonBase-root MuiButton-root MuiButton-outlined
MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary
MuiButtonGroup-grouped MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedOutlined
MuiButtonGroup-groupedOutlinedHorizontal MuiButtonGroup-groupedOutlinedPrimary MuiButton-root MuiButton-outlined
MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary
MuiButtonGroup-grouped MuiButtonGroup-groupedHorizontal MuiButtonGroup-groupedOutlined
MuiButtonGroup-groupedOutlinedHorizontal MuiButtonGroup-groupedOutlinedPrimary MuiButtonGroup-lastButton
css-74b9is-MuiButtonBase-root-MuiButton-root"
lang="nb"
tabindex="0"
type="button"
>
NB
</button>
</div>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained
MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary
MuiButton-disableElevation MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium
MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-disableElevation
css-xg69i6-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Sign in
</button>
</div>
</div>
</div>
</div>
<div
class="MuiBox-root css-1c6h5d8"
>
<div
class="MuiContainer-root MuiContainer-maxWidthLg css-5c1adp-MuiContainer-root"
>
<div
class="MuiBox-root css-ld23xc"
>
<div
class="MuiBox-root css-1guva6p"
>
AI-ASSISTED JOB SEARCH WORKSPACE
</div>
<h1
class="MuiTypography-root MuiTypography-body1 css-xp5go3-MuiTypography-root"
>
Run your job search without losing
 
<span
class="MuiBox-root css-1n4n1k3"
>
the thread
</span>
.
</h1>
<p
class="MuiTypography-root MuiTypography-body1 css-88irll-MuiTypography-root"
>
Import a role, tailor your CV, track every application, and keep recruiter correspondence tied
to the right job — all in one focused workspace. Assistive, never autonomous: you approve every draft.
</p>
<div
class="MuiStack-root css-w7gobd-MuiStack-root"
>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained
MuiButton-containedPrimary MuiButton-sizeLarge MuiButton-containedSizeLarge MuiButton-colorPrimary
MuiButton-disableElevation MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeLarge
MuiButton-containedSizeLarge MuiButton-colorPrimary MuiButton-disableElevation
css-1iy5dy8-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Get started
</button>
<a
class="MuiButtonBase-root MuiButton-root MuiButton-outlined
MuiButton-outlinedPrimary MuiBu...
25 | render(<MemoryRouter><I18nProvider><LandingPage /></I18nProvider></MemoryRouter>);
26 | await screen.findByRole("heading", { name: "Two clear plans" });
> 27 | const main = screen.getByRole("main");
| ^
28 | expect(within(main).getByRole("heading", { level: 1 })).toBeInTheDocument();
29 | expect(within(main).getByRole("heading", { name: "Two clear plans" })).toBeInTheDocument();
30 | expect(main).not.toContainElement(screen.getByRole("banner"));
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByRole (src/landing-page.test.tsx:27:23)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 4 skipped, 5 total
Snapshots: 0 total
Time: 11.853 s
Ran all test suites within paths "src/landing-page.test.tsx".
Test results written to: ..\..\browser-restoration-20261117\landing-landmarks-red.json
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,52 @@
{
"applicationSource": "c536e091",
"qualificationHead": "d9fbed52",
"scope": "12 controlled anonymous rendered journeys; no actual identity/provider request",
"artifacts": [
{
"file": "BROWSER.json",
"bytes": 279294,
"sha256": "33aa51245c82feccbf7d2880f1dc629d4714ac756b2279b131b9ee67b9e6bd40"
},
{
"file": "build.txt",
"bytes": 592,
"sha256": "47c4e98408a969b95b31f2b88bda7a7862f2f677ef5d99d5d84ac84934864fd3"
},
{
"file": "build.txt.native.gz",
"bytes": 484,
"sha256": "ea9e34632b3377f950c90f46911d44f8e3b15205ff6dd442c4dc833a70da256a"
},
{
"file": "browser.txt",
"bytes": 363,
"sha256": "178bcdb49a9b9bcea6a1ede31dea679931768d11c71e87c47a3fac9c1cabcadb"
},
{
"file": "browser.txt.native.gz",
"bytes": 218,
"sha256": "dbf4626aaf58502b47e1277fb1caa7f527a5d9ea21877594cc920975774c8fb0"
},
{
"file": "harness.mjs.txt",
"bytes": 16014,
"sha256": "3cc33a244a865738566a1d56dccd9fa143ff6404b4134e12a21a89b3ca1b2488"
},
{
"file": "harness.mjs.txt.native.gz",
"bytes": 4616,
"sha256": "e69774adeec4c65feb0fa2b8a37901ace441725dc0706dc4761a3c27b2c5ff4c"
},
{
"file": "landing-en-light-1440.png",
"bytes": 857207,
"sha256": "587172f777a93c3333a26f8257b30f8ea84ea8724ab94bb4a1fa4d147055c6fa"
},
{
"file": "landing-nb-dark-320.png",
"bytes": 466798,
"sha256": "4c51ec5a53766805719d78be00c8692e83bd98c533f6761bf238b36d04f430c7"
}
]
}
@@ -0,0 +1,13 @@
Checking 320/en/light
Checking 320/en/dark
Checking 320/nb/light
Checking 320/nb/dark
Checking 768/en/light
Checking 768/en/dark
Checking 768/nb/light
Checking 768/nb/dark
Checking 1440/en/light
Checking 1440/en/dark
Checking 1440/nb/light
Checking 1440/nb/dark
Audited 12 existing landing states. 12 controlled navigation journeys passed. See recorded findings.
@@ -0,0 +1,23 @@
> job-tracker-ui@0.1.0 build
> node --max-old-space-size=4096 ./node_modules/next/dist/bin/next build
▲ Next.js 16.4.6 (Turbopack)
✓ Running next.config.js took 31ms
Creating an optimized production build ...
✓ Compiled successfully in 806ms
Running TypeScript ...
Finished TypeScript in 5.5s ...
Collecting page data using 4 workers ...
Generating static pages using 4 workers (0/3) ...
✓ Generating static pages using 4 workers (3/3) in 858ms
Finalizing page optimization ...
Route (app)
┌ ○ /
└ ○ /_not-found
○ (Static) prerendered as static content
@@ -0,0 +1,134 @@
// Actual public routes; synthetic confirmation/MFA responses, no real identity or provider access.
import { chromium, expect } from '@playwright/test';
import AxeBuilder from '@axe-core/playwright';
import ts from 'typescript';
import assert from 'node:assert/strict';
import fs from 'node:fs';
import path from 'node:path';
const compiled = ts.transpileModule(fs.readFileSync(new URL('../src/i18n/translations.ts', import.meta.url), 'utf8'), { compilerOptions: { module: ts.ModuleKind.ESNext } }).outputText;
const { translations } = await import(`data:text/javascript;base64,${Buffer.from(compiled).toString('base64')}`);
const landingAudit = process.env.A3_LANDING_AUDIT === '1';
const out = path.resolve(import.meta.dirname, '../../docs/ui-modernisation/evidence/landing-local-language/browser');
fs.mkdirSync(out, { recursive: true });
const report = { screens: [], journeys: [], confirmations: [], signIns: [], challenges: [], preferenceDenials: [], unexpectedWrites: [], unavailableReads: [], blockedExternal: [], errors: [] };
const browser = await chromium.launch();
try {
const widths = landingAudit ? [320, 768, 1440] : [320, 360, 390, 430, 768, 1024, 1280, 1440, 1920];
const configurations = process.env.A3_PILOT ? [[320, 'en', 'light']] : widths.flatMap(width => ['en', 'nb'].flatMap(language => ['light', 'dark'].map(mode => [width, language, mode])));
for (const [width, language, mode] of configurations) {
console.log(`Checking ${width}/${language}/${mode}`);
const other = language === 'en' ? 'nb' : 'en';
const text = (locale, key) => { assert.ok(translations[locale][key], key); return translations[locale][key]; };
const t = key => text(language, key);
const context = await browser.newContext({ viewport: { width, height: 1000 }, reducedMotion: 'reduce' });
const page = await context.newPage(); page.on('pageerror', error => report.errors.push(error.message));
await page.addInitScript(({ language, mode }) => { localStorage.setItem('uiLanguage', language); localStorage.setItem('jobtracker.themeMode', mode); }, { language, mode });
let configReads = 0, confirmations = 0, signIns = 0, challenges = 0;
await page.route('**/*', route => {
const req = route.request(), url = new URL(req.url()), p = url.pathname;
if (url.origin !== 'http://localhost:4338' && !(url.origin === 'http://localhost:5302' && p.startsWith('/api/'))) { report.blockedExternal.push(url.origin); return route.abort(); }
if (landingAudit && p === '/mockups/dashboard.svg') {
const mockup = fs.readFileSync(path.resolve(import.meta.dirname, '../out/mockups/dashboard.svg'), 'utf8');
const safeMockup = mockup.replace(/[\w.%+-]+@[\w.-]+\.[A-Za-z]{2,}/g, 'alex@example.test');
return route.fulfill({ status: 200, contentType: 'image/svg+xml', body: safeMockup });
}
if (!p.startsWith('/api/')) return route.continue();
const answer = data => route.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify(data) });
if (req.method() === 'GET' && p === '/api/auth/config') { configReads++; return answer({ requireAuth: true, localEnabled: true, allowRegistration: true, requireEmailVerification: true, googleEnabled: false, microsoftEnabled: false, turnstileEnabled: false }); }
if (landingAudit && req.method() === 'GET' && p === '/api/auth/me') return route.fulfill({ status: 401, contentType: 'application/json', body: '{}' });
if (landingAudit && req.method() === 'PUT' && p === '/api/auth/preferences/language') {
const preference = req.postDataJSON().language;
assert.ok(['en', 'nb-NO'].includes(preference));
report.preferenceDenials.push({ width, language, mode, preference });
return route.fulfill({ status: 401, contentType: 'application/json', body: '{}' });
}
if (landingAudit && req.method() !== 'GET') { report.unexpectedWrites.push(p); return route.abort(); }
if (req.method() === 'POST' && ['/api/auth/verify-email', '/api/auth/email-change/confirm'].includes(p)) {
const expected = { userId: 'synthetic-owner', ...(p.includes('email-change') ? { email: 'synthetic@example.test' } : {}), token: 'synthetic-confirmation' };
assert.deepEqual(req.postDataJSON(), expected); confirmations++; report.confirmations.push({ width, language, mode, path: p }); return answer({});
}
if (req.method() === 'POST' && p === '/api/auth/login') {
const body = req.postDataJSON(); assert.equal(body.email, 'synthetic@example.test'); assert.equal(body.password, 'Synthetic challenge example'); assert.equal(typeof body.rememberMe, 'boolean'); assert.deepEqual(Object.keys(body).sort(), ['email', 'password', 'rememberMe']);
signIns++; report.signIns.push({ width, language, mode }); return answer({ requiresTwoFactor: true, pendingToken: 'synthetic-pending' });
}
if (req.method() === 'POST' && p === '/api/auth/2fa/challenge') {
assert.deepEqual(req.postDataJSON(), { pendingToken: 'synthetic-pending', code: '000000', trustDevice: false }); challenges++; report.challenges.push({ width, language, mode });
return route.fulfill({ status: 429, contentType: 'application/problem+json', body: '{}' });
}
if (req.method() !== 'GET') { report.unexpectedWrites.push(p); return route.abort(); }
report.unavailableReads.push(p); return route.fulfill({ status: 503, contentType: 'application/json', body: '{}' });
});
const scan = async state => {
assert.equal(await page.evaluate(() => document.documentElement.scrollWidth > innerWidth + 1), false, `overflow:${state}`);
const result = await new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa']).analyze();
report.screens.push({ width, language, mode, state, violations: result.violations }); assert.deepEqual(result.violations, [], state);
await page.evaluate(() => window.scrollTo({ top: 0, behavior: 'instant' })); await page.screenshot({ path: path.join(out, `${state}-${language}-${mode}-${width}.png`), fullPage: true });
};
const selectLanguage = locale => page.getByRole('button', { name: locale === 'en' ? 'English' : 'Norsk bokmål', exact: true }).click();
const ready = async (url, title, config = false) => { await page.goto(`http://localhost:4338${url}`); await expect(page.getByRole('heading', { level: 1, name: t(title), exact: true })).toBeVisible(); if (config) await expect(page.getByText(t('loading'), { exact: true })).toHaveCount(0); };
if (landingAudit) {
const landing = async locale => {
const heading = `${text(locale, 'landingHeroBefore')} ${text(locale, 'landingHeroAccent')}.`;
await expect(page.getByRole('heading', { level: 1, name: heading, exact: true })).toBeVisible();
};
await page.goto('http://localhost:4338/');
await landing(language);
await expect.poll(() => page.locator('img[src^="/mockups/"]').evaluateAll(images => images.filter(img => img.complete).length)).toBe(3);
if (!report.rawHtml) {
const response = await page.request.get('http://localhost:4338/');
assert.equal(response.status(), 200);
report.rawHtml = await page.evaluate(html => {
const raw = new DOMParser().parseFromString(html, 'text/html');
return { language: raw.documentElement.lang, title: raw.title, description: raw.querySelector('meta[name=description]')?.content ?? null, canonical: raw.querySelector('link[rel=canonical]')?.getAttribute('href') ?? null, alternateLanguages: [...raw.querySelectorAll('link[hreflang]')].map(link => link.hreflang), headings: [...raw.querySelectorAll('body h1')].map(heading => heading.textContent) };
}, await response.text());
}
const layout = await page.evaluate(() => ({
pageOverflow: document.documentElement.scrollWidth > innerWidth + 1,
landmarks: [...document.querySelectorAll('header, main, footer, nav')].map(node => node.tagName.toLowerCase()),
mockups: [...document.querySelectorAll('img[src^="/mockups/"]')].map(img => ({ src: img.getAttribute('src'), loaded: img.complete && img.naturalWidth > 0 })),
}));
const result = await new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa', 'best-practice']).analyze();
report.screens.push({ width, language, mode, state: 'landing-baseline', layout, violations: result.violations });
await page.screenshot({ path: path.join(out, `landing-${language}-${mode}-${width}.png`), fullPage: true });
await selectLanguage(other); await landing(other);
assert.equal(await page.evaluate(() => localStorage.getItem('uiLanguage')), other);
await selectLanguage(language); await landing(language);
await page.getByRole('link', { name: t('landingSeeFeatures'), exact: true }).press('Enter');
await expect.poll(() => new URL(page.url()).hash).toBe('#features');
await page.getByRole('button', { name: t('landingSignIn'), exact: true }).first().press('Enter');
await expect(page.getByRole('heading', { name: t('signInTitle'), level: 1, exact: true })).toBeVisible();
await page.goto('http://localhost:4338/'); await landing(language);
await page.getByRole('button', { name: t('landingPlanFreeCta'), exact: true }).press('Enter');
await expect(page.getByRole('heading', { name: t('createAccount'), level: 1, exact: true })).toBeVisible();
report.journeys.push({ width, language, mode, publicLanguageSwitch: 'PASS', featuresAnchorAndAuthNavigation: 'PASS', submissions: 'NOT RUN' });
await context.close(); continue;
}
await ready('/login', 'signInTitle', true); await scan('login');
await page.getByLabel(t('usernameOrEmail'), { exact: true }).fill('synthetic@example.test'); await page.getByLabel(t('profileCurrentPassword'), { exact: true }).fill('Synthetic unsubmitted example');
const reads = configReads; await selectLanguage(other);
await expect(page.getByLabel(text(other, 'usernameOrEmail'), { exact: true })).toHaveValue('synthetic@example.test'); await expect(page.getByLabel(text(other, 'profileCurrentPassword'), { exact: true })).toHaveValue('Synthetic unsubmitted example');
assert.equal(await page.evaluate(() => localStorage.getItem('uiLanguage')), other); assert.equal(configReads, reads); assert.equal(signIns, 0);
await selectLanguage(language); await page.getByLabel(t('usernameOrEmail'), { exact: true }).fill(''); await page.getByLabel(t('profileCurrentPassword'), { exact: true }).fill('');
await page.getByRole('button', { name: t('signInTitle'), exact: true }).click(); await expect(page.getByText(t('usernameOrEmailRequired'), { exact: true })).toBeVisible(); await scan('login-validation');
await ready('/register', 'createAccount', true); await scan('register'); await page.getByRole('button', { name: t('createAccount'), exact: true }).click(); await expect(page.getByText(t('emailRequired'), { exact: true })).toBeVisible(); await scan('register-validation');
await ready('/forgot-password', 'forgotPasswordTitle'); await scan('password-request'); await page.getByRole('button', { name: t('forgotPasswordSubmit'), exact: true }).click(); await expect(page.getByText(t('emailRequired'), { exact: true })).toBeVisible(); await scan('password-request-validation');
await ready('/reset-password?email=synthetic%40example.test&token=synthetic', 'resetPasswordTitle'); await expect(page.getByRole('button', { name: t('updatePassword'), exact: true })).toBeEnabled(); await scan('password-reset');
await page.getByRole('button', { name: t('updatePassword'), exact: true }).click(); await expect(page.getByLabel(t('profileNewPassword'), { exact: true })).toHaveAttribute('aria-invalid', 'true'); await scan('password-reset-validation');
for (const [url, title, errorKey, state] of [['/verify-email', 'verifyEmailTitle', 'missingVerifyLinkInfo', 'verify-missing'], ['/confirm-email-change', 'confirmEmailChangeTitle', 'missingEmailChangeLinkInfo', 'email-change-missing'], ['/microsoft-legacy-relink', 'microsoftLegacyRelinkTitle', 'microsoftLegacyRelinkMissing', 'microsoft-recovery-missing']]) {
await ready(url, title); await expect(page.getByRole('main').getByRole('alert')).toContainText(t(errorKey)); if (state === 'microsoft-recovery-missing') await expect(page.getByRole('button', { name: t('continueWithMicrosoft'), exact: true })).toBeDisabled(); await scan(state);
}
assert.equal(confirmations, 0); assert.equal(signIns, 0); assert.equal(challenges, 0);
for (const [url, title, successKey, state] of [['/verify-email?userId=synthetic-owner&token=synthetic-confirmation', 'verifyEmailTitle', 'verifyEmailSuccess', 'verify-success'], ['/confirm-email-change?userId=synthetic-owner&email=synthetic%40example.test&token=synthetic-confirmation', 'confirmEmailChangeTitle', 'confirmEmailChangeSuccess', 'email-change-success']]) {
const expected = confirmations + 1; await ready(url, title); await expect(page.getByRole('status')).toContainText(t(successKey)); await selectLanguage(other); await expect(page.getByRole('status')).toContainText(text(other, successKey)); await selectLanguage(language); assert.equal(confirmations, expected); await scan(state);
}
await ready('/login', 'signInTitle', true); await page.getByLabel(t('usernameOrEmail'), { exact: true }).fill('synthetic@example.test'); await page.getByLabel(t('profileCurrentPassword'), { exact: true }).fill('Synthetic challenge example'); await page.getByRole('button', { name: t('signInTitle'), exact: true }).click();
await page.getByLabel(t('twoFactorCodeLabel'), { exact: true }).fill('000000'); await page.getByRole('button', { name: t('twoFactorVerify'), exact: true }).click(); await expect(page.getByRole('main').getByRole('alert')).toContainText(t('twoFactorRateLimited'));
await selectLanguage(other); await expect(page.getByRole('main').getByRole('alert')).toContainText(text(other, 'twoFactorRateLimited')); await expect(page.getByLabel(text(other, 'twoFactorCodeLabel'), { exact: true })).toHaveValue('000000'); await selectLanguage(language); await scan('mfa-rate-limit');
assert.equal(confirmations, 2); assert.equal(signIns, 1); assert.equal(challenges, 1); report.journeys.push({ width, language, mode, publicLanguageAndDraft: 'PASS', clientValidationWithoutSubmission: 'PASS', confirmationLocaleWithoutReplay: 'PASS', mfaRateLimitAndCodeRetained: 'PASS' }); await context.close();
}
assert.equal(report.screens.length, configurations.length * (landingAudit ? 1 : 14)); assert.equal(report.journeys.length, configurations.length); assert.equal(report.confirmations.length, landingAudit ? 0 : configurations.length * 2); assert.equal(report.signIns.length, landingAudit ? 0 : configurations.length); assert.equal(report.challenges.length, landingAudit ? 0 : configurations.length);
assert.deepEqual(report.preferenceDenials, []); assert.deepEqual(report.errors, []); assert.deepEqual(report.unexpectedWrites, []); assert.deepEqual(report.unavailableReads, []); assert.ok(report.blockedExternal.every(origin => origin === 'https://fonts.googleapis.com'));
console.log(landingAudit ? `Audited ${report.screens.length} existing landing states. ${report.journeys.length} controlled navigation journeys passed. See recorded findings.` : `PASS:${report.journeys.length} public journeys,${report.screens.length} scans/captures; synthetic confirmations and MFA only.`);
} finally {
fs.writeFileSync(path.join(out, process.env.A3_PILOT ? 'PILOT.json' : 'BROWSER.json'), JSON.stringify({ ...report, limits: ['Every API response is intercepted; no real account, password, email delivery, verification, MFA or provider activation.', 'Synthetic confirmation tokens and challenge values cannot qualify server-side token, rate-limit or authentication enforcement.', 'No native/human, integrated security, release or production qualification.'] }, null, 2)); await browser.close();
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 837 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 KiB

@@ -0,0 +1,76 @@
{
"source": "0765b15133da62b86fcc9a8bc29eb8d39c42d1a9",
"qualificationHead": "4eb8a2933bc415619449c56aaecc7d61b35d703d",
"artifacts": [
{
"file": "final-integrated-browser.json",
"rawBytes": 18243058,
"rawSha256": "d760c44750d296dd613c2e2b40ccf411fde332072e550119e93e9b812e5ca3a9",
"gzipSha256": "a401b49362657e1ff05ef761c05a3163c62ef983412392da518daf12d08d9913",
"readableSha256": "d760c44750d296dd613c2e2b40ccf411fde332072e550119e93e9b812e5ca3a9"
},
{
"file": "final-integrated-browser.txt",
"rawBytes": 35456,
"rawSha256": "c80d2ac2cc4af4e78a882fe443cf6ddc723ad2b51b0597cb7c1807394af67376",
"gzipSha256": "173ded2533e5cf8b7a33172a1ab577bfb576520e9a21d8393f3a9b1c869705eb",
"readableSha256": "331230b22df370020711f15952b80b8771e356669ea21b6cd19fdfad7047f0a1"
},
{
"file": "final-integrated-build.txt",
"rawBytes": 1198,
"rawSha256": "70993c436767495479c084028f696098bdc42405acd41a344a3780531180fab3",
"gzipSha256": "4386e50a577a8b8be5108e1626e54ff8eb208455a7084d7621fd6a1bdf818ce5",
"readableSha256": "03a5b237d5301d5f1c017a24854859fd1f8e5fe03a884d35c8a50c3327b5d65b"
},
{
"file": "final-integrated-lint.txt",
"rawBytes": 126,
"rawSha256": "70b99199998f4015dc89fd257334e3305134d5cdbacd266edade2a0cd3879813",
"gzipSha256": "e4f328fce264b72a40febec1945aeea71ac2ce2ce5821f1eb15e22550a090ffb",
"readableSha256": "90b7cd72b55fedd90de76daaa13f3c58e1b051481ede133c1904168b2f6bf6b0"
}
],
"sources": [
{
"path": "job-tracker-ui/package.json",
"gitBlob": "46c3aee468a332372aae874d56ea645a1c8836d7"
},
{
"path": "job-tracker-ui/package-lock.json",
"gitBlob": "4c277d454e1164b1e24f21f463b5251052e53eaa"
},
{
"path": "job-tracker-ui/playwright.config.ts",
"gitBlob": "f879fa74c763bc5a535d0544a7bc67005aef5dd6"
},
{
"path": "job-tracker-ui/e2e/phase7-application-forms.spec.ts",
"gitBlob": "923ce19a99dff94b3d9b29ea9bd2322dd0cd5e60"
},
{
"path": "job-tracker-ui/e2e/phase7-career-overview.spec.ts",
"gitBlob": "e7571f37dd5077db6e351f3ddb2670f54dafb6b0"
},
{
"path": "job-tracker-ui/e2e/phase7-discovery.spec.ts",
"gitBlob": "4fffcdf8f26c1afdc3e2645c6100bb5769537f70"
},
{
"path": "job-tracker-ui/e2e/phase7-documents.spec.ts",
"gitBlob": "e6f5537c4884b20c5d21639f589e22438b2ebb52"
},
{
"path": "job-tracker-ui/e2e/phase7-cv-library.spec.ts",
"gitBlob": "38dc5debfa9307eee2820ad0d2a934d1c3bd755a"
}
],
"stats": {
"startTime": "2026-11-18T00:29:36.693Z",
"duration": 292377.201,
"expected": 44,
"skipped": 0,
"unexpected": 0,
"flaky": 0
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,112 @@
[WebServer] Using launch settings from ..\JobTrackerApi\Properties\launchSettings.json...
[WebServer] warn: Microsoft.EntityFrameworkCore.Migrations[30200]
[WebServer] An operation of type 'SqlOperation' will be attempted while a rebuild of table 'JobApplications' is pending. The database may not be in an expected state. Review the SQL generated by this migration to help diagnose any failures. Consider moving these operations to a subsequent migration.
[WebServer] warn: Microsoft.EntityFrameworkCore.Migrations[20410]
[WebServer] The migration operation 'PRAGMA foreign_keys = 0;
[WebServer] ' from migration 'AddJobEntityAndProspectStages' cannot be executed in a transaction. If the app is terminated or an unrecoverable error occurs while this operation is being executed then the migration will be left in a partially applied state and would need to be reverted manually before it can be applied again. Create a separate migration that contains just this operation.
[WebServer] warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
[WebServer] No XML encryptor configured. Key {3ca3fbf3-cf67-4b23-a44d-7158372c8d0e} may be persisted to storage in unencrypted form.
node : [WebServer] (node:36332) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
At line:1 char:538
+ ... wser.json"; node node_modules/@playwright/test/cli.js test e2e/phase7 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ([WebServer] (no... env being set.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
[WebServer] (Use `node --trace-warnings ...` to show where the warning was created)
Running 44 tests using 1 worker
(node:18868) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
(Use `node --trace-warnings ...` to show where the warning was created)
[WebServer] fail: Microsoft.EntityFrameworkCore.Database.Command[20102]
[WebServer] Failed executing DbCommand (3ms) [Parameters=[@p0='?' (Size = 15), @p1='?' (Size = 11), @p2='?' (DbType = DateTimeOffset), @p3='?' (DbType = DateTimeOffset), @p4='?' (Size = 74), @p5='?' (DbType = Boolean), @p6='?' (DbType = Boolean), @p7='?' (DbType = Int32), @p8='?' (Size = 36), @p9='?' (Size = 11), @p10='?' (DbType = Int32), @p11='?' (Size = 7), @p12='?' (Size = 18), @p13='?' (Size = 18), @p14='?' (DbType = DateTimeOffset)], CommandType='Text', CommandTimeout='30']
[WebServer] INSERT INTO "ApplicationChecklistItems" ("AutoSignal", "Category", "CompletedAt", "CreatedAtUtc", "Description", "IsAutoCompleted", "IsSystemGenerated", "JobApplicationId", "OwnerUserId", "Section", "SortOrder", "Status", "SystemKey", "Title", "UpdatedAtUtc")
[WebServer] VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14)
[WebServer] RETURNING "Id";
[WebServer] fail: Microsoft.EntityFrameworkCore.Update[10000]
[WebServer] An exception occurred in the database while saving changes for context type 'JobTrackerApi.Data.JobTrackerContext'.
[WebServer] Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
[WebServer] ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: ApplicationChecklistItems.JobApplicationId, ApplicationChecklistItems.SystemKey'.
[WebServer] at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
[WebServer] at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
[WebServer] at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
[WebServer] at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
[WebServer] --- End of inner exception stack trace ---
[WebServer] at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChangesAsync(IList`1 entries, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
[WebServer] Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
[WebServer] ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: ApplicationChecklistItems.JobApplicationId, ApplicationChecklistItems.SystemKey'.
[WebServer] at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
[WebServer] at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
[WebServer] at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
[WebServer] at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
[WebServer] --- End of inner exception stack trace ---
[WebServer] at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChangesAsync(IList`1 entries, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
[WebServer] at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
ok 1 [chromium] › e2e\phase7-application-forms.spec.ts:164:1 › [P7-06 PRES-W01 W04 W10] same-route job navigation waits for owned answers and preserves both jobs on save (6.9s)
ok 2 [chromium] › e2e\phase7-application-forms.spec.ts:227:1 › [P7-11 E08] Strategy failed reads remain distinct from exact not-generated state and retry only GET in both locales (7.0s)
ok 3 [chromium] › e2e\phase7-application-forms.spec.ts:255:1 › [P7-06 forms] held CV read Retry preserves its request and actual attach/replace/detach remain owner scoped (4.3s)
ok 4 [chromium] › e2e\phase7-application-forms.spec.ts:293:1 › [P7-06 forms] long letter failed held Save retains snapshot and dirty restore Cancel writes nothing before additive explicit restore (6.2s)
ok 5 [chromium] › e2e\phase7-application-forms.spec.ts:333:1 › [P7-06 forms] failed held Answers save preserves both drafts and ordinary Notes through explicit recovery and reload (5.4s)
ok 6 [chromium] › e2e\phase7-application-forms.spec.ts:361:1 › [P7-06 forms] actual native capture freezes CV and exact archive bytes after current sources change without renderer mutation (31.7s)
ok 7 [chromium] › e2e\phase7-application-forms.spec.ts:399:1 › [P7-06 forms] failed preserved detail and download retain history and Retry only the original owned read (4.8s)
ok 8 [chromium] › e2e\phase7-application-forms.spec.ts:426:1 › [P7-06 forms] live EN/Bokmal retains dirty letter and both answer drafts without asset GET or writes (4.7s)
[WebServer] warn: Microsoft.EntityFrameworkCore.Query[20504]
[WebServer] Compiling a query which loads related collections for more than one collection navigation, either via 'Include' or through projection, but no 'QuerySplittingBehavior' has been configured. By default, Entity Framework will use 'QuerySplittingBehavior.SingleQuery', which can potentially result in slow query performance. See https://go.microsoft.com/fwlink/?linkid=2134277 for more information. To identify the query that's triggering this warning call 'ConfigureWarnings(w => w.Throw(RelationalEventId.MultipleCollectionIncludeWarning))'.
ok 9 [chromium] › e2e\phase7-application-forms.spec.ts:451:1 › [P7-06 forms] real duplicate then failed attach preserves created copy and original without automatic duplicate retry (3.5s)
ok 10 [chromium] › e2e\phase7-application-forms.spec.ts:487:1 › [P7-06 forms] eight finite bilingual theme widths keep long CV, letter, drafts and frozen preview usable with keyboard (51.7s)
ok 11 [chromium] › e2e\phase7-application-forms.spec.ts:544:1 › [P7-06 forms] controlled language HTTP503 preserves local dirty drafts and Retry only repeats the language request (4.6s)
ok 12 [chromium] › e2e\phase7-career-overview.spec.ts:106:1 › [P7-02 PRES-C04 E09] real SQLite evidence list preserves owner boundaries and existing validation (536ms)
ok 13 [chromium] › e2e\phase7-career-overview.spec.ts:139:3 › [P7-02 PRES-C01 C02 C04 C05 E08 E09] nb/dark 320px overview and factual evidence preserve canonical source and recent CV links (3.9s)
ok 14 [chromium] › e2e\phase7-career-overview.spec.ts:139:3 › [P7-02 PRES-C01 C02 C04 C05 E08 E09] en/light 360px overview and factual evidence preserve canonical source and recent CV links (4.1s)
ok 15 [chromium] › e2e\phase7-career-overview.spec.ts:139:3 › [P7-02 PRES-C01 C02 C04 C05 E08 E09] nb/light 390px overview and factual evidence preserve canonical source and recent CV links (3.8s)
ok 16 [chromium] › e2e\phase7-career-overview.spec.ts:139:3 › [P7-02 PRES-C01 C02 C04 C05 E08 E09] en/dark 768px overview and factual evidence preserve canonical source and recent CV links (4.6s)
ok 17 [chromium] › e2e\phase7-career-overview.spec.ts:139:3 › [P7-02 PRES-C01 C02 C04 C05 E08 E09] nb/dark 1024px overview and factual evidence preserve canonical source and recent CV links (4.2s)
ok 18 [chromium] › e2e\phase7-career-overview.spec.ts:139:3 › [P7-02 PRES-C01 C02 C04 C05 E08 E09] en/light 1280px overview and factual evidence preserve canonical source and recent CV links (4.4s)
ok 19 [chromium] › e2e\phase7-career-overview.spec.ts:139:3 › [P7-02 PRES-C01 C02 C04 C05 E08 E09] nb/light 1440px overview and factual evidence preserve canonical source and recent CV links (4.5s)
ok 20 [chromium] › e2e\phase7-career-overview.spec.ts:139:3 › [P7-02 PRES-C01 C02 C04 C05 E08 E09] en/dark 1920px overview and factual evidence preserve canonical source and recent CV links (4.6s)
ok 21 [chromium] › e2e\phase7-career-overview.spec.ts:191:3 › [P7-02 PRES-C02 E09] unavailable /career/profile stays unknown and retries its reads without writes or false first-run guidance (2.3s)
ok 22 [chromium] › e2e\phase7-career-overview.spec.ts:191:3 › [P7-02 PRES-C02 E09] unavailable /profile-cv/runs stays unknown and retries its reads without writes or false first-run guidance (2.3s)
ok 23 [chromium] › e2e\phase7-career-overview.spec.ts:191:3 › [P7-02 PRES-C02 E09] unavailable /cv/variants stays unknown and retries its reads without writes or false first-run guidance (2.3s)
ok 24 [chromium] › e2e\phase7-career-overview.spec.ts:229:1 › [P7-02 PRES-C04 E09] evidence pending/failure/read retry and failed save preserve drafts across section changes, cancellation and actual deletion (6.5s)
ok 25 [chromium] › e2e\phase7-career-overview.spec.ts:331:1 › [P7-02 PRES-C01 C02] existing raw source copy and history entry remain read-only (2.1s)
ok 26 [chromium] › e2e\phase7-cv-library.spec.ts:264:1 › [P7-04 connected C01 C05 C07 C08 C10] native profile save to selected-source CV creation, scoped edit, preview and explicit PDF (9.0s)
ok 27 [chromium] › e2e\phase7-discovery.spec.ts:213:1 › [P7-05 Discovery] saved A to manual search clears saved-result context and preserves native saved rows (2.3s)
ok 28 [chromium] › e2e\phase7-discovery.spec.ts:236:1 › [P7-05 Discovery] held saved B removes A rows, locks all mutations and starts one request (2.5s)
ok 29 [chromium] › e2e\phase7-discovery.spec.ts:274:1 › [P7-05 Discovery] failed saved-run Retry posts the same ID with stable keyboard focus and held progress (3.2s)
ok 30 [chromium] › e2e\phase7-discovery.spec.ts:314:1 › [P7-05 Discovery] mutation failures retain drafts and current rows without offering an unrelated manual-search retry (3.0s)
ok 31 [chromium] › e2e\phase7-discovery.spec.ts:372:1 › [P7-05 Discovery] keyboard native create and alert updates persist; delete Cancel restores focus and held delete starts once (7.9s)
ok 32 [chromium] › e2e\phase7-discovery.spec.ts:459:1 › [P7-05 Discovery] contextual Dismiss preserves a row on real missing-result denial and qualifies intercepted UI recovery (3.9s)
ok 33 [chromium] › e2e\phase7-discovery.spec.ts:530:1 › [P7-05 Discovery] eight finite responsive locale/theme states retain source labels and all-enabled accessibility vectors (18.7s)
ok 34 [chromium] › e2e\phase7-discovery.spec.ts:576:1 › [P7-05 Discovery] header locale change retains drafts, selected saved source and rows without discovery refetch (2.3s)
ok 35 [chromium] › e2e\phase7-documents.spec.ts:76:1 › [P7-07 Documents] seven owned metadata kinds retain honest source actions and frozen provenance after current source deletion (2.8s)
ok 36 [chromium] › e2e\phase7-documents.spec.ts:85:1 › [P7-07 Documents] server pages filter history owned job selection and reload preserve unknown query and hash (4.9s)
ok 37 [chromium] › e2e\phase7-documents.spec.ts:92:1 › [P7-07 Documents] initial503 Retry and incompatible held query expose no stale actions or false empty state (2.3s)
ok 38 [chromium] › e2e\phase7-documents.spec.ts:100:1 › [P7-07 Documents] stale CV opens the existing missing-source error and Back plus explicit Refresh removes its metadata (2.1s)
ok 39 [chromium] › e2e\phase7-documents.spec.ts:106:1 › [P7-11 E08 C05] transient private CV entry recovers GET reads and keyboard focus without saving (6.0s)
ok 40 [chromium] › e2e\phase7-documents.spec.ts:133:1 › [P7-11 E08] unknown routes have bilingual contextual headings and preserve browser history (6.4s)
ok 41 [chromium] › e2e\phase7-documents.spec.ts:148:1 › [P7-07 Documents] explicit authenticated attachment GET retries exact bytes and a real404 offers only list Refresh (2.4s)
ok 42 [chromium] › e2e\phase7-documents.spec.ts:154:1 › [P7-07 Documents] actual sign-out clears private rows and a separate owner sees only its own metadata (3.1s)
ok 43 [chromium] › e2e\phase7-documents.spec.ts:159:1 › [P7-07 Documents] existing letter source keeps dirty edits on navigation Cancel and reindexes only the explicit saved revision (3.5s)
ok 44 [chromium] › e2e\phase7-documents.spec.ts:167:1 › [P7-07 Documents] eight finite bilingual theme widths retain long metadata keyboard actions and complete axe vectors (16.6s)
44 passed (4.9m)
@@ -0,0 +1,23 @@
> job-tracker-ui@0.1.0 build
> node --max-old-space-size=4096 ./node_modules/next/dist/bin/next build
▲ Next.js 16.4.6 (Turbopack)
✓ Running next.config.js took 31ms
Creating an optimized production build ...
✓ Compiled successfully in 450ms
Running TypeScript ...
Finished TypeScript in 6.3s ...
Collecting page data using 4 workers ...
Generating static pages using 4 workers (0/3) ...
✓ Generating static pages using 4 workers (3/3) in 1005ms
Finalizing page optimization ...
Route (app)
┌ ○ /
└ ○ /_not-found
○ (Static) prerendered as static content
@@ -0,0 +1,4 @@
> job-tracker-ui@0.1.0 lint
> eslint . --max-warnings=0
@@ -34,7 +34,7 @@ Owner correction: 3 November 2026. This register extends IM10 and the original 3
| V24 | Calendar workflow | Scheduling updates reminder card but leaves adjacent agenda stale | RESOLVED inc0ef4171;23 native cases and8 configurations/48 connected states passed,16 intercepted status/date writes | Refresh only after committed follow-up change; preserve selected month/view; backend/provider/timezone/native/owner acceptance remains separate |
| V25 | Audit table timestamp | Tablet Bokmål capture wraps both the column heading and timestamp inside words | RESOLVED in `2dc8fe4c` | All six columns and locale formatting retained. Final fixture row stays compact. See [Audit date review](AUDIT_DATE_REVIEW.md) |
| V26 | Embedded Gmail review counts | One thread/suggestion renders “1 candidate threads” and “1 suggested jobs” | RESOLVED in `e8e7d839` | EN/NB singular cases, zero/plural and live language switching verified. See [review count wording](MAIL_REVIEW_COUNTS.md) |
| V27 | Public homepage baseline | Earlier mockups, missing landmarks and crawlable locale content, anonymous preference request rejected | OPEN in LAUNCH-SITE-01 | [Rendered baseline](LANDING_BASELINE_REVIEW.md) captures mobile, tablet and desktop without choosing a launch design |
| V27 | Public homepage baseline | Earlier mockups and crawlable locale content remain; anonymous preference requests and missing landmarks fixed | PARTIAL; LAUNCH-SITE-01 design/SEO open | [Local language](../LANDING_LOCAL_LANGUAGE.md) and [semantic landmarks](../LANDING_LANDMARKS.md):12 journeys/12 scoped scans pass,12 byte-identical screenshot pairs; human/launch acceptance open |
| V28 | Application list | Ordinary rows show permanent selection controls and company before the role | RESOLVED in `1246994c` | [Selection review](APPLICATION_SELECTION_REVIEW.md) covers title-first hierarchy and the explicit mode. Secondary action consolidation remains open. |
| V29 | Admin Users | Row details sit above the centre of the action controls | RESOLVED in `dddec043` | [Alignment review](ADMIN_USER_ALIGNMENT_REVIEW.md) records the before and after geometry and phone layout. |
| V30 | Admin System | Operators cannot tell when the displayed status response last succeeded | RESOLVED in `4981a242` | [Status refresh review](SYSTEM_STATUS_REFRESH_REVIEW.md) qualifies timestamp, stale warning and keyboard retry. Per-signal telemetry remains open. |
@@ -29,9 +29,9 @@
"LandingPage"
],
"visualStatus": "BASELINE_RENDERED_AUDIT_LAUNCH_DESIGN_OPEN",
"afterStatus": "AUDITED:12 existing public states; navigation passed and landmark/SEO findings remain open",
"afterStatus": "PASSED:12 existing public journeys and12 scoped axe scans; anonymous preference requests zero; visual design, SEO and human acceptance remain open",
"functionalCriteria": "Original preservation register retained; no capability acceptance promotion",
"evidence": "LANDING_BASELINE_REVIEW.md; evidence/landing-baseline/BROWSER.json"
"evidence": "LANDING_BASELINE_REVIEW.md; evidence/landing-baseline/BROWSER.json; ../LANDING_LOCAL_LANGUAGE.md; ../LANDING_LANDMARKS.md"
},
{
"route": "/dashboard",
@@ -396,7 +396,7 @@
"Empty/error/permission states; populated detail/filter/keyboard synthetic qualification passed; see ADMIN_REVIEW.md for remaining limits"
],
"/": [
"V27 landmarks, crawlable locale content, preview assets and anonymous preference request; launch design and claims gates remain separate"
"V27 crawlable locale content and preview assets; local preference and semantic landmarks qualified at36084473; launch design, claims and human acceptance gates remain separate"
]
},
"remainingConnectedJourneys": [
+115
View File
@@ -1,6 +1,9 @@
import AxeBuilder from '@axe-core/playwright';
import { spawnSync } from 'node:child_process';
import path from 'node:path';
import { expect, test as base, type APIRequestContext, type APIResponse, type Locator, type Page, type Response, type TestInfo } from '@playwright/test';
import { translations } from '../src/i18n/translations';
import type { Company, JobApplication } from '../src/types';
const apiUrl = 'http://localhost:5302/api';
const savedUrl = `${apiUrl}/job-discovery/saved-searches`;
@@ -210,6 +213,118 @@ async function capture(page: Page, info: TestInfo, sample: Sample, state: string
expect(axe.violations, `${name} complete axe violations`).toEqual([]);
}
for (const sample of [desktop, { language: 'nb', theme: 'dark', width: 390, height: 844 }] as Sample[]) {
test(`[P7-05 connected tracker] ${sample.language}/${sample.width} reviewed provider fixture becomes one durable owned application`, async ({ page, context, playwright, session }, info) => {
test.setTimeout(180_000);
const t = translations[sample.language];
const employer = await json<Company>(await page.request.post(`${apiUrl}/companies`, { headers: session.owner.headers,
data: { name: 'Synthetic community learning centre', location: 'Trondheim', source: 'User' } }), 201);
const canonical = await json<unknown>(await page.request.get(`${apiUrl}/career/profile`));
const job = { ...vacancy(`connected-${sample.language}`, 'Faglærer i kunst og håndverk — æøå'), company: employer.name };
const description = 'Syntetisk stilling: planlegg aktiviteter og undervisning i kunst og håndverk. Kilden beholdes ordrett — æøå.';
let searches = 0; let previews = 0; let detailViews = 0;
const trackerWrites: RequestRecord[] = [];
const choosers: string[] = [];
page.on('filechooser', () => choosers.push('unexpected chooser'));
page.on('request', request => {
const url = new URL(request.url());
if (request.method() !== 'GET' && /^\/api\/(?:jobapplications|companies|attachments)(?:\/|$)/.test(url.pathname)) {
trackerWrites.push({ method: request.method(), path: url.pathname, query: Object.fromEntries(url.searchParams), body: request.postData() ? request.postDataJSON() : null });
}
});
await page.route(`${searchUrl}**`, route => { searches++; return route.fulfill({ json: [job] }); });
await context.route(job.url, route => {
detailViews++;
return route.fulfill({ contentType: 'text/html; charset=utf-8', body: `<!doctype html><html lang="nb"><head><title>Synthetic listing detail</title><link rel="icon" href="data:,"></head><body><main><h1>${job.title}</h1><p>${description}</p></main></body></html>` });
});
await page.route(`${apiUrl}/jobimport/preview`, route => {
expect(route.request().method()).toBe('POST'); expect(route.request().postDataJSON()).toEqual({ url: job.url }); previews++;
return route.fulfill({ json: { success: true, title: job.title, company: employer.name, location: job.location,
description, language: 'nb', translatedDescription: null, sourceUrl: job.url, source: job.source, countryCode: job.countryCode, deadline: job.deadline, tags: [] } });
});
await enter(page, session.owner, sample);
await draftFilters(page, 'kunstlærer', 'Trondheim', sample.language);
await keyboardActivate(page, page.getByRole('button', { name: t.jobDiscoverySearchNav, exact: true }));
const row = article(page, job);
await expect(row.getByText('NAV Arbeidsplassen', { exact: true })).toBeVisible();
await expect(row.getByRole('link', { name: t.jobDiscoveryViewListing, exact: true })).toHaveAttribute('href', job.url);
const opening = page.waitForEvent('popup');
await keyboardActivate(page, row.getByRole('link', { name: t.jobDiscoveryViewListing, exact: true }));
const detail = await opening;
await expect(detail).toHaveURL(job.url);
await expect(detail.getByRole('heading', { name: job.title, exact: true })).toBeVisible();
await expect(detail.getByText(description, { exact: true })).toBeVisible();
await detail.close();
expect(detailViews).toBe(1); expect(searches).toBe(1);
await expect(page.getByLabel(t.jobDiscoveryRoleCompany, { exact: true })).toHaveValue('kunstlærer');
expect(trackerWrites).toEqual([]);
await capture(page, info, sample, 'connected-fixture-result-return');
const previewed = response(page, 'POST', `${apiUrl}/jobimport/preview`);
await keyboardActivate(page, row.getByRole('button', { name: t.jobDiscoverySaveTracker, exact: true }));
expect((await previewed).status()).toBe(200);
const dialog = page.getByRole('dialog');
await expect(dialog).toBeVisible();
await expect(dialog.getByLabel(t.addJobModalJobTitle, { exact: true })).toHaveValue(job.title);
await expect(dialog.getByLabel(t.addJobModalDescriptionOriginal, { exact: true })).toHaveValue(description);
await expect(dialog.getByLabel(t.addJobModalDescriptionLanguage, { exact: true })).toHaveValue('nb');
await expect(dialog.getByLabel(t.addJobModalJobUrl, { exact: true })).toHaveValue(job.url);
expect(previews).toBe(1); expect(trackerWrites).toEqual([]);
await keyboardActivate(page, dialog.getByRole('button', { name: t.continue, exact: true }));
for (let step = 2; step <= 4; step++) await keyboardActivate(page, dialog.getByRole('button', { name: t.skipAndContinue, exact: true }));
const createdResponse = response(page, 'POST', `${apiUrl}/jobapplications`);
await keyboardActivate(page, dialog.getByRole('button', { name: t.createJob, exact: true }));
const created = await json<JobApplication>(await createdResponse, 201);
await expect(dialog).toHaveCount(0);
const readback = await json<JobApplication>(await page.request.get(`${apiUrl}/jobapplications/${created.id}`));
expect(readback).toMatchObject({ id: created.id, jobTitle: job.title, companyId: employer.id, status: 'Saved', jobUrl: job.url,
description, descriptionLanguage: 'nb', followUpAt: null });
// Source/country belong to the linked opportunity, not the compatibility application DTO.
const dataRoot = String(info.config.metadata.isolatedDataRoot);
expect(path.basename(dataRoot)).toMatch(/^jobtracker-e2e-/);
const proof = spawnSync(process.platform === 'win32' ? 'python' : 'python3', ['-c', String.raw`
import json, sqlite3, sys
from pathlib import Path
from contextlib import closing
root = Path(sys.argv[1]).resolve(strict=True)
database = (root / 'jobtracker.db').resolve(strict=True)
assert root.name.startswith('jobtracker-e2e-') and database.parent == root
with closing(sqlite3.connect(database.as_uri() + '?mode=ro', uri=True)) as connection:
connection.execute('PRAGMA query_only=ON')
row = connection.execute('SELECT j.Source, j.CountryCode FROM JobApplications a JOIN Jobs j ON a.JobId=j.Id WHERE a.Id=? AND a.OwnerUserId=? AND j.OwnerUserId=?', (int(sys.argv[2]), sys.argv[3], sys.argv[3])).fetchone()
assert row is not None
print(json.dumps({'source': row[0], 'countryCode': row[1]}))
`, dataRoot, String(created.id), session.owner.id], { encoding: 'utf8' });
expect(proof.status, proof.stderr).toBe(0);
const opportunity = JSON.parse(proof.stdout) as { source: string; countryCode: string };
expect(opportunity).toEqual({ source: 'nav', countryCode: 'NO' });
expect(readback.deadline?.slice(0, 10)).toBe(job.deadline.slice(0, 10));
expect(trackerWrites).toHaveLength(1);
expect(trackerWrites[0]).toMatchObject({ method: 'POST', path: '/api/jobapplications', body: { companyId: employer.id, jobUrl: job.url, status: 'Saved', source: 'nav', countryCode: 'NO' } });
expect(choosers).toEqual([]);
await page.reload();
const tracked = page.getByRole(sample.width >= 768 ? 'row' : 'link', {
name: t.jobTableOpenJob.replace('{title}', job.title).replace('{company}', employer.name), exact: true });
await expect(tracked).toBeVisible();
const workspace = response(page, 'GET', `${apiUrl}/jobapplications/${created.id}/workspace`);
await keyboardActivate(page, tracked);
expect(await json<{ id: number; jobTitle: string; jobUrl: string; description: string }>(await workspace)).toMatchObject({ id: created.id, jobTitle: job.title, jobUrl: job.url, description });
await expect(page).toHaveURL(new RegExp(`/jobs/${created.id}$`));
const duplicates = await json<{ hasDuplicates: boolean; matches: Array<{ id: number }> }>(await page.request.get(`${apiUrl}/jobapplications/duplicate-check`, { params: { companyId: employer.id, jobTitle: job.title, jobUrl: job.url } }));
expect(duplicates.hasDuplicates).toBe(true); expect(duplicates.matches.map(match => match.id)).toContain(created.id);
const other = await playwright.request.newContext();
try {
await login(other, 'e2e@example.test');
expect((await other.get(`${apiUrl}/jobapplications/${created.id}`)).status()).toBe(404);
} finally { await other.dispose(); }
expect(await json<unknown>(await page.request.get(`${apiUrl}/career/profile`))).toEqual(canonical);
expect(await json<Company>(await page.request.get(`${apiUrl}/companies/${employer.id}`))).toMatchObject({ id: employer.id, name: employer.name, location: 'Trondheim', source: 'User' });
expect(trackerWrites).toHaveLength(1); expect(previews).toBe(1);
await info.attach('connected-native-tracker-readbacks', { body: JSON.stringify({ sample, job, readback, opportunity, duplicates, trackerWrites, searches, previews, detailViews, choosers,
qualification: 'Search, original-source popup HTML and import preview are explicitly synthetic route fixtures, with no provider fetch. Company setup/job POST/readbacks/duplicate check/foreign denial are actual disposable API. Source/country checked on the linked opportunity through a guarded read-only query of this fixture SQLite only; application DTO does not expose them. No full provider integration, canonical geography, import parser or automatic duplicate blocking claim.' }), contentType: 'application/json' });
await capture(page, info, sample, 'connected-native-workspace');
});
}
test('[P7-05 Discovery] saved A to manual search clears saved-result context and preserves native saved rows', async ({ page, session }, info) => {
const t = translations.en;
const saved = await createSaved(page, session.owner, 'Recorded saved search A');
+11 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import "@testing-library/jest-dom";
import { fireEvent, render, screen, waitFor } from "@testing-library/react";
import { fireEvent, render, screen, waitFor, within } from "@testing-library/react";
import { MemoryRouter } from "react-router-dom";
import { api } from "./api";
@@ -21,6 +21,16 @@ beforeEach(() => {
(api.get as jest.Mock).mockRejectedValue({ response: { status: 401 } });
});
test("public content is reachable through one main landmark separate from header and footer", async () => {
render(<MemoryRouter><I18nProvider><LandingPage /></I18nProvider></MemoryRouter>);
await screen.findByRole("heading", { name: "Two clear plans" });
const main = screen.getByRole("main");
expect(within(main).getByRole("heading", { level: 1 })).toBeInTheDocument();
expect(within(main).getByRole("heading", { name: "Two clear plans" })).toBeInTheDocument();
expect(main).not.toContainElement(screen.getByRole("banner"));
expect(main).not.toContainElement(screen.getByRole("contentinfo"));
});
test("shows exactly Free and Pro without invented commercial terms", async () => {
render(
<MemoryRouter>
+6 -3
View File
@@ -69,7 +69,7 @@ export default function LandingPage() {
if (checking) {
return (
<Box sx={{ minHeight: "100vh", display: "grid", placeItems: "center", bgcolor: BRAND_DARK }}>
<Box component="main" sx={{ minHeight: "100vh", display: "grid", placeItems: "center", bgcolor: BRAND_DARK }}>
<Typography sx={{ color: "#94a3b8" }}>{t("loading")}</Typography>
</Box>
);
@@ -91,7 +91,7 @@ export default function LandingPage() {
return (
<Box sx={{ bgcolor: "background.default" }}>
{/* Top bar */}
<Box sx={{ position: "sticky", top: 0, zIndex: 10, bgcolor: alpha(BRAND_DARK, 0.85), backdropFilter: "blur(8px)", borderBottom: `1px solid ${alpha("#ffffff", 0.08)}` }}>
<Box component="header" sx={{ position: "sticky", top: 0, zIndex: 10, bgcolor: alpha(BRAND_DARK, 0.85), backdropFilter: "blur(8px)", borderBottom: `1px solid ${alpha("#ffffff", 0.08)}` }}>
<Container maxWidth="lg">
<Stack direction="row" alignItems="center" justifyContent="space-between" sx={{ height: 64 }}>
<Stack direction="row" alignItems="center" spacing={1.25}>
@@ -108,6 +108,7 @@ export default function LandingPage() {
</Container>
</Box>
<Box component="main">
{/* Hero */}
<Box sx={{ background: `radial-gradient(1200px 500px at 80% -10%, ${alpha("#6366f1", 0.35)}, transparent), linear-gradient(180deg, ${BRAND_DARK}, ${BRAND_PANEL})`, color: "#fff", py: { xs: 8, md: 12 } }}>
<Container maxWidth="lg">
@@ -267,8 +268,10 @@ export default function LandingPage() {
</Box>
</Container>
</Box>
{/* Footer */}
<Box sx={{ borderTop: "1px solid", borderColor: "divider", py: 4 }}>
<Box component="footer" sx={{ borderTop: "1px solid", borderColor: "divider", py: 4 }}>
<Container maxWidth="lg">
<Stack direction={{ xs: "column", sm: "row" }} justifyContent="space-between" alignItems="center" spacing={1}>
<Typography sx={{ color: "text.secondary", fontSize: 14 }}>{t("landingFooter", { year: new Date().getFullYear() })}</Typography>