Skip to content

Add a recipe for blank or incomplete screenshots - #317

Open
DanielJette wants to merge 1 commit into
mainfrom
docs/91-93-blank-screenshots
Open

DanielJette wants to merge 1 commit into
mainfrom
docs/91-93-blank-screenshots

Conversation

@DanielJette

Copy link
Copy Markdown
Contributor

What does this change accomplish?

The answers to #91 and #93 exist only in long issue threads. Docs searches for async, wait, delay and animation find nothing that explains when Testify captures.

Fixes #91
Fixes #93

How have you achieved it?

  • New recipe recipes/25-blank-or-incomplete-screenshots.md.
  • Explains that Testify captures after Espresso.onIdle(), and that the Compose rules also wait for the composition to be idle.
  • Idling resource pattern and the "never decrement" debugging tip from Screenshot is taken before GlideImage drawable is loaded #93, including unique names per instance.
  • Image loaders: resource loaded vs. frame drawn, tying the idling resource to the request listener, and disabling cross-fades and emulator animations.
  • GPU-drawn content: captureMethod = ::pixelCopyCapture with a small exactness, from Screens which inflate views at a later time are never captured #91.

Scope of Impact and Testing instructions

Documentation only; no library or plugin changes, so no CHANGELOG entry. Built locally with yarn build from docs/. No broken links. Guidance comes from the #91 and #93 threads, updated to the current configure { captureMethod = … } API.

The commit includes [skip ci] so CI doesn't run for this docs-only change.

Notice

Warning

This change must keep main in a shippable state; it may be shipped without further notice.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AgUU49S4wSWd7vhJS7kEmU

Organise by symptom: content that loads asynchronously (idling
resources, image loaders, animations) and content drawn by the GPU
(PixelCopy capture).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AgUU49S4wSWd7vhJS7kEmU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Screenshot is taken before GlideImage drawable is loaded Screens which inflate views at a later time are never captured

1 participant