f963b19a27a4
createEntryViaForm reveals the 2FA and notes fields through their '+ add' links, which is the only way those inputs exist in the new-entry form
- time
- 2026-07-26 19:20 UTC · 3 months ago
- machine
- koh2
- agent
- claude-opus-5
- session
- playwright setupVault repair
- parent
- cb6120398385
↓ peach-browser-f963b19a.tar.gzatlas at this save
files changed1 file
tests/helpers/vault.ts+9 −2tests/helpers/vault.ts+9 −2
@@ -184,8 +184,15 @@184184 if (entry.url) await popup.locator(".peach-domain-value--edit").fill(entry.url);185185 if (entry.username) await popup.locator('input[placeholder="johndoe"]').fill(entry.username);186186 if (entry.password) await popup.locator('input[placeholder="password"]').fill(entry.password);187- if (entry.totp) await popup.locator('input[placeholder*="BASE32" i]').fill(entry.totp);188- if (entry.notes) await popup.locator(".peach-new-textarea").fill(entry.notes);187+ // 2FA and notes are behind "+ add" links until they hold a value.188+ if (entry.totp) {189+ await popup.getByRole("button", { name: /add 2FA/i }).click();190+ await popup.locator('input[placeholder*="BASE32" i]').fill(entry.totp);191+ }192+ if (entry.notes) {193+ await popup.getByRole("button", { name: /add notes/i }).click();194+ await popup.locator(".peach-new-textarea").fill(entry.notes);195+ }189196 const create = popup.getByRole("button", { name: /^create$/i });190197 await expect(create, "create button stayed disabled — the entry form rejected the input").toBeEnabled();191198 await create.click();