Skip to content

v0.16.0

Latest

Choose a tag to compare

@AZANIR AZANIR released this 02 Dec 10:50
dcc28f5

Added

  • cairn explore writes what went wrong on the way to runs/<id>/observations.json, apart from the cases (#380, ADR-0029). Each observation has kind (console-error, page-error, request-failed, dead-click, layout-defect, a11y-violation), severity (low | medium | high), title, page, repro (the steps Cairn took from opening the page: Open …, Click button "Save") and evidence (the console line, GET <url> → 500, the axe rule, the layout defect). Sources are what Cairn already measures: the page's console errors and uncaught errors, responses of 400 and above and requests with no answer (lib backend), dead clicks, and with --ui-checks the red layout-defect and axe tests. Severity: an uncaught error, a 5xx answer or a critical axe violation is high; a console error, a request with no answer, a layout defect or a serious axe violation is medium; a 4xx answer, a dead click or a moderate/minor axe violation is low. An observation never becomes a case and never fails the suite. The run summary prints Observations: N (high H · medium M · low L), report.md lists each with its repro, the MCP explore result and runExploration return them as observations, and the package exports the file's zod schema (ObservationsFileSchema) and types. Guide: docs/observations.md.

Fixed

  • --ui-checks keeps the visual baseline written during validation (#376). writeSuite emptied runs/<id>/tests/ on every write, so when a red test made the run write the suite again after validation, the ui-checks.spec.ts-snapshots/ folder that the first toHaveScreenshot run had just written went with it, and the delivered suite had no baseline. A rewrite now keeps every *-snapshots/ folder under tests/ and still removes the old spec files and other folders.
  • A locator that matches nothing until the test timeout is now labelled selector, not timing (#373). The K3 rule «locator matched nothing» looked for Timeout with a capital letter, which only an action timeout writes (Timeout 30000ms exceeded); Playwright's test timeout says Test timeout of 30000ms exceeded, so a renamed button whose click ran into the test timeout fell through to timing (timeout). The rule is now case-insensitive: a timeout whose call log still waits for a getBy…/locator(…) with no resolved to line is selector; a timeout after the locator resolved stays timing.
  • The K4 quarantine now triggers on a test that cannot be healed (#374). Its repeat key was the model's verdict · cause · hunk, and the one diagnosis call gives a different cause (and now and then another verdict or no hunk) on the same input, so the streak started again on almost every run and the test kept costing a call. The key now holds only what the run's input fixes: the cause from Playwright's error signal (or no signal) and a hash of the whole app diff. A test proposed as test.fixme QUARANTINE_AFTER runs in a row on the same error signal and diff is quarantined whatever the model said; a new commit in the diff range or another error signal restarts the streak. A quarantine.json written by 0.15.0 holds the old key, so its streaks start again once.