Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1db5f488f6 | |||
| 36084473c3 | |||
| 5b50cb2713 | |||
| d9fbed526b | |||
| c536e091b0 | |||
| 900ffb437d | |||
| 4eb8a2933b |
@@ -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 }));
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -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}
|
||||
Binary file not shown.
@@ -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.
|
||||
@@ -0,0 +1,39 @@
|
||||
# Local language choice on the anonymous landing page
|
||||
|
||||
18 November 2026. Baseline A3 `0765b15133da62b86fcc9a8bc29eb8d39c42d1a9`; isolated branch `codex/landing-local-language`. This is a two-line consumer fix, not a public-site redesign, new locale, commercial claim or launch acceptance.
|
||||
|
||||
## Behavior and boundary
|
||||
|
||||
The landing page first reads `/auth/me`: an authenticated result redirects to `/dashboard`; the anonymous/failure branch shows the public page. Its language toggle previously called the account-persisting `setLanguage`, attempting `/auth/preferences/language` despite being a public entry. The existing [landing baseline review](visual-correction/LANDING_BASELINE_REVIEW.md) observed 24 rejected preference requests across 12 controlled journeys. `LandingPage.tsx` has the same original Git blob `8d7bdb3d70954186af78be32d4cf422fdce584d2` at that historical baseline and the current A3 baseline, so the finding was not inferred from missing manual review.
|
||||
|
||||
Only `LandingPage` now passes the existing `setLocalLanguage` to `StackLanguageToggle`. EN/NB content, HTML language and browser-local choice still update and survive a fresh provider mount. The shared toggle, `I18nProvider`, authenticated account writer, failure/retry behavior, server-preference hydration, login/deep-link intent and auth redirect are unchanged. Account preference PUTs remain available to authenticated callers; no runtime auth heuristic, new option or second preference store is added. No new strings, visual layout, provider/model, API/schema/dependency or document-renderer change.
|
||||
|
||||
## Red/green verification
|
||||
|
||||
The existing landing-language case was extended to cover both EN→NB and NB→EN, localStorage/HTML/content, remount and zero preference PUTs. A separate authenticated-redirect control verifies the public page is not presented after a successful session read.
|
||||
|
||||
- Original runtime source with the new tests: **FAILED two cases / passed two controls**. Both failures were the zero-PUT assertion: exactly one rejected account-writer attempt would have occurred (`nb-NO` or `en`). Content/local language assertions had already passed. This is fresh deterministic JSDOM failure proof, separate from the older browser baseline.
|
||||
- Fixed final affected run: **13 cases / three suites PASSED**, zero failures/skips. Suites: `landing-page.test.tsx`, unchanged `i18n-provider.test.tsx`, unchanged `LandingPage.authRedirect.test.tsx`. Existing tests retain persisted account saves, localized retries, hydration without writeback and deep-link forwarding. Intermediate results overlap and are not added to 13.
|
||||
- PASSED: full non-incremental TypeScript (`--noEmit --incremental false`), scoped ESLint for the two changed files, and source diff whitespace check, exit 0 each. No source or rule warnings were suppressed.
|
||||
|
||||
Commands ran from `job-tracker-ui` with the existing qualified modules accessed through this worktree's own read-only junction to `next-security-patch/job-tracker-ui/node_modules`. No installation, lockfile or shared module mutation. Jest cache and TEMP/TMP remained under this E-drive worktree. Core final test command:
|
||||
|
||||
```text
|
||||
rtk proxy node node_modules/jest/bin/jest.js --runInBand --runTestsByPath src/landing-page.test.tsx src/i18n-provider.test.tsx src/LandingPage.authRedirect.test.tsx --cacheDirectory=<owned E-drive cache> --json --outputFile=../docs/ui-modernisation/evidence/landing-local-language/green-jest.json
|
||||
```
|
||||
|
||||
The raw Jest JSON/logs and exact source bindings are in [SOURCE_RECEIPTS.json](evidence/landing-local-language/SOURCE_RECEIPTS.json). Source hashes normalize CRLF to LF; native artifact hashes use exact bytes. PowerShell's stderr wrapper appears as `NativeCommandError` in captured logs, including the successful run; the child exit code and structured Jest outcome determine the result. The original failure messages remain intact.
|
||||
|
||||
## Limits and rollback
|
||||
|
||||
These are mocked API/JSDOM contract checks. No fresh browser, real preference API, cross-device account operation, public HTML/SEO, human/native-language/device/AT, security or whole-launch qualification is claimed. Root owns subsequent public-entry browser qualification. Existing launch design/claims and other roadmap gates remain open. No orchestrator, push, main merge or deployment.
|
||||
|
||||
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,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.
|
||||
Binary file not shown.
@@ -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
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -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
|
||||
Binary file not shown.
@@ -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
Binary file not shown.
@@ -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 "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-8snv7u-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-88irll-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-69zigq-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-h0dad7-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1ywugkf-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-h0dad7-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-8hj93v-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-lpsiav-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-lpsiav-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-lpsiav-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-lpsiav-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-lpsiav-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-lpsiav-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1ogsywi-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-jion45-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1vjhck4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-jion45-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1vjhck4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-jion45-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1vjhck4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-jion45-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1vjhck4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-jion45-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1vjhck4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-jion45-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1vjhck4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-h0dad7-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-8hj93v-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1u5co4u-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1u5co4u-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-yzndz4-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1unda5x-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-vefrzx-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-1uztt2u-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-z0yr09-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
group:
|
||||
|
||||
Name "Application language":
|
||||
[36m<div[39m
|
||||
[33maria-label[39m=[32m"Application language"[39m
|
||||
[33mclass[39m=[32m"MuiButtonGroup-root MuiButtonGroup-outlined MuiButtonGroup-horizontal
|
||||
MuiButtonGroup-colorPrimary css-u6fmfy-MuiButtonGroup-root"[39m
|
||||
[33mrole[39m=[32m"group"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
button:
|
||||
|
||||
Name "English":
|
||||
[36m<button[39m
|
||||
[33maria-label[39m=[32m"English"[39m
|
||||
[33maria-pressed[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mlang[39m=[32m"en"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Norsk bokmål":
|
||||
[36m<button[39m
|
||||
[33maria-label[39m=[32m"Norsk bokmål"[39m
|
||||
[33maria-pressed[39m=[32m"false"[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mlang[39m=[32m"nb"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Sign in":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Get started":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Create a Free account":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Sign in to view Pro":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Sign in →":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Sign in":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
heading:
|
||||
|
||||
Name "Run your job search without losing the thread .":
|
||||
[36m<h1[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-xp5go3-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Your whole search, at a glance":
|
||||
[36m<h2[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-5cqdzm-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "One workspace for the whole search":
|
||||
[36m<h2[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-fo8kax-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "From a link to an offer":
|
||||
[36m<h2[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-fo8kax-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Two clear plans":
|
||||
[36m<h2[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-fo8kax-MuiTypography-root"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Free":
|
||||
[36m<h3[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-101xmb3-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"plan-free"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Pro":
|
||||
[36m<h3[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-101xmb3-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"plan-pro"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
link:
|
||||
|
||||
Name "See features":
|
||||
[36m<a[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mhref[39m=[32m"#features"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
img:
|
||||
|
||||
Name "Jobbjakt dashboard — KPIs, funnel, response trend and follow-ups":
|
||||
[36m<img[39m
|
||||
[33malt[39m=[32m"Jobbjakt dashboard — KPIs, funnel, response trend and follow-ups"[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1pf0x3y"[39m
|
||||
[33msrc[39m=[32m"/mockups/dashboard.svg"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Drag-and-drop pipeline board":
|
||||
[36m<img[39m
|
||||
[33malt[39m=[32m"Drag-and-drop pipeline board"[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1pf0x3y"[39m
|
||||
[33msrc[39m=[32m"/mockups/pipeline.svg"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Per-job workspace with match score, correspondence and attachments":
|
||||
[36m<img[39m
|
||||
[33malt[39m=[32m"Per-job workspace with match score, correspondence and attachments"[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1pf0x3y"[39m
|
||||
[33msrc[39m=[32m"/mockups/workspace.svg"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
region:
|
||||
|
||||
Name "Free":
|
||||
[36m<section[39m
|
||||
[33maria-labelledby[39m=[32m"plan-free"[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1aena2c"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Pro":
|
||||
[36m<section[39m
|
||||
[33maria-labelledby[39m=[32m"plan-pro"[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1yhjs04"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
[36m<body>[39m
|
||||
[36m<div>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1k9ek97"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-922rya"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiContainer-root MuiContainer-maxWidthLg css-5c1adp-MuiContainer-root"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-paiku9-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-19jlz5w-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-2jp6ab"[39m
|
||||
[36m>[39m
|
||||
[0m✓[0m
|
||||
[36m</div>[39m
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-8snv7u-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mJobbjakt[0m
|
||||
[36m</p>[39m
|
||||
[36m</div>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-kdc3n8-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33maria-label[39m=[32m"Application language"[39m
|
||||
[33mclass[39m=[32m"MuiButtonGroup-root MuiButtonGroup-outlined MuiButtonGroup-horizontal
|
||||
MuiButtonGroup-colorPrimary css-u6fmfy-MuiButtonGroup-root"[39m
|
||||
[33mrole[39m=[32m"group"[39m
|
||||
[36m>[39m
|
||||
[36m<button[39m
|
||||
[33maria-label[39m=[32m"English"[39m
|
||||
[33maria-pressed[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mlang[39m=[32m"en"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m>[39m
|
||||
[0mEN[0m
|
||||
[36m</button>[39m
|
||||
[36m<button[39m
|
||||
[33maria-label[39m=[32m"Norsk bokmål"[39m
|
||||
[33maria-pressed[39m=[32m"false"[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mlang[39m=[32m"nb"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m>[39m
|
||||
[0mNB[0m
|
||||
[36m</button>[39m
|
||||
[36m</div>[39m
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m>[39m
|
||||
[0mSign in[0m
|
||||
[36m</button>[39m
|
||||
[36m</div>[39m
|
||||
[36m</div>[39m
|
||||
[36m</div>[39m
|
||||
[36m</div>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1c6h5d8"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiContainer-root MuiContainer-maxWidthLg css-5c1adp-MuiContainer-root"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-ld23xc"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1guva6p"[39m
|
||||
[36m>[39m
|
||||
[0mAI-ASSISTED JOB SEARCH WORKSPACE[0m
|
||||
[36m</div>[39m
|
||||
[36m<h1[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-xp5go3-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mRun your job search without losing[0m
|
||||
[0m [0m
|
||||
[36m<span[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1n4n1k3"[39m
|
||||
[36m>[39m
|
||||
[0mthe thread[0m
|
||||
[36m</span>[39m
|
||||
[0m.[0m
|
||||
[36m</h1>[39m
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-88irll-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mImport 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.[0m
|
||||
[36m</p>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-w7gobd-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m>[39m
|
||||
[0mGet started[0m
|
||||
[36m</button>[39m
|
||||
[36m<a[39m
|
||||
[33mclass[39m=[32m"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
|
||||
Binary file not shown.
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"baseline": "0765b15133da62b86fcc9a8bc29eb8d39c42d1a9",
|
||||
"redRuntimeSource": "0765b15133da62b86fcc9a8bc29eb8d39c42d1a9",
|
||||
"redOriginalLandingBlob": "8d7bdb3d70954186af78be32d4cf422fdce584d2",
|
||||
"hashPolicy": "UTF8 source normalized LF; native reports/logs exact raw bytes",
|
||||
"node": "v24.19.0",
|
||||
"sources": [
|
||||
{
|
||||
"file": "job-tracker-ui/src/views/LandingPage.tsx",
|
||||
"sha256Lf": "7669d0a13f2bfcd7b8398fa2105c0f3a5dc5a5130174a61e0d2b42b062da7ce7"
|
||||
},
|
||||
{
|
||||
"file": "job-tracker-ui/src/landing-page.test.tsx",
|
||||
"sha256Lf": "ef69cffc7c2d05df942e501a9f82e6d5677e36962c1ade4cf8fddfc01f06ea14"
|
||||
},
|
||||
{
|
||||
"file": "job-tracker-ui/src/i18n/I18nProvider.tsx",
|
||||
"sha256Lf": "d669c3682f3e53e36f8d0ebb8be72706996185b9e0f8025c62579c3a3470c7aa"
|
||||
},
|
||||
{
|
||||
"file": "job-tracker-ui/src/i18n-provider.test.tsx",
|
||||
"sha256Lf": "520b8559ebd0c206649008c98705c24bd8caac7e00a642984a75b11f7d851fbe"
|
||||
},
|
||||
{
|
||||
"file": "job-tracker-ui/src/LandingPage.authRedirect.test.tsx",
|
||||
"sha256Lf": "3aac7d0b9fa8606765cf657d0d850d448c6bec8ef8e4fa39eebd3c25bb326bf6"
|
||||
},
|
||||
{
|
||||
"file": "job-tracker-ui/jest.config.cjs",
|
||||
"sha256Lf": "de323cd3aa8693b11a028b2c026682f05ab988d182ed860861a051d66e53c286"
|
||||
}
|
||||
],
|
||||
"reports": [
|
||||
{
|
||||
"file": "red-jest.json",
|
||||
"bytes": 4929,
|
||||
"sha256": "d5822546a5bcb980202b7df9e95ee9a02a83ed34e1b00cdd319a5d4cef1047b0"
|
||||
},
|
||||
{
|
||||
"file": "red-jest.log",
|
||||
"bytes": 4156,
|
||||
"sha256": "bec064e62bab12b323c63d8db72c237427d9fb1ff26d09e5feb02f6f1f8762d4"
|
||||
},
|
||||
{
|
||||
"file": "green-jest.json",
|
||||
"bytes": 6423,
|
||||
"sha256": "6c55ed6ea016b6894deaa840a5a408b5902e16e6ddd5c76a5c4015281922700f"
|
||||
},
|
||||
{
|
||||
"file": "green-jest.log",
|
||||
"bytes": 1322,
|
||||
"sha256": "ff585aa79ebb81cf8dd04157a71c15cd00a918cda758127d72dd569e20d1f181"
|
||||
},
|
||||
{
|
||||
"file": "typecheck.log",
|
||||
"bytes": 0,
|
||||
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
},
|
||||
{
|
||||
"file": "lint.log",
|
||||
"bytes": 0,
|
||||
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
}
|
||||
],
|
||||
"red": {
|
||||
"passed": 2,
|
||||
"failed": 2,
|
||||
"total": 4
|
||||
},
|
||||
"green": {
|
||||
"passed": 13,
|
||||
"failed": 0,
|
||||
"pending": 0,
|
||||
"suites": 3
|
||||
},
|
||||
"scope": "Mocked JSDOM public language, authenticated preference, redirect and deep-link contracts; no native browser/API/provider/launch acceptance",
|
||||
"checks": {
|
||||
"typecheck": {
|
||||
"command": "node node_modules/typescript/bin/tsc --noEmit --incremental false",
|
||||
"exitCode": 0
|
||||
},
|
||||
"lint": {
|
||||
"command": "node node_modules/eslint/bin/eslint.js src/views/LandingPage.tsx src/landing-page.test.tsx",
|
||||
"exitCode": 0
|
||||
},
|
||||
"diff": {
|
||||
"command": "rtk git diff --check",
|
||||
"exitCode": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
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.
|
||||
Binary file not shown.
@@ -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
|
||||
|
||||
Binary file not shown.
@@ -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();
|
||||
}
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
|
After Width: | Height: | Size: 837 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 456 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1 @@
|
||||
{"numFailedTestSuites":1,"numFailedTests":2,"numPassedTestSuites":0,"numPassedTests":2,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":1,"numTotalTests":4,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1794961647677,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":250,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"shows exactly Free and Pro without invented commercial terms","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794961651256,"status":"passed","title":"shows exactly Free and Pro without invented commercial terms"},{"ancestorTitles":[],"duration":111,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/auth/preferences/language\", {\"language\": \"nb-NO\"}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/auth/preferences/language\", {\"language\": \"nb-NO\"}\n at toHaveBeenCalled (E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\landing-local-language\\job-tracker-ui\\src\\landing-page.test.tsx:54:23)"],"fullName":"public landing language en → Norsk bokmål survives remount without an account preference write","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794961651507,"status":"failed","title":"public landing language en → Norsk bokmål survives remount without an account preference write"},{"ancestorTitles":[],"duration":117,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/auth/preferences/language\", {\"language\": \"en\"}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/auth/preferences/language\", {\"language\": \"en\"}\n at toHaveBeenCalled (E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\landing-local-language\\job-tracker-ui\\src\\landing-page.test.tsx:54:23)"],"fullName":"public landing language nb → English survives remount without an account preference write","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794961651623,"status":"failed","title":"public landing language nb → English survives remount without an account preference write"},{"ancestorTitles":[],"duration":76,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"an authenticated landing visitor still redirects without changing account language","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794961651741,"status":"passed","title":"an authenticated landing visitor still redirects without changing account language"}],"endTime":1794961651832,"message":" ● public landing language en → Norsk bokmål survives remount without an account preference write\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: \"/auth/preferences/language\", {\"language\": \"nb-NO\"}\n\n 52 | expect(localStorage.getItem(\"uiLanguage\")).toBe(local);\n 53 | expect(document.documentElement.lang).toBe(htmlLanguage);\n > 54 | expect(api.put).not.toHaveBeenCalled();\n | ^\n 55 |\n 56 | view.unmount();\n 57 | render(<MemoryRouter><I18nProvider><LandingPage /></I18nProvider></MemoryRouter>);\n\n at toHaveBeenCalled (src/landing-page.test.tsx:54:23)\n\n ● public landing language nb → English survives remount without an account preference write\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: \"/auth/preferences/language\", {\"language\": \"en\"}\n\n 52 | expect(localStorage.getItem(\"uiLanguage\")).toBe(local);\n 53 | expect(document.documentElement.lang).toBe(htmlLanguage);\n > 54 | expect(api.put).not.toHaveBeenCalled();\n | ^\n 55 |\n 56 | view.unmount();\n 57 | render(<MemoryRouter><I18nProvider><LandingPage /></I18nProvider></MemoryRouter>);\n\n at toHaveBeenCalled (src/landing-page.test.tsx:54:23)\n","name":"E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\landing-local-language\\job-tracker-ui\\src\\landing-page.test.tsx","startTime":1794961648624,"status":"failed","summary":""}],"wasInterrupted":false}
|
||||
Binary file not shown.
@@ -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
|
||||
}
|
||||
}
|
||||
+2898
File diff suppressed because one or more lines are too long
BIN
Binary file not shown.
+112
@@ -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)
|
||||
BIN
Binary file not shown.
@@ -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
|
||||
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
|
||||
> job-tracker-ui@0.1.0 lint
|
||||
> eslint . --max-warnings=0
|
||||
|
||||
BIN
Binary file not shown.
@@ -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": [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import "@testing-library/jest-dom";
|
||||
import { fireEvent, render, screen } 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>
|
||||
@@ -40,10 +50,32 @@ test("shows exactly Free and Pro without invented commercial terms", async () =>
|
||||
expect(mockNavigate).toHaveBeenCalledWith("/login", { state: { from: "/settings" } });
|
||||
});
|
||||
|
||||
test("switches the public landing page to Norwegian Bokmål", async () => {
|
||||
test.each([
|
||||
["en", "Norsk bokmål", "nb", "nb-NO", "To tydelige alternativer"],
|
||||
["nb", "English", "en", "en", "Two clear plans"],
|
||||
])("public landing language %s → %s survives remount without an account preference write", async (initial, button, local, htmlLanguage, heading) => {
|
||||
localStorage.setItem("uiLanguage", initial);
|
||||
const view = render(<MemoryRouter><I18nProvider><LandingPage /></I18nProvider></MemoryRouter>);
|
||||
|
||||
fireEvent.click(await screen.findByRole("button", { name: button }));
|
||||
expect(await screen.findByRole("heading", { name: heading })).toBeInTheDocument();
|
||||
expect(localStorage.getItem("uiLanguage")).toBe(local);
|
||||
expect(document.documentElement.lang).toBe(htmlLanguage);
|
||||
expect(api.put).not.toHaveBeenCalled();
|
||||
|
||||
view.unmount();
|
||||
render(<MemoryRouter><I18nProvider><LandingPage /></I18nProvider></MemoryRouter>);
|
||||
expect(await screen.findByRole("heading", { name: heading })).toBeInTheDocument();
|
||||
expect(api.get).toHaveBeenCalledTimes(2);
|
||||
expect(api.get).toHaveBeenLastCalledWith("/auth/me");
|
||||
expect(api.put).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
test("an authenticated landing visitor still redirects without changing account language", async () => {
|
||||
(api.get as jest.Mock).mockResolvedValueOnce({ data: { id: "synthetic-owner" } });
|
||||
render(<MemoryRouter><I18nProvider><LandingPage /></I18nProvider></MemoryRouter>);
|
||||
|
||||
fireEvent.click(await screen.findByRole("button", { name: "Norsk bokmål" }));
|
||||
expect(await screen.findByRole("heading", { name: "To tydelige alternativer" })).toBeInTheDocument();
|
||||
expect(screen.getByRole("button", { name: "Opprett en Free-konto" })).toBeInTheDocument();
|
||||
await waitFor(() => expect(mockNavigate).toHaveBeenCalledWith("/dashboard", { replace: true }));
|
||||
expect(screen.queryByRole("heading", { name: "Two clear plans" })).not.toBeInTheDocument();
|
||||
expect(api.put).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -41,7 +41,7 @@ const STEPS: { n: number; title: TranslationKey; body: TranslationKey }[] = [
|
||||
|
||||
export default function LandingPage() {
|
||||
const navigate = useNavigate();
|
||||
const { language, setLanguage, t } = useI18n();
|
||||
const { language, setLocalLanguage, t } = useI18n();
|
||||
const location = useLocation() as { state?: { from?: string } };
|
||||
const [checking, setChecking] = useState(true);
|
||||
|
||||
@@ -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}>
|
||||
@@ -99,7 +99,7 @@ export default function LandingPage() {
|
||||
<Typography sx={{ color: "#fff", fontWeight: 800, fontSize: 20 }}>Jobbjakt</Typography>
|
||||
</Stack>
|
||||
<Stack direction="row" alignItems="center" spacing={1}>
|
||||
<StackLanguageToggle language={language} setLanguage={setLanguage} onDark />
|
||||
<StackLanguageToggle language={language} setLanguage={setLocalLanguage} onDark />
|
||||
<GradientButton onClick={goToLogin} sx={{ color: "#0b1020", fontWeight: 700 }}>
|
||||
{t("landingSignIn")}
|
||||
</GradientButton>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user