From abca6b05cb6a7e77446df68c295e7da33e9e88ad Mon Sep 17 00:00:00 2001 From: cesnimda Date: Thu, 3 Dec 2026 19:08:05 +0100 Subject: [PATCH 01/18] fix(ci): test document extraction with its pinned Python runtime --- .gitea/workflows/ci-deploy.yml | 55 +++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/ci-deploy.yml b/.gitea/workflows/ci-deploy.yml index a6fa4b84..c15f05a8 100644 --- a/.gitea/workflows/ci-deploy.yml +++ b/.gitea/workflows/ci-deploy.yml @@ -93,26 +93,45 @@ jobs: # The Debian runner omits pip and python3-venv. Use pip's official # zipapp and install into the checkout so CI remains isolated without # sudo or a mutable runner-global Python environment. - curl -fsSLo /tmp/pip.pyz https://bootstrap.pypa.io/pip/pip.pyz - install_parser_dependencies() { - rm -rf .python-ci - parser_pip_cache="$(mktemp -d)" - PIP_CACHE_DIR="$parser_pip_cache" python3 /tmp/pip.pyz install --target .python-ci --require-hashes \ - --extra-index-url https://download.pytorch.org/whl/cpu \ - -r requirements-linux.lock + python_tmp="$(mktemp -d)" + trap 'rm -rf -- "$python_tmp"' EXIT + curl -fsSLo "$python_tmp/pip.pyz" https://bootstrap.pypa.io/pip/pip.pyz + install_locked() { + local interpreter="$1" destination="$2" attempt scratch + shift 2 + for attempt in 1 2 3; do + scratch="$(mktemp -d "$python_tmp/install.XXXXXX")" + if PIP_CACHE_DIR="$scratch/cache" "$interpreter" "$python_tmp/pip.pyz" install \ + --target "$scratch/site" --require-hashes "$@"; then + mv "$scratch/site" "$destination" + return + fi + echo "Locked Python dependency install attempt $attempt failed." + done + return 1 } - parser_install_succeeded=false - for attempt in 1 2 3; do - if install_parser_dependencies; then - parser_install_succeeded=true - break - fi - echo "Parser dependency install attempt $attempt failed — retrying with a fresh isolated cache..." - done - test "$parser_install_succeeded" = true - PIP_CACHE_DIR="$parser_pip_cache" python3 /tmp/pip.pyz install --upgrade --target .python-ci pytest==8.3.5 httpx2==2.12.0 python3 --version - PYTHONFAULTHANDLER=1 PYTHONPATH="$PWD/.python-ci" AI_SERVICE_SKIP_MODEL_LOAD=1 python3 -m pytest -q + install_locked python3 "$python_tmp/sidecar" --extra-index-url https://download.pytorch.org/whl/cpu \ + -r requirements-dev-linux.lock + PYTHONFAULTHANDLER=1 PYTHONPATH="$python_tmp/sidecar" AI_SERVICE_SKIP_MODEL_LOAD=1 \ + python3 -m pytest -q --ignore=tests/test_document_extractor.py + + # The CV parser uses a separate dependency set. Its lock already pins + # pluggy and pygments; add the remaining hashed pytest requirements. + # The Docling lock targets Python 3.12, while the Debian runner uses 3.11. + cv_archive="$python_tmp/cv-python.tar.gz" + curl -fsSL --retry 2 -o "$cv_archive" \ + 'https://github.com/astral-sh/python-build-standalone/releases/download/20250517/cpython-3.12.10%2B20250517-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz' + echo "0356bd1db292781a20e011d789f0c41ea5ec04731c8236c8185b53a54faf2871 $cv_archive" | sha256sum -c - + tar -xzf "$cv_archive" -C "$python_tmp" + cv_python="$python_tmp/python/bin/python3" + "$cv_python" --version + awk '/^[^[:space:]#]/ { include = /^(iniconfig|packaging|pytest)==/ } + include && !/^[[:space:]]*#/ { print }' requirements-dev-linux.lock > "$python_tmp/cv-test-tools.lock" + test "$(grep -Ec '^(iniconfig|packaging|pytest)==' "$python_tmp/cv-test-tools.lock")" -eq 3 + install_locked "$cv_python" "$python_tmp/cv-parser" -r requirements-cv-import.lock -r "$python_tmp/cv-test-tools.lock" + PYTHONFAULTHANDLER=1 PYTHONPATH="$python_tmp/cv-parser" OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 \ + "$cv_python" -m pytest -q tests/test_document_extractor.py - name: Restore backend # The runner/proxy has occasionally supplied checksum-invalid NuGet cache entries (NU3008). -- 2.52.0 From a4e483af2ceb5e07d130ae2ab9f396b91b0b9baf Mon Sep 17 00:00:00 2001 From: cesnimda Date: Thu, 3 Dec 2026 19:32:10 +0100 Subject: [PATCH 02/18] fix(deps): clear the A3 frontend audit failures --- job-tracker-ui/package-lock.json | 28 ++++++++++++++-------------- job-tracker-ui/package.json | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/job-tracker-ui/package-lock.json b/job-tracker-ui/package-lock.json index 4c277d45..53b21939 100644 --- a/job-tracker-ui/package-lock.json +++ b/job-tracker-ui/package-lock.json @@ -30,7 +30,7 @@ "react": "^19.2.4", "react-dom": "^19.2.4", "react-grid-layout": "2.3.0", - "react-router-dom": "^7.18.2", + "react-router-dom": "^7.18.5", "typescript": "^5.9.3", "web-vitals": "^2.1.4" }, @@ -6285,9 +6285,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.1.2.tgz", + "integrity": "sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==", "dev": true, "license": "MIT", "dependencies": { @@ -11055,9 +11055,9 @@ } }, "node_modules/react-router": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.2.tgz", - "integrity": "sha512-aUVMjFm3GAPTTZL7oYr5E7ETiqfQCHRLH+B+5afnICvf0r7kkK4eR6SMuwbSTJw/7t+12khT/Kahij49fqOCIg==", + "version": "7.18.5", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.5.tgz", + "integrity": "sha512-dTgvcXDOrLPrlLHrcZAqWveiK1hMSqN+rGAJzegP8HtmNkfRxOoshGWBNX3ZJ0cZjOHkRdlUJtaIhZMLLyGyPw==", "license": "MIT", "dependencies": { "cookie": "^1.0.1", @@ -11077,12 +11077,12 @@ } }, "node_modules/react-router-dom": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.2.tgz", - "integrity": "sha512-AIKJ/jgGlFb3EbfCXk5Gzshiwt+l3mqbCrNjmEWMMjqQxNJ3svBa6bgzFyCC2Sw3RA0VWF1kg3uQf2OFhxb8hw==", + "version": "7.18.5", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.5.tgz", + "integrity": "sha512-9HcfDMU6JJ/fp6gJZYGwNE6RknVGS4kBjH1HkNw959mCJi70TVwdipQWv2FEol9uGpi+SZTFtVpJPtEQfayeOw==", "license": "MIT", "dependencies": { - "react-router": "7.18.2" + "react-router": "7.18.5" }, "engines": { "node": ">=20.0.0" @@ -12749,9 +12749,9 @@ } }, "node_modules/ws": { - "version": "8.21.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.1.tgz", - "integrity": "sha512-+0NTnW77fFN/DjQi6k/Sq/Yvk4Sgajw7urW8V+asjXnRgDs9gyGkdb7EzgfhA4goXsRIZKE28fzIXBHEzhuiWw==", + "version": "8.23.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.23.1.tgz", + "integrity": "sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==", "dev": true, "license": "MIT", "engines": { diff --git a/job-tracker-ui/package.json b/job-tracker-ui/package.json index 46c3aee4..099e3ccc 100644 --- a/job-tracker-ui/package.json +++ b/job-tracker-ui/package.json @@ -25,7 +25,7 @@ "react": "^19.2.4", "react-dom": "^19.2.4", "react-grid-layout": "2.3.0", - "react-router-dom": "^7.18.2", + "react-router-dom": "^7.18.5", "typescript": "^5.9.3", "web-vitals": "^2.1.4" }, -- 2.52.0 From 933e553fe496d09ac1fb22d035cbf7021b7ce168 Mon Sep 17 00:00:00 2001 From: cesnimda Date: Fri, 4 Dec 2026 08:46:46 +0100 Subject: [PATCH 03/18] test: exercise responsive CV studio navigation --- .../e2e/builder-preview-keyboard.spec.ts | 34 +++++++++++-------- .../e2e/cv-settings-presentation.spec.ts | 11 +++--- .../e2e/helpers/cvStudioNavigation.ts | 18 ++++++++++ 3 files changed, 43 insertions(+), 20 deletions(-) create mode 100644 job-tracker-ui/e2e/helpers/cvStudioNavigation.ts diff --git a/job-tracker-ui/e2e/builder-preview-keyboard.spec.ts b/job-tracker-ui/e2e/builder-preview-keyboard.spec.ts index 375e6328..067b6ecc 100644 --- a/job-tracker-ui/e2e/builder-preview-keyboard.spec.ts +++ b/job-tracker-ui/e2e/builder-preview-keyboard.spec.ts @@ -1,6 +1,7 @@ import AxeBuilder from "@axe-core/playwright"; import { expect, test as base, type APIRequestContext, type Locator, type Page, type TestInfo } from "@playwright/test"; import { translations } from "../src/i18n/translations"; +import { cvStudioSectionPicker, openCvStudioSection } from "./helpers/cvStudioNavigation"; const apiUrl = "http://localhost:5302/api"; const password = "E2ePassword123!"; @@ -54,19 +55,24 @@ async function scan(page: Page, info: TestInfo, state: string) { expect(result.violations).toEqual([]); } -async function enterPreview(page: Page, region: Locator, start = page.getByRole("tab").last()) { +async function enterPreview(page: Page, region: Locator, language: "en" | "nb", start = page.getByRole("tab").last()) { // Content is primary in P5-09. Reach the named pane-navigation action through // the real tab order, rather than traversing every collapsed section control. - await start.focus(); - const previewEntry = page.getByRole("button", { name: /^(Go to preview|Gå til forhåndsvisning)$/ }); + const t = translations[language]; + const previewEntry = page.getByRole("button", { name: t.cvEditorFocusPreview, exact: true }); if (await previewEntry.isVisible()) { - await page.keyboard.press("Tab"); - await expect(page.getByRole("combobox", { name: /^(Go to section|Gå til seksjon)/ })).toBeFocused(); + const sections = cvStudioSectionPicker(page, t.cvEditorStudioNavigation); + await start.or(sections).focus({ timeout: 5000 }); + const section = page.getByRole("combobox", { name: t.cvEditorGoToSection, exact: true }); + await expect(section).toBeVisible(); + for (let i = 0; i < 12 && !(await section.evaluate(node => node === document.activeElement)); i++) await page.keyboard.press("Tab"); + await expect(section).toBeFocused(); await page.keyboard.press("Tab"); await expect(previewEntry).toBeFocused(); await page.keyboard.press("Enter"); } else { // Mobile retains its existing Edit/Preview button and native tab entry. + await start.focus({ timeout: 5000 }); for (let i = 0; i < 80 && !(await region.evaluate(node => node === document.activeElement)); i++) await page.keyboard.press("Tab"); } await expect(region).toBeFocused(); @@ -101,7 +107,7 @@ for (const [mode, language] of [["light", "en"], ["dark", "nb"], ["light", "nb"] await expect(page.locator("[data-cv-page]")).toHaveCount(1); const region = page.getByRole("region", { name: t.cvEditorLivePreview, exact: true }); await expect(region).toBeVisible(); - await enterPreview(page, region); + await enterPreview(page, region, language); await capture(page, info, `one-page-${suffix}`); const profileBefore = (await (await page.request.get(`${apiUrl}/career/profile`)).json()).profile; @@ -109,17 +115,15 @@ for (const [mode, language] of [["light", "en"], ["dark", "nb"], ["light", "nb"] await page.goto(`/career/builder/${owner.longId}`); await expect(frame.getByText("Åse Eksempel", { exact: true })).toBeVisible(); await expect.poll(() => page.locator("[data-cv-page]").count()).toBeGreaterThan(1); - await page.getByRole("tab", { name: t.cvEditorContent, exact: true }).click(); + await openCvStudioSection(page, t.cvEditorStudioNavigation, t.cvEditorContent); const headline = page.getByRole("textbox", { name: t.cvEditorHeadlineOverride, exact: true }); await headline.fill("Reviewed CV-only æøå"); await expect(page.getByText(t.cvEditorSaved, { exact: true })).toBeVisible(); await expect.poll(async () => (await (await page.request.get(`${apiUrl}/cv/variants/${owner.longId}`)).json()).settings.headline).toBe("Reviewed CV-only æøå"); await expect(region).toHaveAttribute("aria-busy", "false"); - await enterPreview(page, region); + await enterPreview(page, region, language); const top = await region.evaluate(node => node.scrollTop); - const pageDownSettled = region.evaluate(node => new Promise(resolve => node.addEventListener("scrollend", () => resolve(), { once: true }))); await page.keyboard.press("PageDown"); - await pageDownSettled; await expect.poll(() => region.evaluate(node => node.scrollTop)).toBeGreaterThan(top + 100); await page.keyboard.press("Control+End"); await expect.poll(() => region.evaluate(node => Math.abs(node.scrollHeight - node.clientHeight - node.scrollTop))).toBeLessThan(3); @@ -145,12 +149,12 @@ for (const [mode, language] of [["light", "en"], ["dark", "nb"], ["light", "nb"] for (const width of [390, 768, 899, 900, 1024, 1440]) { await page.setViewportSize({ width, height: width < 900 ? 844 : 900 }); - if (width < 900) { + if (width < 768) { const previewButton = page.getByRole("button", { name: t.cvEditorPreview, exact: true }); await previewButton.focus(); await previewButton.press("Enter"); await expect(region).toBeVisible(); - await enterPreview(page, region, previewButton); + await enterPreview(page, region, language, previewButton); await page.keyboard.press("PageDown"); await expect.poll(() => region.evaluate(node => node.scrollTop)).toBeGreaterThan(0); await capture(page, info, `preview-${width}-${suffix}`); @@ -158,13 +162,13 @@ for (const [mode, language] of [["light", "en"], ["dark", "nb"], ["light", "nb"] await expect(region).not.toBeVisible(); } else { await expect(region).toBeVisible(); - await enterPreview(page, region); + await enterPreview(page, region, language); await scan(page, info, `transition-${width}`); } await expect(headline).toHaveValue("Reviewed CV-only æøå"); } // Resizing while the preview owns focus must not hide that focused pane. - await enterPreview(page, region); + await enterPreview(page, region, language); await page.setViewportSize({ width: 390, height: 844 }); await expect(region).toBeVisible(); await expect(region).toBeFocused(); @@ -183,7 +187,7 @@ for (const [mode, language] of [["light", "en"], ["dark", "nb"], ["light", "nb"] await page.getByRole("button", { name: t.cvEditorUndo, exact: true }).click(); await expect(headline).toHaveValue(""); await expect(page.getByText(t.cvEditorUpdatingPreview, { exact: true })).toBeVisible(); - await enterPreview(page, region); + await enterPreview(page, region, language); await page.getByText(t.cvEditorUpdatingPreview, { exact: true }).evaluate(node => node.scrollIntoView({ block: "center" })); await capture(page, info, `loading-${suffix}`); failPreview(); diff --git a/job-tracker-ui/e2e/cv-settings-presentation.spec.ts b/job-tracker-ui/e2e/cv-settings-presentation.spec.ts index b4c4d43a..a1eba91a 100644 --- a/job-tracker-ui/e2e/cv-settings-presentation.spec.ts +++ b/job-tracker-ui/e2e/cv-settings-presentation.spec.ts @@ -3,6 +3,7 @@ import AxeBuilder from '@axe-core/playwright'; import fs from 'node:fs/promises'; import path from 'node:path'; import { translations } from '../src/i18n/translations'; +import { openCvStudioSection } from './helpers/cvStudioNavigation'; const apiUrl = 'http://localhost:5302/api'; const password = 'E2ePassword123!'; @@ -110,7 +111,7 @@ for (const [mode, language, premium] of [['light', 'en', false], ['dark', 'nb', await page.setViewportSize({ width: 1440, height: 900 }); await page.goto(`/career/builder/${cv.id}`); await expect(page.getByLabel(t.cvEditorName, { exact: true })).toHaveValue(cv.name); const before = await measure(page, browser, info, cvUrl, language, `${mode}-${language}-before`); - await page.getByRole('tab', { name: t.cvEditorCustomize, exact: true }).click(); + await openCvStudioSection(page, t.cvEditorStudioNavigation, t.cvEditorCustomize); const advanced = page.getByRole('button', { name: t.cvEditorAdvancedSettings, exact: true }); await expect(advanced).toHaveAttribute('aria-expanded', 'false'); await expect(page.getByRole('region', { name: t.cvEditorStyle, exact: true })).toBeVisible(); @@ -137,7 +138,7 @@ for (const [mode, language, premium] of [['light', 'en', false], ['dark', 'nb', expect(after.measured.tokens.find(token => token.token === 'R01')!.fontSize).not.toBe(before.measured.tokens.find(token => token.token === 'R01')!.fontSize); await fs.mkdir(output, { recursive: true }); await fs.writeFile(path.join(output, `${mode}-${language}-measurements.json`), JSON.stringify({ browserVersion: browser.version(), fixtures: [before, after] }, null, 2)); - const changed = await read(); await page.reload(); await page.getByRole('tab', { name: t.cvEditorCustomize, exact: true }).click(); + const changed = await read(); await page.reload(); await openCvStudioSection(page, t.cvEditorStudioNavigation, t.cvEditorCustomize); await expect(margin).toHaveValue('22'); // Reload starts the asynchronous preview layout again. Use its existing settled // state before pointer activation, so layout movement cannot select another field. @@ -155,7 +156,7 @@ for (const [mode, language, premium] of [['light', 'en', false], ['dark', 'nb', await advanced.scrollIntoViewIfNeeded(); await expect(advanced).toBeVisible(); await capture(page, info, `advanced-${width}`); } await scan(page, info, 'phone-advanced'); - await page.setViewportSize({ width: 1440, height: 900 }); await page.getByRole('tab', { name: t.cvEditorTemplate, exact: true }).click(); + await page.setViewportSize({ width: 1440, height: 900 }); await openCvStudioSection(page, t.cvEditorStudioNavigation, t.cvEditorTemplate); await page.getByRole('button', { name: t.cvEditorAllTemplates, exact: true }).click(); const technical = page.getByRole('button', { name: t.cvTemplateTechnicalName, exact: true }); await expect(technical).toHaveAttribute('aria-disabled', premium ? 'false' : 'true'); await expect(technical).toHaveAccessibleDescription(new RegExp(premium ? t.cvEditorProUnlocked : t.cvEditorPro)); @@ -176,13 +177,13 @@ for (const [mode, language, premium] of [['light', 'en', false], ['dark', 'nb', const selected = await read(); expect(selected.settings.themeId).toBe(premium ? 'technical' : 'code'); for (const key of ['accentColor', 'bodyFont', 'baseFontSizePt', 'pageMarginMm', 'entryGapMm', 'sectionGapMm', 'lineHeight']) expect(selected.settings[key]).toBeNull(); expect(selected.settings.sections).toEqual(changed.settings.sections); expect(selected.settings.pageSize).toBe('letter'); - await page.getByRole('tab', { name: t.cvEditorCustomize, exact: true }).click(); await advanced.click(); + await openCvStudioSection(page, t.cvEditorStudioNavigation, t.cvEditorCustomize); await advanced.click(); if (premium) { await expect(page.getByRole('spinbutton', { name: t.cvEditorSidebarWidth, exact: true })).toBeVisible(); await page.getByRole('spinbutton', { name: t.cvEditorSidebarWidth, exact: true }).fill('68'); await saved(); await expect.poll(async () => (await read()).settings.sidebarWidthMm).toBe(68); } await capture(page, info, 'selected-template-defaults'); expect(await (await page.request.get(`${apiUrl}/career/profile`)).json()).toEqual(source); expect(await (await page.request.get(`${apiUrl}/cv/variants/${sibling.id}`)).json()).toEqual(sibling); const beforeRestore = await read(); - await page.getByRole('tab', { name: t.cvEditorHistory, exact: true }).click(); + await openCvStudioSection(page, t.cvEditorStudioNavigation, t.cvEditorHistory); await page.getByRole('tabpanel', { name: t.cvEditorHistory, exact: true }).getByRole('button', { name: t.cvEditorRestoreTitle.replace('{version}', '1'), exact: true }).click(); await page.getByRole('dialog').getByRole('button', { name: t.cvEditorRestoreVersion, exact: true }).click(); await saved(); await expect.poll(async () => (await read()).version).toBe(beforeRestore.version + 1); diff --git a/job-tracker-ui/e2e/helpers/cvStudioNavigation.ts b/job-tracker-ui/e2e/helpers/cvStudioNavigation.ts new file mode 100644 index 00000000..b67761c3 --- /dev/null +++ b/job-tracker-ui/e2e/helpers/cvStudioNavigation.ts @@ -0,0 +1,18 @@ +import { expect, type Page } from '@playwright/test'; + +export function cvStudioSectionPicker(page: Page, navigation: string) { + return page.getByRole('combobox', { name: navigation }); +} + +export async function openCvStudioSection(page: Page, navigation: string, section: string) { + const tab = page.getByRole('tablist', { name: navigation, exact: true }).getByRole('tab', { name: section, exact: true }); + const picker = cvStudioSectionPicker(page, navigation); + await expect(tab.or(picker)).toBeVisible(); + if (await picker.isVisible()) { + await picker.click(); + await page.getByRole('option', { name: section, exact: true }).click(); + } else { + await tab.click(); + } + await expect(page.getByRole('tabpanel', { name: section, exact: true })).toBeVisible(); +} -- 2.52.0 From 7056fce297b430c0adb2794abc06ee5bce22e5f7 Mon Sep 17 00:00:00 2001 From: cesnimda Date: Fri, 4 Dec 2026 08:54:24 +0100 Subject: [PATCH 04/18] test: verify anonymous redirects against the public landing --- job-tracker-ui/e2e/functional-acceptance.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/job-tracker-ui/e2e/functional-acceptance.spec.ts b/job-tracker-ui/e2e/functional-acceptance.spec.ts index 449c8987..3ff77889 100644 --- a/job-tracker-ui/e2e/functional-acceptance.spec.ts +++ b/job-tracker-ui/e2e/functional-acceptance.spec.ts @@ -141,7 +141,8 @@ for (const identity of ['anonymous', 'normal', 'admin'] as const) { } if (protectedAnonymous) { await publicState(page, census[0]); - await expect(page.getByRole('main')).toHaveCount(0); + await expect(page.getByRole('main').getByRole('heading', { name: 'Two clear plans', exact: true })).toBeVisible(); + if (row.heading) await expect(page.getByRole('heading', { level: 1, name: row.heading, exact: true })).toHaveCount(0); } else if (row.public && !(row.pattern === '/' && identity !== 'anonymous')) await publicState(page, row); else { await expect(page.getByRole('heading', { level: 1, name: row.pattern === '/' ? t.dashboard : row.heading!, exact: true })).toBeVisible(); -- 2.52.0 From d1e2bd29f8450dd509bd96bf6fdcc4a16a6055b0 Mon Sep 17 00:00:00 2001 From: cesnimda Date: Fri, 4 Dec 2026 08:57:54 +0100 Subject: [PATCH 05/18] fix: keep CV studio navigation reachable --- job-tracker-ui/e2e/cv-editor-frame.spec.ts | 31 ++++++++++++------- .../e2e/cv-preview-presentation.spec.ts | 5 +-- .../e2e/cv-responsive-workflow.spec.ts | 12 ++++--- .../e2e/job-overview-presentation.spec.ts | 12 +++++-- job-tracker-ui/src/views/CvBuilderEditor.tsx | 4 ++- 5 files changed, 44 insertions(+), 20 deletions(-) diff --git a/job-tracker-ui/e2e/cv-editor-frame.spec.ts b/job-tracker-ui/e2e/cv-editor-frame.spec.ts index 722422b6..7c1bba3d 100644 --- a/job-tracker-ui/e2e/cv-editor-frame.spec.ts +++ b/job-tracker-ui/e2e/cv-editor-frame.spec.ts @@ -1,6 +1,7 @@ import { expect, test, type APIRequestContext, type Page, type TestInfo } from '@playwright/test'; import AxeBuilder from '@axe-core/playwright'; import { translations } from '../src/i18n/translations'; +import { cvStudioSectionPicker, openCvStudioSection } from './helpers/cvStudioNavigation'; const apiUrl = 'http://localhost:5302/api'; const password = 'E2ePassword123!'; @@ -58,7 +59,9 @@ for (const [mode, language] of [['light', 'en'], ['dark', 'nb'], ['light', 'nb'] await page.setViewportSize({ width: 1440, height: 900 }); await page.goto(`/career/builder/${cv.id}`); await expect(page.getByLabel(t.cvEditorName, { exact: true })).toHaveValue(cv.name); - await expect(page.getByRole('tab', { name: t.cvEditorContent, exact: true })).toHaveAttribute('aria-selected', 'true'); + const selectedContent = page.getByRole('tab', { name: t.cvEditorContent, exact: true, selected: true }); + const studioPicker = cvStudioSectionPicker(page, t.cvEditorStudioNavigation); + await expect(selectedContent.or(studioPicker.filter({ hasText: t.cvEditorContent }))).toBeVisible(); await expect(page.getByRole('tabpanel', { name: t.cvEditorContent, exact: true })).toBeVisible(); await expect(page.getByText(t.cvEditorScope, { exact: true })).toBeVisible(); await expect(page.getByRole('link', { name: t.cvEditorLinkedApplication })).toHaveAttribute('href', `/jobs/${jobId}`); @@ -102,11 +105,11 @@ for (const [mode, language] of [['light', 'en'], ['dark', 'nb'], ['light', 'nb'] await expect.poll(() => pending).toBe(true); await expect(page.getByText(t.cvEditorSaving, { exact: true })).toBeVisible(); await capture(page, info, 'pending-save'); - await page.getByRole('tab', { name: t.cvEditorCustomize, exact: true }).click(); + await openCvStudioSection(page, t.cvEditorStudioNavigation, t.cvEditorCustomize); await expect(page.getByLabel(t.cvEditorPageSize, { exact: true })).toBeVisible(); - await page.getByRole('tab', { name: t.cvEditorTemplate, exact: true }).click(); + await openCvStudioSection(page, t.cvEditorStudioNavigation, t.cvEditorTemplate); await expect(page.getByRole('button', { name: t.cvEditorAllTemplates, exact: true })).toBeVisible(); - await page.getByRole('tab', { name: t.cvEditorContent, exact: true }).click(); + await openCvStudioSection(page, t.cvEditorStudioNavigation, t.cvEditorContent); await expect(headline).toHaveValue('Local CV draft — æøå'); await expect(sectionSelect).toContainText('Frivillig arbeid og dokumenterte bidrag'); for (const width of [899, 900, 1024]) { @@ -144,29 +147,35 @@ for (const [mode, language] of [['light', 'en'], ['dark', 'nb'], ['light', 'nb'] expect((await pdfResponse).status()).toBe(200); expect((await download).suggestedFilename()).toMatch(/\.pdf$/i); await page.setViewportSize({ width: 1440, height: 900 }); - await page.getByRole('tab', { name: t.cvEditorHistory, exact: true }).click(); + await openCvStudioSection(page, t.cvEditorStudioNavigation, t.cvEditorHistory); const history = page.getByRole('tabpanel', { name: t.cvEditorHistory, exact: true }); await expect(history.getByText(t.cvEditorHistoryScope, { exact: true })).toBeVisible(); await expect(history.getByText(t.cvEditorVersion.replace('{version}', '1'), { exact: true })).toBeVisible(); await capture(page, info, 'history'); await scan(page, info, 'history'); - await page.getByRole('tab', { name: t.cvEditorAiTools, exact: true }).click(); + await openCvStudioSection(page, t.cvEditorStudioNavigation, t.cvEditorAiTools); await expect(page.getByRole('tabpanel', { name: t.cvEditorAiTools, exact: true })).toBeVisible(); - await page.getByRole('tab', { name: t.cvEditorContent, exact: true }).click(); + await openCvStudioSection(page, t.cvEditorStudioNavigation, t.cvEditorContent); await expect(sectionSelect).toContainText('Frivillig arbeid og dokumenterte bidrag'); await expect(page.getByRole('button', { name: label('cvEditorCollapseSection', 'Frivillig arbeid og dokumenterte bidrag'), exact: true })).toBeVisible(); for (const width of [768, 390, 320]) { await headline.focus(); await page.setViewportSize({ width, height: 844 }); await expect(editing).toBeVisible(); - await expect(page.getByRole('button', { name: t.cvEditorEdit, exact: true })).toHaveAttribute('aria-pressed', 'true'); + const compact = width < 768; + const edit = page.getByRole('button', { name: t.cvEditorEdit, exact: true }); + if (compact) await expect(edit).toHaveAttribute('aria-pressed', 'true'); + else await expect(edit).toHaveCount(0); await page.getByLabel(t.cvEditorName, { exact: true }).scrollIntoViewIfNeeded(); expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1)).toBe(true); await capture(page, info, `edit-${width}`); - await page.getByRole('button', { name: t.cvEditorPreview, exact: true }).click(); - await expect(page.getByRole('button', { name: t.cvEditorPreview, exact: true })).toHaveAttribute('aria-pressed', 'true'); + const previewEntry = page.getByRole('button', { name: compact ? t.cvEditorPreview : t.cvEditorFocusPreview, exact: true }); + await expect(previewEntry).toBeVisible(); + await previewEntry.click(); + if (compact) await expect(previewEntry).toHaveAttribute('aria-pressed', 'true'); const preview = page.getByRole('region', { name: t.cvEditorLivePreview, exact: true }); await expect(preview).toBeVisible(); await preview.focus(); await page.keyboard.press('End'); await capture(page, info, `preview-${width}`); - await page.getByRole('button', { name: t.cvEditorEdit, exact: true }).click(); + const editorEntry = compact ? edit : page.getByRole('button', { name: t.cvEditorFocusEditor, exact: true }); + await editorEntry.click(); await expect(headline).toHaveValue('Local CV draft — æøå'); } await scan(page, info, 'phone-edit'); diff --git a/job-tracker-ui/e2e/cv-preview-presentation.spec.ts b/job-tracker-ui/e2e/cv-preview-presentation.spec.ts index 15ea2b5b..bce8ac03 100644 --- a/job-tracker-ui/e2e/cv-preview-presentation.spec.ts +++ b/job-tracker-ui/e2e/cv-preview-presentation.spec.ts @@ -22,7 +22,7 @@ async function capture(scope: Locator, info: TestInfo, state: string) { await info.attach(`${state}-viewport`, { body: JSON.stringify(geometry), contentType: 'application/json' }); } async function scan(page: Page, info: TestInfo, state: string, region: string) { - const result = await new AxeBuilder({ page }).include(`.MuiPaper-root:has(> [role="region"][aria-label=${JSON.stringify(region)}])`).withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']).analyze(); + const result = await new AxeBuilder({ page }).include(`:has(> [role="region"][aria-label=${JSON.stringify(region)}])`).withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']).analyze(); await info.attach(`${state}-axe`, { body: JSON.stringify({ violations: result.violations, incomplete: result.incomplete }), contentType: 'application/json' }); expect(result.violations).toEqual([]); } @@ -79,7 +79,8 @@ for (const [mode, language] of [['light', 'en'], ['dark', 'nb']] as const) { expect(native.pages).toBeGreaterThanOrEqual(minimum); await expect(pages).toHaveCount(native.pages); await expect.poll(() => frames.evaluateAll(elements => elements.every(element => (element as HTMLIFrameElement).contentDocument?.documentElement.dataset.cvPreviewReady === 'true'))).toBe(true); - await expect(chrome.getByText(t.cvEditorPageCount.replace('{count}', String(native.pages)), { exact: true })).toBeVisible(); + const pageCountLabel = native.pages === 1 ? t.cvEditorSinglePageCount : t.cvEditorPageCount; + await expect(chrome.getByText(pageCountLabel.replace('{count}', String(native.pages)), { exact: true })).toBeVisible(); expect(Number.isFinite(native.layoutDurationMs)).toBe(true); expect(native.layoutDurationMs).toBeGreaterThanOrEqual(0); expect(native.width).toBeCloseTo(210 * 96 / 25.4, 0); expect(native.height).toBeCloseTo(297 * 96 / 25.4, 0); const titles = await frames.evaluateAll(elements => elements.map(element => element.getAttribute('title'))); diff --git a/job-tracker-ui/e2e/cv-responsive-workflow.spec.ts b/job-tracker-ui/e2e/cv-responsive-workflow.spec.ts index a0395a83..fdda4bd0 100644 --- a/job-tracker-ui/e2e/cv-responsive-workflow.spec.ts +++ b/job-tracker-ui/e2e/cv-responsive-workflow.spec.ts @@ -3,6 +3,7 @@ import { expect, test, type APIRequestContext, type BrowserContext, type Locator import fs from 'node:fs/promises'; import type { CvOutline, CvVariant } from '../src/cvBuilder'; import { translations } from '../src/i18n/translations'; +import { cvStudioSectionPicker } from './helpers/cvStudioNavigation'; const apiUrl = 'http://localhost:5302/api'; const password = 'E2ePassword123!'; @@ -105,9 +106,10 @@ for (const [mode, language] of [['light', 'en'], ['dark', 'nb'], ['light', 'nb'] const headline = page.getByLabel(t.cvEditorHeadlineOverride, { exact: true }); const saved = async () => { await expect(page.getByText(t.cvEditorSaved, { exact: true })).toBeVisible(); }; const enterPreview = async (width: number) => { - const entry = page.getByRole('button', { name: width < 900 ? t.cvEditorPreview : t.cvEditorFocusPreview, exact: true }); + const compact = width < 768; + const entry = page.getByRole('button', { name: compact ? t.cvEditorPreview : t.cvEditorFocusPreview, exact: true }); await entry.press('Enter'); - if (width < 900) { await returnEditor.focus(); await page.keyboard.press('Tab'); } + if (compact) { await returnEditor.focus(); await page.keyboard.press('Tab'); } await expect(preview).toBeFocused(); await expect(preview).toBeVisible(); await expect(preview).toHaveAttribute('aria-busy', 'false'); const frames = preview.locator('[data-cv-page] iframe'); @@ -146,7 +148,9 @@ for (const [mode, language] of [['light', 'en'], ['dark', 'nb'], ['light', 'nb'] if (viewport.width === 320) await scan(page, info, 'pending-phone-preview'); await page.keyboard.press('Shift+Tab'); await expect(returnEditor).toBeFocused(); await page.keyboard.press('Enter'); await expect(editing).toBeFocused(); await expect(headline).toHaveValue(draft); - await reachable(page.getByRole('tab', { name: t.cvEditorContent, exact: true }), viewport.width < 600 ? 44 : 0); + const contentTab = page.getByRole('tab', { name: t.cvEditorContent, exact: true, selected: true }); + const contentPicker = cvStudioSectionPicker(page, t.cvEditorStudioNavigation).filter({ hasText: t.cvEditorContent }); + await reachable(contentTab.or(contentPicker), viewport.width < 600 ? 44 : 0); await reachable(editing.getByRole('button', { name: t.cvEditorUndo, exact: true }), viewport.width < 600 ? 44 : 0); if (viewport.width === 320) { await capture(page, info, 'pending-phone-editor', language); await scan(page, info, 'pending-phone-editor'); } expect((await read()).version).toBe(cv.version); @@ -232,7 +236,7 @@ test.describe('Chromium emulated coarse pointer; not physical touch hardware', ( const tap = async (control: Locator) => { await control.scrollIntoViewIfNeeded(); const box = await reachable(control, 44); await page.touchscreen.tap(box.center.x, box.center.y); }; for (const viewport of [{ width: 320, height: 844 }, { width: 390, height: 844 }, { width: 844, height: 390 }]) { await page.setViewportSize(viewport); - await tap(page.getByRole('button', { name: t.cvEditorPreview, exact: true })); + await tap(page.getByRole('button', { name: viewport.width < 768 ? t.cvEditorPreview : t.cvEditorFocusPreview, exact: true })); const preview = page.getByRole('region', { name: t.cvEditorLivePreview, exact: true }); await expect(preview).toBeVisible(); await preview.evaluate(node => { node.scrollTop = node.scrollHeight; }); diff --git a/job-tracker-ui/e2e/job-overview-presentation.spec.ts b/job-tracker-ui/e2e/job-overview-presentation.spec.ts index 4dc6af79..e076fb64 100644 --- a/job-tracker-ui/e2e/job-overview-presentation.spec.ts +++ b/job-tracker-ui/e2e/job-overview-presentation.spec.ts @@ -58,7 +58,12 @@ test('[PRES-W01 W02 W03 J05 E08 E09] native Job header/Overview retains actions, await page.goto(`/jobs/${id}?section=overview`); await expect(page.getByRole('heading', { name: title, level: 2 })).toBeVisible(); await expect(page.locator('html')).toHaveAttribute('data-color-scheme', mode); - const summary = page.getByRole('region', { name: t.workspaceApplicationInfo, exact: true }); + const details = page.getByRole('button', { name: t.workspaceJobDetails, exact: true }); + await expect(details).toHaveAttribute('aria-expanded', 'false'); + await details.press('Enter'); + await expect(details).toHaveAttribute('aria-expanded', 'true'); + const summary = page.getByRole('region', { name: t.workspaceJobDetails, exact: true }); + await expect(summary.getByText(t.workspaceApplicationInfo, { exact: true })).toBeVisible(); await expect(summary).toContainText(new Date(jobData.dateApplied).toLocaleDateString(language === 'nb' ? 'nb-NO' : 'en')); const progress = page.getByRole('region', { name: `${t.workspaceProgress}: ${t.statusInterview}` }); await expect(progress.locator('[aria-current=step]')).toHaveText(t.statusInterview); @@ -94,7 +99,10 @@ test('[PRES-W01 W02 W03 J05 E08 E09] native Job header/Overview retains actions, await capture(page, info, 'job-custom-status-dark-nb'); await page.goto(`/jobs/${sparseId}`); await expect(page.getByRole('heading', { name: 'Sparse application' })).toBeVisible(); - await expect(page.getByRole('region', { name: translations.nb.workspaceApplicationInfo }).getByText('—', { exact: true })).toHaveCount(3); + await page.getByRole('button', { name: translations.nb.workspaceJobDetails, exact: true }).press('Enter'); + const sparseDetails = page.getByRole('region', { name: translations.nb.workspaceJobDetails, exact: true }); + await expect(sparseDetails.getByText('—', { exact: true })).toHaveCount(7); + await expect(sparseDetails.getByText(translations.nb.workspaceNotScheduled, { exact: true })).toBeVisible(); await expect(page.getByRole('link', { name: translations.nb.workspaceOpenAdvert })).toHaveCount(0); await capture(page, info, 'job-sparse-dark-nb'); const foreignEmail = `job-overview-foreign-${Date.now()}@example.test`; diff --git a/job-tracker-ui/src/views/CvBuilderEditor.tsx b/job-tracker-ui/src/views/CvBuilderEditor.tsx index 64bbec82..c408a5a5 100644 --- a/job-tracker-ui/src/views/CvBuilderEditor.tsx +++ b/job-tracker-ui/src/views/CvBuilderEditor.tsx @@ -668,7 +668,9 @@ export default function CvBuilderEditor() { setMobilePane("edit")} sx={{ display: compactEditor && mobilePane !== "edit" ? "none" : "block", top: "var(--cv-pane-top)", minWidth: 0, "@media (min-width:1001px)": { position: "sticky", maxHeight: "calc(100dvh - var(--cv-pane-top) - 12px)", overflowY: "auto" }, scrollbarWidth: "thin" }}> {t("cvEditorEditingRegion")} - {compactStudioNavigation && { const value = Number(event.target.value); setTab(value); if (value === 4) loadVersions(); }}> + {compactStudioNavigation && { const value = Number(event.target.value); setTab(value); if (value === 4) loadVersions(); }}> {[1, 0, 2, 3, 4].map((value) => {t((["cvEditorTemplate", "cvEditorContent", "cvEditorCustomize", "cvEditorAiTools", "cvEditorHistory"] as const)[value])})} } -- 2.52.0 From 7f8927177eece54bdf054815e328c6bc48e8ed46 Mon Sep 17 00:00:00 2001 From: cesnimda Date: Fri, 4 Dec 2026 08:59:24 +0100 Subject: [PATCH 06/18] test: read dashboard activity and settings by accessible controls --- job-tracker-ui/e2e/dashboard-presentation.spec.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/job-tracker-ui/e2e/dashboard-presentation.spec.ts b/job-tracker-ui/e2e/dashboard-presentation.spec.ts index adc887b2..7da76dc2 100644 --- a/job-tracker-ui/e2e/dashboard-presentation.spec.ts +++ b/job-tracker-ui/e2e/dashboard-presentation.spec.ts @@ -60,7 +60,9 @@ test('[PRES-S01 S02 E07 E08 E09] Dashboard native data, visibility and responsiv await capture(page, info, 'dashboard-monthly-values-keyboard'); for (const point of monthly) { const month = new Intl.DateTimeFormat('en-GB', { month: 'long', year: 'numeric', timeZone: 'UTC' }).format(new Date(`${point.month}-01T12:00:00Z`)); - await expect(activity.getByRole('row', { name: `${month} ${point.applied} ${point.responses}`, exact: true })).toBeVisible(); + const row = activity.getByRole('row').filter({ has: page.getByRole('rowheader', { name: month, exact: true }) }); + await expect(row).toBeVisible(); + await expect(row.getByRole('cell')).toHaveText([String(point.applied), String(point.responses)]); } await activity.getByText('View monthly values').click(); await page.getByText('Recorded status breakdown', { exact: true }).click(); @@ -94,7 +96,8 @@ test('[PRES-S01 S02 E07 E08 E09] Dashboard native data, visibility and responsiv await expect(editor.locator('..')).toBeFocused(); await editor.locator('summary').click(); await expect(editor.getByRole('group', { name: t.dashboardManageWidgets })).toBeVisible(); - await expect(editor.getByRole('checkbox')).toHaveCount(9); + await expect(editor.getByRole('checkbox')).toHaveCount(10); + await expect(editor.getByRole('checkbox', { name: t.dashboardYourWeek, exact: true })).toBeVisible(); if (language === 'en') { const editorScan = await new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']).analyze(); await info.attach(`dashboard-${mode}-editor-axe`, { body: JSON.stringify({ violations: editorScan.violations, incomplete: editorScan.incomplete }), contentType: 'application/json' }); @@ -144,7 +147,7 @@ test('[PRES-S01 S02 E07 E08 E09] Dashboard native data, visibility and responsiv await page.getByRole('button', { name: 'Customize dashboard' }).click(); const newAccountEditor = page.getByRole('region', { name: 'Editing dashboard', exact: true }); await newAccountEditor.locator('summary').click(); - await expect(newAccountEditor.getByRole('checkbox')).toHaveCount(9); + await expect(newAccountEditor.getByRole('checkbox')).toHaveCount(10); for (const item of await newAccountEditor.getByRole('checkbox').all()) await expect(item).toBeChecked(); await page.keyboard.press('Escape'); const b = await login(page.request, emailB); -- 2.52.0 From 94af10a98e63fb6f4cb7cd01cba5ad38cc92de25 Mon Sep 17 00:00:00 2001 From: cesnimda Date: Fri, 4 Dec 2026 09:00:26 +0100 Subject: [PATCH 07/18] fix: wrap cover letter controls in narrow workspaces --- .../e2e/cover-letter-document-fidelity.spec.ts | 10 ++++++++-- job-tracker-ui/src/components/ApplicationAssets.tsx | 8 ++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/job-tracker-ui/e2e/cover-letter-document-fidelity.spec.ts b/job-tracker-ui/e2e/cover-letter-document-fidelity.spec.ts index 65ade3a7..c09bd9b6 100644 --- a/job-tracker-ui/e2e/cover-letter-document-fidelity.spec.ts +++ b/job-tracker-ui/e2e/cover-letter-document-fidelity.spec.ts @@ -226,7 +226,9 @@ test('cover letter workspace preserves keyboard drafts and localised controls ac const main = document.querySelector('main')!; return { root: document.documentElement.scrollWidth - innerWidth, app: main.scrollWidth - main.clientWidth }; }); - expect(geometry.root).toBeLessThanOrEqual(1); expect(geometry.app).toBeLessThanOrEqual(1); + const geometryContext = `${width}px ${mode}/${language} ${JSON.stringify(geometry)}`; + expect(geometry.root, geometryContext).toBeLessThanOrEqual(1); + expect(geometry.app, geometryContext).toBeLessThanOrEqual(1); const writePane = workspace.locator('[id$="-write-panel"]'); const previewPane = workspace.locator('[id$="-preview-panel"]'); const audit = async (state: string) => { @@ -238,7 +240,7 @@ test('cover letter workspace preserves keyboard drafts and localised controls ac expect(result.violations).toEqual([]); }; if (width === 320 || width === 390 || width === 1440) await audit('write'); - if (width < 1024) { + if (width < 768) { const tabs = workspace.getByRole('tablist', { name: t.assetsLetterWorkspace, exact: true }); const write = tabs.getByRole('tab', { name: t.assetsLetterWrite, exact: true }); const preview = tabs.getByRole('tab', { name: t.assetsLetterPreview, exact: true }); @@ -260,6 +262,10 @@ test('cover letter workspace preserves keyboard drafts and localised controls ac } else { await expect(workspace.getByRole('tablist', { name: t.assetsLetterWorkspace, exact: true })).toHaveCount(0); await expect(writePane).toBeVisible(); await expect(previewPane).toBeVisible(); + const writeBounds = (await writePane.boundingBox())!; + const previewBounds = (await previewPane.boundingBox())!; + if (width <= 1000) expect(previewBounds.y).toBeGreaterThanOrEqual(writeBounds.y + writeBounds.height); + else expect(previewBounds.x).toBeGreaterThanOrEqual(writeBounds.x + writeBounds.width); } for (const name of [t.save, t.letterExportPdf]) { const control = workspace.getByRole('button', { name, exact: true }); diff --git a/job-tracker-ui/src/components/ApplicationAssets.tsx b/job-tracker-ui/src/components/ApplicationAssets.tsx index 203a88c3..787e6251 100644 --- a/job-tracker-ui/src/components/ApplicationAssets.tsx +++ b/job-tracker-ui/src/components/ApplicationAssets.tsx @@ -850,14 +850,14 @@ function CoverLetterAiAssistant({ jobId, currentText, disabled, onApply, toolbar {t("coverAiUsing", { name: cv?.attachedVariantName ?? "" })} )} - - + + {t("coverAiAction")} - + {t("coverAiTone")} - + {t("coverAiDocumentLanguage")} - selectSection(v)} variant="scrollable" scrollButtons="auto" sx={{ display: { xs: "none", sm: "flex" }, mb: 1 }}> + selectSection(v)} variant="scrollable" scrollButtons="auto" sx={{ display: { xs: "none", md: "flex" }, mb: 1 }}> -- 2.52.0