From 9cb856b376b6db9e4dcb7f928a881f4a8e491a65 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 14 Jun 2026 00:44:25 +0200 Subject: [PATCH] test(e2e): update document-title-autosync precision selector to new id DatePrecisionField derives the precision select's id from dateInputName, so the document form's id moved from #metaDatePrecision to #documentDatePrecision (the name attribute is unchanged). This maintained E2E still queried the old id and would fail when run. Not CI-gated, but a real silent breakage. Addresses PR #832 review (round-2 clean-agent out-of-diff finding). Co-Authored-By: Claude Opus 4.8 --- frontend/e2e/document-title-autosync.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/e2e/document-title-autosync.spec.ts b/frontend/e2e/document-title-autosync.spec.ts index 2f1bcb91..fc276151 100644 --- a/frontend/e2e/document-title-autosync.spec.ts +++ b/frontend/e2e/document-title-autosync.spec.ts @@ -26,7 +26,7 @@ test.describe('Document auto-title sync (#726)', () => { // 3. Add a YEAR-precision date WITHOUT touching the title, then save. await page.locator('#documentDate').fill('15.01.1928'); - await page.locator('#metaDatePrecision').selectOption('YEAR'); + await page.locator('#documentDatePrecision').selectOption('YEAR'); await page.getByRole('button', { name: 'Speichern', exact: true }).click(); // 4. The detail page shows the regenerated title carrying the new year.