app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

commit 1ab9bbebf2bcb0fa3c9f921e067cdb3079d42567
parent 40c61b580e491ce4cd30c89c9c896b4ba1127604
Author: triesap <tyson@radroots.org>
Date:   Sat, 10 Oct 2026 11:48:40 +0000

web: complete save-close and first-save route continuity (HCP-116)

Diffstat:
Mweb/tests/e2e/harness/notices.svelte | 6++++++
Mweb/tests/e2e/notices.spec.ts | 2++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/web/tests/e2e/harness/notices.svelte b/web/tests/e2e/harness/notices.svelte @@ -1,9 +1,14 @@ <script lang="ts"> + import { onMount } from 'svelte'; import Notice from '../../../src/lib/components/Notice.svelte'; import OperationStatus from '../../../src/lib/components/OperationStatus.svelte'; import ErrorSummary from '../../../src/lib/components/ErrorSummary.svelte'; import FormField from '../../../src/lib/components/primitives/FormField.svelte'; let input = $state('preserved food'); + let mounted = $state(false); + onMount(() => { + mounted = true; + }); let failed = $state(false); let text = $state( 'Waiting for your extension. Another approval may be needed.' @@ -39,6 +44,7 @@ {id} class="input textarea" bind:value={input} + disabled={!mounted} aria-describedby={describedby} aria-invalid={invalid}></textarea>{/snippet} </FormField> diff --git a/web/tests/e2e/notices.spec.ts b/web/tests/e2e/notices.spec.ts @@ -205,6 +205,8 @@ for (const width of [320, 1024]) { const page = await context.newPage(); await page.goto(server.url); const field = page.getByRole('textbox', { name: 'Food', exact: true }); + await expect(field).toBeEnabled(); + await expect(field).toHaveValue('preserved food'); await field.fill('unchanged multiline\n菜'); await expect( page.getByRole('heading', { name: 'Check the following fields' })