Repository navigation
test(mobile): cover the bot templates' looks and forms (#266) - #285
Merged
juancguerrerodev merged 10 commits intoDec 6, 2026
Merged
juancguerrerodev merged 10 commits into
juancguerrerodev merged 10 commits into
Conversation
…ngLabs#264) Signed-off-by: Ashiq Hussain Mir <128612922+mir-ashiq@users.noreply.github.com>
juancguerrerodev
force-pushed
the
test/bot-templates-266
branch
from
December 6, 2026 09:10
b9c0ae4 to
51adc05
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Closes #266.
Creates
apps/mobile/src/bot-templates.test.ts(node:test, like the other tests inapps/mobile/src): theBOT_TEMPLATESids are unique andTEMPLATE_LOOKShas exactly those ids; every shape and color inTEMPLATE_LOOKSandBLANK_LOOKis inSHELL_SHAPESandSHELL_COLORS; no two templates wear the same shape and color pair, andBLANK_LOOKdiffers from all of them; every template site already reads the waynormalizeSitekeeps it; and each template's form passesformProblemsin both es-419 and en. Tests only. No real problem turned up: every check passes on the current templates, copy and limits, sobot-templates.ts,bot-form-view.tsand the locales are unchanged.Vision fit
Principle 7, small, typed and tested: a template whose Spanish name ran over the form's limit, or whose look drifted out of core's lists, now fails a test here instead of showing up on a phone.
Non-negotiables
Checklist
acceptedproposal.travelthe same look asagendafails 1 test, writing its site aswww.wikivoyage.orgfails 1, and a 46-character Spanish template name fails 1.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode scripts/guard/check.mjs --patterns scripts/guard/patterns.txt. Run locally:node --test src/bot-templates.test.tsinapps/mobile(5/5) and the existingbot-form-view.test.ts(19/19). The full mobile suite in this Windows checkout shows 16 pre-existing source-scan failures, the same 16 with and without this file (361 pass with it, 356 without), untouched by this change. Mobile typecheck needs the full install, so CI covers it.packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes. n/a: tests only, no UI string changed.Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
New dependencies and network calls
None. Tests only;
bot-templates.ts,bot-form-view.tsand the locale files are unchanged.AI agents