Commit Graph
344 Commits
Author SHA1 Message Date
pj fbc5102b25 chore(make): a target that runs folio's unit tests 2026-08-15 21:08:03 +05:30
pj 1e350f7fd3 test(sidecar): pin the tree-guarded keyboard dismissal 2026-08-15 21:08:03 +05:30
pj b4cd9d5cd1 fix(sidecar): close a keyboard standing in the snapshot
A tap on a text field raises the keyboard and nothing closed it, so the
tree the picker chooses from was missing every app node underneath it,
the submit control included. Close it before the read rather than after
the tap: the picker only ever sees snapshots, and the keyboard is still
on its way up when the tap returns.

Fixes #78
2026-08-15 21:08:03 +05:30
pj a71cbfc685 test(sidecar): pin the adb server endpoint parsing 2026-08-15 21:08:03 +05:30
pj 83e9d5fd95 fix(sidecar): reach the adb server the environment names
buildDadb hardcoded localhost:5037, so a serial-addressed device always
resolved through this machine's adb server and ADB_SERVER_SOCKET was
ignored. Read the endpoint the way the adb CLI does instead.

Fixes #79
2026-08-15 21:08:03 +05:30
pj 0e096c00b3 feat(folio): close the submit window on the account's own screens
submitCommitsOneTransactionPerAction now states its rule over two windows:
the Home counts it already compared, and the account balance the ledger and
the add-transaction screen redraw on nearly every frame of the transaction
flow. Same rule, and the second window is usually one action wide.
2026-08-15 21:04:39 +05:30
pj bc73975604 docs(replay-ui): name the viewport the tab overflow was measured at 2026-08-15 21:03:55 +05:30
pj e686362fb6 docs(runner): point the guard comment at the renamed test 2026-08-15 21:03:43 +05:30
pj 94a1d59d60 test(runner): an overlay dismissal must not convict the counting property 2026-08-15 21:03:23 +05:30
pj 2d789d7d17 feat(folio): judge a submit against the account's own balance
The counting invariant can only close its window on Home, and the iOS run
in #78 went 117 steps between two Home readings: 37 submits against a rise
of 15 transactions is no evidence about the double tap sitting inside it.
The ledger and the add-transaction screen both show the account's own
balance, and an accepted submit pops back to the ledger, so a window
bounded by those readings holds one action.

The bound is an upper one: a balance that has not moved is a commit still
in flight, a rejected submit or a tap that never landed, and none of those
is a violation. Moving by more than the one submit in the window typed is.
2026-08-15 21:03:07 +05:30
pj 578ead6554 test(replay-ui): drive the fuzzer onto a violating step with a panel 2026-08-15 21:01:10 +05:30
pj 5be530bf17 fix(replay-ui): wrap the tab strip so its last tabs stay clickable 2026-08-15 20:57:55 +05:30
pj 047c53a2e7 test(browser): the cross-host fixture uses the object selector form 2026-08-15 20:52:43 +05:30
pj 4324573d97 test(verifier): both ax.find selector forms resolve the same element 2026-08-15 20:51:43 +05:30
pj ad63c5eb74 fix(hierarchy): object selectors resolve by the same rule as string ones 2026-08-15 20:50:55 +05:30
pj 4ac969bb3f fix(folio): attribute a created account by its whole key, not a suffix
createdAccountHasNonZeroBalance matched the created card with endsWith, so
an older account whose name ends with the typed one ("Emergency Fund" for a
typed "Fund") was judged instead whenever the new card was clipped out of
the reading. Build both keys the card can carry, the plain name and web's
initials + name, and compare them whole.
2026-08-15 20:49:38 +05:30
pj a7e94c85df test(ios): a refusal the runner names costs no session restart
The session restart is for a launch that never answers. A launch that
reports the app's state has already said what a fresh session would.
2026-08-15 20:49:35 +05:30
pj 73736ab26f fix(ios): the runner must not answer ok for a launch that failed
XCTest records a refused launch as a test issue that never throws, so the
companion returned ok for an app that never started. Check the state the
app actually reached and report the refusal instead.
2026-08-15 20:49:31 +05:30
pj 4caafafb1d Merge branch 'ci-hygiene-and-fmt' into trial-merge 2026-08-15 20:49:20 +05:30
pj b425cd0267 Merge branch 'android-ime-verify' into trial-merge 2026-08-15 20:49:20 +05:30
pj c50bf56cf3 style(sidecar): bring the last three lines under the line limit 2026-08-15 20:48:39 +05:30
pj 7623ca7a21 fix(folio): uninstall before installing in just ios
folio's signed-in session lives in the data container, which an install
over the top keeps, so a local run started right after just ios opened on
the previous run's Home screen and diverged at step 1. On CI's fresh
simulator the uninstall is a no-op, so the ios leg is unchanged.
2026-08-15 20:43:28 +05:30
pj 56d6aa53f1 test: pin that a nested undefined does not survive the wire 2026-08-15 20:42:36 +05:30
pj ca969f495a fix(runner): keep the action the app was relaunched after 2026-08-15 20:42:20 +05:30
pj 99160b4c12 test(verifier): pin the relaunch field on both hosts 2026-08-15 20:42:20 +05:30
pj 365418f73e feat(verifier): report a relaunch on state.lastAction 2026-08-15 20:42:20 +05:30
pj 3865c6515d ci: move every action off the node20 runtime
checkout v4->v7, setup-go v5->v7, setup-node v4->v7, setup-java v4->v5,
upload-artifact v4->v7, cache v4->v6, upload-pages-artifact v3->v5,
deploy-pages v4->v5, setup-chrome v1->v2, setup-android v3->v4,
goreleaser-action v6->v7. setup-bun and android-emulator-runner are
already node24; buf-setup-action stays on its deliberate SHA pin.

setup-chrome v2 resolves stable from Chrome for Testing rather than the
official installer, so the ci.yml comment about the action's default no
longer held.
2026-08-15 20:41:39 +05:30
pj 0cef5bd1d3 test(spec): name the shadow match in the grammar both hosts parse 2026-08-15 20:39:21 +05:30
pj e62b08dffd test(browser): compare ax.find across both hosts on one page 2026-08-15 20:39:18 +05:30
pj 46f2969350 test(runner): a relaunch must not convict the submit counting property 2026-08-15 20:38:17 +05:30
pj 26a1eda68d ci(folio): say what the android gate found, not why
The gate proves only that AddTransactionScreen is absent from the trace.
Claiming the run never got past login was an inference it cannot make: the
run that produced it had logged in and was stuck on the new account screen.
Name the routes the trace does record instead.
2026-08-15 20:37:07 +05:30
pj 3fe972946d fix(spec): deepQueryAll returns matches in document order 2026-08-15 20:35:05 +05:30
pj 4d8e790bf1 style(sidecar): make ktlint clean, formatting only
ktlint -F over every kotlin file except DriverBackend.kt, then hand
fixes where the reflow read worse and for the long lines ktlint cannot
break. No behaviour changes.

DriverBackend.kt is left untouched to avoid a conflict with concurrent
work; its three over-long lines still fail fmt-kotlin.
2026-08-15 20:34:21 +05:30
pj 3cc7f6a4b6 test(spec): give the fake dom a real tree and a walking querySelectorAll 2026-08-15 20:32:05 +05:30
pj e584cb316f fix(folio): cap a transaction at one million dollars 2026-08-15 20:31:07 +05:30
pj a6fdcb5825 fix(folio): reject amounts parseCents cannot represent 2026-08-15 20:31:03 +05:30
pj f11bcd795e test(folio): add commonTest source sets to core and shared 2026-08-15 20:30:59 +05:30
pj cf517097b8 Merge branch 'android-ime-verify' into trial-merge 2026-08-15 20:14:32 +05:30
pj 7ea9e2e6de docs(sidecar): record why the stale ime flag stays out of reach 2026-08-15 20:11:09 +05:30
pj 0352a2882e Merge branch 'ios-frontboard-retry' into trial-merge 2026-08-15 19:51:22 +05:30
pj 9583aa365f Merge branch 'android-ime-targets' into trial-merge 2026-08-15 19:51:22 +05:30
pj 9dc1d2d41b Merge branch 'recalibrate-ios-seed' into trial-merge 2026-08-15 19:51:22 +05:30
pj 24adf74245 Merge branch 'add-apache-license' into trial-merge 2026-08-15 19:51:22 +05:30
pj e45fcfd04b docs(ci): the ios leg does not convict on the runner, and a seed cannot fix it
seed 28 reproduced its walk on macos-15 and reached the bug at the step it
convicts at locally. it still could not be judged: the run did not return
home between step 19 and step 136, so the counting invariant saw a rise of
15 against a window of 37 submits.
2026-08-15 19:39:38 +05:30
pj 0929ae54bf test(ios): the restart a blown launch triggers has to be bounded 2026-08-15 19:31:24 +05:30
pj f073f2cc74 fix(ios): share one deadline across the restart and the second launch
the recovery a blown bound triggers now costs at most launchRecoveryTimeout
whatever it spends it on, so the launch path tops out at 150s and testrun's
three minute backstop stays a backstop.
2026-08-15 19:31:24 +05:30
pj 8baea14245 test(ios): cover the session replacement a wedged launch needs 2026-08-15 19:24:27 +05:30
pj d64781ce39 fix(ios): replace the session when a launch blows its bound
a launch the simulator refuses is never reported: xctest records it as a test
failure the runner cannot see, then holds the session's main thread for about
four minutes on a diagnostic chain. so the only signal is the expired bound,
and every later call queues behind the same wedge. restart the session once and
launch again, bounded so the launch path stays inside testrun's backstop.
2026-08-15 19:24:23 +05:30
pj 788c68c777 docs(ci): record what the ios calibration assumes and where it was measured 2026-08-15 18:52:59 +05:30
pj 3713b8cfb8 ci(folio): drop the stale frontboard note from the ios job 2026-08-15 18:52:59 +05:30