Help us shape the future of Go! Take the 2026 Go Developer Survey

medium-smoke

command
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

medium-smoke is a self-verifying trusted-input smoke test against Medium's story editor. It proves the CDP input path delivers isTrusted:true events that the controlled contenteditable accepts (no revert), WITHOUT publishing.

Run (profile must already be logged in — the test STOPS on a login wall):

cd rysh-cli && GOWORK=off go run ./cmd/medium-smoke \
  -profile /path/to/.rysh/browser-instances/halilagin-medium/headless

Assertions (PASS/FAIL each; exit 1 on any FAIL):

  1. editor reached, no login wall
  2. every injected event observed page-side has isTrusted === true
  3. typed title survives readback
  4. typed body paragraph survives readback AND a 1.2s re-render tick
  5. "##" + discrete trusted Space converts the line to a real heading element (per-keystroke fidelity, not just bulk insert)
  6. Backspace works (trusted editing keys)

Cleanup: select-all + Backspace in the body and title. Medium may still autosave an empty draft shell; that is reported, not hidden.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL