Bring the browser tests up to date

- automation: pin the fixture to 120 frames; a blank document is 48 now,
  and the drags measure frames as fractions of a 120-frame ruler.
- lane: create from the timeline's symbol/lane buttons, skip the palette
  lane when looking for lanes and rename buttons, and expect a lane's
  rename on its symbol.
- lane, peg: wait out the page reloading under the first probes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Olive Vaughn 2026-10-10 18:28:03 -04:00
parent 4b780f9e91
commit b2b6af8f26
3 changed files with 27 additions and 21 deletions

View file

@ -78,7 +78,9 @@ try {
await evaluate(`(() => {
const k = cljs.core.keyword, v = cljs.core.vector, m = cljs.core.hash_map;
let c = arthur.domain.clip.blank();
// The drags below measure frames as fractions of a 120-frame ruler, so the
// ruler is pinned rather than left to the blank document's length.
let c = cljs.core.assoc_in(arthur.domain.clip.blank(), v(k('symbols'), k('main'), k('frames')), 120);
const rect = (id, at, keys) => m(k('id'), k(id), k('kind'), k('rect'), k('z'), id,
k('time'), m(k('at'), at, k('rate'), 1), k('span'), v(0, 20),
k('channels'), keys ? m(v(k('xform'), k('pos')), arthur.domain.channel.keyed(m(2, v(2,0), 4, v(4,0)), k('linear'))) : m());