M0: stabilise and test (v0.2.0) #3
Loading…
Reference in a new issue
No description provided.
Delete branch "akib/m0-stabilise"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Milestone M0: Stabilise and test from
docs/IMPLEMENTATION.md, released as v0.2.0. Every P0/P1/P2 bug indocs/PLAN.md§6 is fixed, plus three more found while testing.Engine and blocks
ctx.aborted().{{…}}fields are marked templated.Pages, picker and recorder
history.back()/forward().aria.ts: an unlabelled<section>no longer crashes role lookups with a stack overflow.Editor
alert/confirm/prompt.npm run playgroundtest page.Playwright export
Tests and CI
npm run e2e -- <spec>). New specs cover the blocks that had no browser test, frames and recording, editor UX, and Playwright export.npm run e2e:firefox) drives Firefox over WebDriver BiDi. It uses a bridge content script that only e2e builds register.Test plan
npm run check: typecheck, 395 unit/DOM tests, learning examples, block guide, wiki linksnpm run buildandnpm run build:firefoxnpm run e2ein Brave Origin: 10 specs, 122 checks, all passingnpm run e2e:firefox: Firefox 159, 14 checks, all passingmain🤖 Generated with Claude Code
- now()/today() read the clock from the evaluation context; the engine and the data blocks pass Host.now (EvalEnv), so FakeHost's fixed clock applies - Filter's left/right are templated + perItem: the editor offers and checks {{...}}, the engine leaves them for the block's per-item rendering - deleting a workflow removes its timers and bf:state:<id>::* keys (diffWorkflows reports `removed`) - trigger labels (page event, called by another workflow), Reports filter gets Interrupted and Running - stale texts: file input in Fill Form points at Upload File; role option hint lists include-hidden - block reference anchors follow github-slugger (leading dash, U+FE0F kept); wiki.mjs slug keeps marks too - drop the unused activeTab permission, clearScreenshots and clearRecording - blocks declare `realInput: true` when their page actions honour the step setting (used by the editor in the next commit) Co-Authored-By: Claude Opus 5.5 <[email protected]>- Chromium's tabs.goBack/goForward skip history entries added without a user gesture, so Back after Open Tab + goto failed ("Cannot find a next page in history"). Fall back to history.back()/forward() in the page. The blocks-coverage spec now checks back/forward normally. - The bridge registration uses the boolean import.meta.env.BF_E2E. Co-Authored-By: Claude Opus 5.5 <[email protected]>- Inline BlockFlow's runtime (the real source of expression, condition, csv, urlPattern and template, read with ?raw and wrapped per module) so templates ({{$json.x}}, dashed keys, expressions, secrets) and the data blocks (Data Table with real CSV, Transform, Filter, Set Variable, For Each, Repeat, If) behave exactly as in the extension. - Wait For response -> waitForResponse helper (10 s look-back, BlockFlow URL patterns, status 2xx/201/list). - Assert: web-first matchers (toHaveText/Value/Attribute/Count, page toHaveURL/toHaveTitle, not./regex forms), expect.poll + compare for the other operators, expect.soft / soft poll. - Step settings: timeoutSeconds -> { timeout }, retries -> retry(), onError continue/port -> try/catch (error branch only on failure), disabled skipped. - Open Tab where current/workflow reuses page; Timer delay -> waitForTimeout; Dialogs, Upload File (Buffer / request.get), Wait for Popup, Run Script (page.evaluate with data) mapped; the rest is a // BlockFlow-only: comment. - New e2e spec playwright-export: three richer workflows run in BlockFlow, are exported from the editor and pass under npx playwright test. Co-Authored-By: Claude Opus 5.5 <[email protected]>