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 <noreply@anthropic.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user