Skip to content

v0.0.0-alpha.14

Pre-release
Pre-release

Choose a tag to compare

@lrstanley lrstanley released this 21 Nov 05:20
· 4 commits to master since this release
v0.0.0-alpha.14
8f7caea

Highlights

  • Hover, drag, and turn the mouse wheel from a location. A Location from Locate can now Hover, LeftDrag or MouseDrag to another location, and Wheel, so a test can show a tooltip, select text, or scroll a list without unpacking coordinates: h.Locate(reel.Contains("Sencha")).Wheel(vt.MouseWheelDown, reel.Repeat(40)). Each fails the test when its location is off the screen. Harness.Wheel turns the wheel at a cell, and a scroll is recorded as one wheel annotation with its count.
  • Mouse commands in tapes. Tapes can Click, Hover, Drag, and Wheel, at a cell or at text on the screen, waited for as Wait+Screen waits, with an optional offset from it: Click "Name:" +6, Drag "report.pdf" "Trash", Wheel+Down "Sencha" 40. reel s gains hover, drag, and wheel, and Set MouseOverlay true draws the pointer from a tape, as --mouse does.
  • Find the right match when the text is on the screen more than once. reel.Nth picks a match by its place, and reel.After and reel.Below look past another match, so h.Locate(reel.Nth(2, reel.Contains("revoke"))) clicks the second button. Contains and Matches now report every match, in reading order.
  • Settle waits that ignore part of the screen. A live clock or spinner used to keep WaitSettle from ever settling. WithSettleIgnore and WithSettleOnly (and reel s wait --idle --ignore/--only) leave regions out, or watch only them. Breaking: regions moved from reel/effects to their own package, reel/region, and Region.Rects takes the screen buffer.

Installing the reel CLI

  • With Homebrew, on macOS and Linux: brew install lrstanley/tap/reel. For .mp4 and .webm, also brew install ffmpeg.
  • Prebuilt binaries for Linux, macOS, and Windows, on amd64 and arm64, are attached to this release.

Changelog

⚠️ Breaking Changes

  • 7fda2b3: reel: settle waits that ignore or watch only part of the screen (@lrstanley)

✨ New Features

🧹 Misc

1 change

Full changelog: v0.0.0-alpha.13...v0.0.0-alpha.14

📦 Install

go get getsteep.dev/steep@v0.0.0-alpha.14
go install getsteep.dev/steep/cmd/reel@v0.0.0-alpha.14
go get getsteep.dev/steep/reel@v0.0.0-alpha.14
go get getsteep.dev/steep/reel/sink/native@v0.0.0-alpha.14

Docs:

💬 What to do next?