Skip to content

feat(checks): Pingdom TMS and Chrome Recorder import, named steps and test runs, richer selectors and basic auth for JS browser checks - #909

Merged
fclairamb merged 42 commits into
mainfrom
feat/pingdom-tms
Nov 17, 2026
Merged

fclairamb merged 42 commits into
mainfrom
feat/pingdom-tms

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • JS browser checks target elements by text, label and name: selectors accept text=, label=, name=, auto= and css= prefixes (unprefixed stays CSS). The match must be one visible element: an exact text match wins over a partial one, and an ambiguous or missing match is an explicit error. New actions page.check, page.uncheck, page.select (works on React-controlled selects) and page.submit.
  • Chrome Recorder selector syntax and fallbacks: aria/<name>[role="…"] (Chrome's accessibility tree), xpath/, pierce/ (into open shadow roots) and text/ are accepted verbatim, and every selector method takes an array of selectors tried in order; the error lists each entry's match count.
  • HTTP Basic auth in JS browser checks: page.basicAuth(user, password, {origin}) answers the challenge through CDP Fetch. The credentials go to a single origin, are tried at most twice, never reach the output, and a rejection gives basic auth rejected by <origin>.
  • Named steps and test runs: step(name, fn[, {screenshot}]) records ok/failed/skipped steps with durations; the result message becomes step 2/3 "name" failed: …, the failing step gets a screenshot, and the check page lists the steps (with the capture of the matching run). New POST /orgs/:org/checks/test-run runs an unsaved JS check once (on the API node), stores and notifies nothing, refuses viewers and caps concurrency at 4; the JS editor has a Test button with the inline step list.
  • Pingdom transaction (TMS) checks import: the Pingdom importer now reads /tms/check with the token, or a pasted response, and turns each transaction into a JS browser check, one step() per Pingdom step. Selectors become auto=, Basic auth goes into the check's encrypted secrets, and untranslatable steps get a // TODO and leave the check paused. Docs: mapping.md and from-pingdom.md.
  • Chrome DevTools Recorder import: new chrome-recorder import source (API and dashboard dialog). A Recorder JSON export becomes one JS check, each step wrapped in step(), selectors kept as fallback arrays, password fields moved to secrets, unsupported steps (frames, other targets, custom steps) left as // TODO with the check paused. Docs: migrate/from-chrome-recorder.md.
  • Docs: selector table, new methods, step() and tested examples in features/javascript-checks.md, plus the AI-check prompt.

Decided by autopilot

  • pingdom-tms-import, select_radio: emitted as page.check("auto=<name>") plus a warning, instead of checking at conversion that name= resolves to one element (that can't be checked without the page).
  • js-check-steps-and-test-run: JS checks have no screenshot setting, so a failing step always captures when a page is open. Only one screenshot is stored per result (the last capture); earlier {screenshot: true} steps show no thumbnail on the stored result page. The test run executes on the API node ("one region").
  • chrome-recorder-import: the doc page describes the DevTools → Recorder → Export steps in text; screenshots of DevTools are deferred. waitForElement count/attribute assertions apply to CSS and XPath selectors only (presence wait plus a warning for aria//text/), doubleClick becomes two clicks, and per-step timeouts only apply to waitFor (the other bindings take no options).

🤖 Generated with Claude Code

@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.81061% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.83%. Comparing base (9ca0b9f) to head (60998d6).

Files with missing lines Patch % Lines
server/internal/checkers/checkjs/steps.go 99.01% 1 Missing ⚠️
server/internal/handlers/checktestrun/handler.go 97.91% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #909      +/-   ##
==========================================
+ Coverage   90.74%   90.83%   +0.08%     
==========================================
  Files        1373     1379       +6     
  Lines      141633   142668    +1035     
==========================================
+ Hits       128525   129589    +1064     
+ Misses      13099    13071      -28     
+ Partials        9        8       -1     
Files with missing lines Coverage Δ
server/internal/aichecks/prompt.go 92.30% <ø> (ø)
server/internal/aichecks/runner.go 87.23% <100.00%> (+0.56%) ⬆️
server/internal/app/server.go 92.13% <100.00%> (+<0.01%) ⬆️
server/internal/checkers/checkbrowser/basicauth.go 100.00% <100.00%> (ø)
server/internal/checkers/checkbrowser/selector.go 100.00% <100.00%> (ø)
server/internal/checkers/checkbrowser/session.go 71.55% <100.00%> (+15.44%) ⬆️
server/internal/checkers/checkjs/browser.go 90.27% <100.00%> (+1.75%) ⬆️
server/internal/checkers/checkjs/checker.go 93.51% <100.00%> (+1.05%) ⬆️
...ternal/handlers/checks/importers/chromerecorder.go 100.00% <100.00%> (ø)
...er/internal/handlers/checks/importers/converter.go 89.76% <100.00%> (+0.87%) ⬆️
... and 5 more

... and 27 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

fclairamb and others added 20 commits November 17, 2026 00:31
page.basicAuth(username, password, { origin? }) arms credentials answered
through CDP Fetch.authRequired, scoped to the origin of the next page.goto()
(or the origin option). Other origins and proxy challenges are cancelled;
the credentials are answered at most twice, then goto fails with
"basic auth rejected by <origin>" (no username or password in the error).
Non-auth paused requests are continued untouched, so the egress watcher's
Network events are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Script and recording TMS checks are fetched from /tms/check (paginated) or
pasted, and translated step by step into a generated JS script using auto=
selectors. basic_auth credentials go to encrypted secrets. Untranslatable or
unknown steps leave a TODO line, a warning and a paused check.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… as JS browser checks

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…syntax and fallback-list additions

The prefixes, resolver and check/select/submit are implemented; aria/, xpath/,
pierce/, text/ and selector arrays (added to the spec in 87da2f7) are not yet.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… text/) and selector fallback lists

Resolved elements are now addressed through a window-held handle (ByJSPath) so
pierce/ can reach into open shadow roots. aria/ uses the CDP queryAXTree.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…tors; let scripts target elements by text, label and name

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…tors; let scripts target elements by text, label and name

select now uses the native HTMLSelectElement value setter (framework value trackers see it); tests: React-like controlled select fixture, Chrome-free check/uncheck no-click test.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…, steps in the Pingdom TMS importer

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ct; add named steps and a test run with per-step results

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… on the stored result

The test-run endpoint documents that one region is the API node's.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
fclairamb and others added 6 commits November 17, 2026 01:40
…ct; add named steps and a test run with per-step results

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ct; add named steps and a test run with per-step results

Tie the stored-result thumbnail to the result's own run window, assert no
result/event/incident from a test run, add a 429 handler test, note that JS
checks have no screenshot flag.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…hecks

Adds the chrome-recorder convert source: one recording becomes one js check
with a named step() per action, passwords moved to encrypted secrets,
unsupported steps (iframe, popup, custom) left as TODO and the check paused.
Dashboard import dialog entry and a docs page included.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… as JS browser checks

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@fclairamb fclairamb added the implemented Every spec of the PR is implemented and its batch gate was green label Nov 17, 2026
@fclairamb fclairamb changed the title feat(checks): Pingdom transaction checks import, text/label selectors and basic auth for JS browser checks feat(checks): Pingdom TMS and Chrome Recorder import, named steps and test runs, richer selectors and basic auth for JS browser checks Nov 17, 2026
fclairamb and others added 4 commits November 17, 2026 02:38
… Pingdom TMS import, test-run handler

A scripted DevTools endpoint lets the selector, Basic auth and session code run
with no Chrome, as in CI. Dead error branches (newNonce, jsonLiteral, jsq,
recorderTarget) are removed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@fclairamb
fclairamb enabled auto-merge (squash) November 17, 2026 12:32
fclairamb and others added 4 commits November 17, 2026 13:58
The feed query filters its history window with the database's NOW(), so the
hard-coded fake date 2026-08-19 aged out of the 90-day window on 2026-11-17
and the feed came back empty.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
# Conflicts:
#	server/internal/handlers/incidentpublications/publication_test.go
#	web/dash0/src/locales/de/checks.json
#	web/dash0/src/locales/en/checks.json
#	web/dash0/src/locales/es/checks.json
#	web/dash0/src/locales/fr/checks.json
@fclairamb
fclairamb merged commit 1240c57 into main Nov 17, 2026
36 checks passed
@fclairamb
fclairamb deleted the feat/pingdom-tms branch November 17, 2026 14:28
fclairamb added a commit that referenced this pull request Nov 19, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.52.0](v0.51.0...v0.52.0)
(2026-11-19)


### Features

* **checks:** Pingdom TMS and Chrome Recorder import, named steps and
test runs, richer selectors and basic auth for JS browser checks
([#909](#909))
([1240c57](1240c57))
* **dash0:** switch the dashboard language with ?lang= on any URL
([#926](#926))
([c2640ae](c2640ae))
* **email:** maximum delivery delay, Date-header latency and
missed-probe detection
([#938](#938))
([8489326](8489326))
* **showcase:** cut the published video in any dashboard language
([#932](#932))
([d940da5](d940da5))
* **showcase:** take the dashboard stills in any dashboard language
([#925](#925))
([5104606](5104606))
* status updates in several languages, random first admin password,
Postgres Unix socket
([#939](#939))
([a69424f](a69424f))


### Bug Fixes

* **dash0:** chart dates follow the dashboard language
([#928](#928))
([eae2951](eae2951))
* **deps:** update github.com/dop251/goja digest to 0802ca1
([#920](#920))
([3524928](3524928))
* **deps:** update github.com/dop251/goja digest to 2eded47
([#911](#911))
([a8496d4](a8496d4))
* **deps:** update github.com/dop251/goja digest to 8dfece3
([#935](#935))
([98297e8](98297e8))
* **deps:** update go dependencies (non-major)
([#907](#907))
([41187dc](41187dc))
* **deps:** update go dependencies (non-major)
([#927](#927))
([fcef3fc](fcef3fc))
* **deps:** update go dependencies (non-major)
([#940](#940))
([0fd9228](0fd9228))
* **deps:** update module github.com/a2aproject/a2a-go/v2 to v2.9.0
([#922](#922))
([fe48c84](fe48c84))
* **deps:** update module github.com/posthog/posthog-go to v2
([#924](#924))
([eab03f2](eab03f2))
* **deps:** update module github.com/posthog/posthog-go to v2
([#929](#929))
([545e621](545e621))
* **deps:** update module github.com/posthog/posthog-go to v2
([#930](#930))
([82b03cc](82b03cc))
* **deps:** update module github.com/rabbitmq/amqp091-go to v1.17.0
([#916](#916))
([6974177](6974177))
* **deps:** update module
github.com/standard-webhooks/standard-webhooks/libraries to v1
([#931](#931))
([7b9d073](7b9d073))
* **deps:** update module golang.org/x/net to v0.63.0
([#923](#923))
([7d0fac9](7d0fac9))
* DMARC temperror cause, reaper regions, force-expanded group headers
([#934](#934))
([99f955d](99f955d))
* **i18n:** say "Check" instead of "Prüfung" in German
([#910](#910))
([696dcf8](696dcf8))
* **i18n:** translate generated incident, status-page and validation
text ([#913](#913))
([92bb05a](92bb05a))
* **security:** no paging contacts via impersonation/PAT, shared MCP
probe caps, browser WebSocket egress, analytics key replay
([#946](#946))
([8d51875](8d51875))
* **security:** per-org test-run slots, typed credentials of imported
transaction checks go to secrets
([#933](#933))
([51914b3](51914b3))
* **security:** Telegram bot membership and role checks, admin-only
email suppressions, mask import payload in replay
([#914](#914))
([55ffc4b](55ffc4b))
* Slack events after ack, region badge clicks, WHOIS deadline, legacy
agent warning, empty check groups
([#917](#917))
([65b00e2](65b00e2))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge autopilot implemented Every spec of the PR is implemented and its batch gate was green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant