fix(e2e): fix 4 failing e2e tests — strict mode locator and nested form #89
Reference in New Issue
Block a user
Delete Branch "feature/68-new-document-file-first"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
documents.spec.ts: replace getByText with getByRole('heading') to avoid
Svelte's #svelte-announcer matching the same text (strict mode violation).
SaveBar.svelte: move
out of the componentand into +page.svelte as a sibling of delete-form. The form was previously
nested inside , which is invalid HTML. The browser
auto-repaired it, causing a Svelte hydration mismatch that broke the edit
form's use:enhance, preventing version snapshots from being recorded —
leaving history tests with 0 versions instead of the expected 2.
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
documents.spec.ts: replace getByText with getByRole('heading') to avoid Svelte's #svelte-announcer matching the same text (strict mode violation). SaveBar.svelte: move <form id="mark-for-review-form"> out of the component and into +page.svelte as a sibling of delete-form. The form was previously nested inside <form id="update-form">, which is invalid HTML. The browser auto-repaired it, causing a Svelte hydration mismatch that broke the edit form's use:enhance, preventing version snapshots from being recorded — leaving history tests with 0 versions instead of the expected 2. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>