Name the profile form inputs so a spec can ask for one

This commit is contained in:
Coracle-Bot 2026-09-30 08:03:49 +00:00
parent 9185477e04
commit d3edeb68ed
3 changed files with 13 additions and 6 deletions

View file

@ -66,7 +66,7 @@ test("US-002 sign up by generating a new key", async ({seed, visit}) => {
await page.getByRole("button", {name: "Create an account"}).click()
await page.getByRole("button", {name: "Generate a key"}).click()
await page.locator('input[type="text"]').fill("Nova Tester")
await page.getByRole("textbox", {name: "Nickname"}).fill("Nova Tester")
await page.getByRole("button", {name: "Create Account"}).click()
await expect(page.getByRole("heading", {name: "Backup your Key"})).toHaveCount(0)

View file

@ -283,7 +283,7 @@ test("US-078 edit your own profile", async ({seed, as}) => {
await edit.click()
const form = page.locator("form").first()
const nickname = form.locator('input[type="text"]').first()
const nickname = form.getByRole("textbox", {name: "Nickname"})
const about = form.locator("textarea")
const picker = page.locator('label[aria-label="Drag and drop files here."]')

View file

@ -84,7 +84,7 @@
{#snippet input()}
<label class="input flex w-full items-center gap-2">
<Icon icon={UserCircle} />
<input bind:value={values.profile.name} class="grow" type="text" />
<input bind:value={values.profile.name} class="grow" type="text" aria-label="Nickname" />
</label>
{/snippet}
{#snippet info()}
@ -96,8 +96,11 @@
<p>About You</p>
{/snippet}
{#snippet input()}
<textarea class="textarea input leading-4 w-full" rows="5" bind:value={values.profile.about}
></textarea>
<textarea
class="textarea input leading-4 w-full"
rows="5"
bind:value={values.profile.about}
aria-label="About You"></textarea>
{/snippet}
{#snippet info()}
Give a brief introduction to why you're here.
@ -140,7 +143,11 @@
{#snippet input()}
<label class="input flex w-full items-center gap-2">
<Icon icon={MapPoint} />
<input bind:value={values.profile.nip05} class="grow" type="text" />
<input
bind:value={values.profile.nip05}
class="grow"
type="text"
aria-label="Nostr Address" />
</label>
{/snippet}
{#snippet info()}