oficina / mapa Public

Palette browser test: wait for the whole title's Create row, inside main

Each keystroke asks, so an earlier answer can be on screen first; and the
sidebar's New team page now also holds a title field.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 280ada0736cbc0ada160ade49ecba6654626199d parent 20a5a4a
1 file changed, +5 −3
  • internal/mapatest/palette_browser_test.go +5 −3
diff --git a/internal/mapatest/palette_browser_test.go b/internal/mapatest/palette_browser_test.go
index d59d15d..fa4981e 100644
--- a/internal/mapatest/palette_browser_test.go
+++ b/internal/mapatest/palette_browser_test.go
@@ -58,12 +58,14 @@ func createByKeyboard(t *testing.T, rig *harness.Rig) {
chromedp.KeyEvent("k", chromedp.KeyModifiers(chromedp.ModifierCtrl)),
chromedp.WaitVisible("dialog[mapa-palette] input"),
chromedp.SendKeys("dialog[mapa-palette] input", "Kelp farm"),
- chromedp.WaitVisible(`[mapa-palette-results] a[href^="/new?"]`),
+ // The answer to the whole title: each keystroke asks.
+ chromedp.WaitVisible(
+ `[mapa-palette-results] a[href="/new?title=Kelp%20farm"]`),
chromedp.KeyEvent("\r", chromedp.KeyModifiers(
chromedp.ModifierCtrl)),
- chromedp.WaitVisible(`input[name="title"]`),
+ chromedp.WaitVisible(`main input[name="title"]`),
)
- title := read(t, rig, chromedp.Value(`input[name="title"]`))
+ title := read(t, rig, chromedp.Value(`main input[name="title"]`))
if title != "Kelp farm" {
t.Fatalf("⌘↵ created %q", title)
}