In short.
TestDriver Redraw is a skill for developers whose TestDriver tests interact with changing screens, but a completed wait can mean a timeout rather than confirmed stability. It documents screenshot comparisons after interactions, optional sandbox network monitoring and events that distinguish settling from timeout. It is most relevant to animations, route transitions and lazy-loaded content. Runtime reliability, performance, costs and redistribution rights are not established by the supplied material.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is ai/skills/testdriver-redraw and its files, together with licence notices beside and above it. The supplied manifest contains only ai/skills/testdriver-redraw/SKILL.md, whose full contents are available; no related licence notices are supplied. SDK implementation, originating documentation, linked references and dependency code are outside the available evidence. Runtime correctness, integration behavior, performance, costs and redistribution permissions remain unverified.
The overview
Identity
The resource is ai/skills/testdriver-redraw/SKILL.md in the testdriverai/testdriverai repository, with the skill name testdriver:redraw. It provides assistant-readable guidance about the TestDriver SDK's redraw feature. The file identifies itself as generated from redraw.mdx; it contains documentation and examples rather than the feature's implementation.
The original selected folder is [https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver-redraw].
Assessment
This is a useful configuration reference when TestDriver interactions occur while animations, navigation or delayed content are changing the screen. It explains both how to enable waiting and how to observe whether waiting actually reached its settling condition.
Its settling rules are heuristics. The documentation supplies no execution results, reliability measurements or comparisons demonstrating fewer failed tests. A settled screen also does not establish that the application reached the intended state.
Users
The intended users are developers and test engineers working with TestDriver, especially on single-page applications, animated modals, autocomplete, validation and content loaded during scrolling. Beginners get configuration examples; experienced developers get thresholds, timing rules and event types.
The documentation recommends leaving redraw disabled when tests are already stable, applications have little animation, faster execution matters or explicit waits and assertions already handle readiness.
Capabilities
Redraw can wait after clicks, hovering, scrolling, typing, key presses and application focus changes. Configuration supports SDK-wide defaults and per-command overrides, with separate controls for screen comparisons and network monitoring.
The redraw:status event exposes screen differences, network information and timeout progress. The redraw:complete event reports screen and network settling flags, whether a screen change was detected, elapsed time and isTimeout. Completion therefore needs interpretation rather than being treated as an automatic success signal.
Using it
Requirements
Using the documented settings requires an existing TestDriver SDK setup capable of supplying screenshots. Optional network monitoring depends on sandbox traffic measurements for received and sent bytes.
The skill does not provide package installation instructions, imports, authentication requirements, supported operating systems or a minimum compatible SDK version. Its statement about a default change in v7.3 does not establish the full compatibility range.
Mechanism
Screen detection polls screenshots every 500 milliseconds. First, the screen must differ by more than 0.1% from the initial screenshot taken after the action. Next, consecutive frames must differ by less than 0.1%, or the current difference must fall below its recent average. Both phases must finish for screen settling.
Pixel comparison uses pixelmatch with a sensitivity threshold of 0.1, which is distinct from the 0.1% changed-pixel threshold. Statistical detection uses the last 10 measurements and calculates a z-score as the current difference minus the mean, divided by the standard deviation.
Optional network detection keeps 60 measurements of sandbox traffic and requires negative z-scores for both receive and transmit rates, meaning both are below their respective averages. When both screen and network detection are enabled, both must settle. Network polling has a documented 10-second timeout; network errors are logged without throwing.
Setup
In an existing SDK setup, new TestDriver({ redraw: true }) enables redraw with defaults. The expanded configuration is redraw: { enabled: true, screenRedraw: true, networkMonitor: false }. Network monitoring must be enabled separately.
The documented defaults are enabled: false, screenRedraw: true and networkMonitor: false. If both detection methods are false, redraw automatically disables itself. Individual commands can override the defaults with redraw: { enabled: true } or redraw: false.
The material does not explain how to install or register the SKILL.md file with a particular coding assistant.
Example
For a button that loads additional content, the documented command is await testdriver.find('load more').click({ redraw: { enabled: true } });. This enables redraw for that click without requiring it for every interaction.
A practical follow-up is to assert that the expected new content appears and inspect isTimeout on redraw:complete. Those steps distinguish application readiness from a wait that merely expired. This is a suggested use of the documented API; its behavior remains unverified through execution.
Assessment & evidence
Limitations
Commands continue when their redraw timeout expires. Clicks, hovering within a click, scrolling, typing and key presses have five-second timeouts; standalone hovering has 2.5 seconds; application focus has one second. The documentation does not explain how these limits interact with the separate 10-second network timeout.
Because screen settling requires an initial visible change, an interaction that produces no detectable change may wait until timeout. A negative z-score can also satisfy the stability rule while pixels are still changing. Similarly, below-average network traffic does not necessarily mean traffic has stopped. These are implications of the documented rules.
Handling of zero standard deviation, initial measurement windows and continuously changing screens is not explained. A screenshot-based settling result cannot establish that particular data loaded correctly or that a business action succeeded.
Reasoning
The feature's practical value is coordinating actions with visible UI transitions. Its measurements adapt to recent changes, which may help with varied animations, but that same relative threshold makes settling weaker than a guarantee that all movement or traffic has ended.
A reasonable use is to enable redraw around interactions with known transitions and retain assertions about the expected result. Whether this improves a particular test suite depends on its UI behavior; the source provides no measured benefit or universal recommendation.
Alternatives
The documented alternatives are leaving redraw disabled and using explicit waits or assertions. Redraw offers a general screen-settling heuristic, while an application-specific wait or assertion can target the exact condition the next step needs.
No competing products or comparative performance results are supplied. Evidence is insufficient to rank redraw against other UI-testing tools.
Evidence
The available evidence is the full SKILL.md captured from the original repository at [https://raw.githubusercontent.com/testdriverai/testdriverai/97d4d35d7727b2f83b1a73282aabf2e6e74824a2/ai/skills/testdriver-redraw/SKILL.md]. The manifest records 7,317 bytes and SHA-256 836ba077cd06060d669875b1c9b588fdabfa16dd688148f0ab4ac56b58c09880.
This supports descriptions of the documented API and intended behavior. SDK implementation, the originating redraw.mdx file, dependency source, runtime traces and benchmark results are not included.
Access & freshness
Costs
Pricing, subscription requirements, sandbox charges and usage rates are unknown. The skill supplies no financial information.
Waiting can increase test duration. Documented command timeouts range from one to five seconds, and optional network polling has a 10-second timeout. Actual runtime overhead and its effect on infrastructure costs are not measured.
Rights
No licence notice or redistribution terms appear in the supplied file or manifest. Permission to copy, modify or redistribute the skill is therefore unknown. Public availability in a GitHub repository does not establish those permissions.
Freshness
The source snapshot was captured on 2026-11-17 at 06:38:35.808 UTC and is pinned to repository revision 97d4d35d7727b2f83b1a73282aabf2e6e74824a2.
The document says redraw became disabled by default in v7.3. It supplies no publication date or release mapping for this snapshot. Later changes and behavior in other SDK versions are unknown.
Actions
For an existing TestDriver project, first identify interactions affected by animations or delayed rendering. Enable redraw on a representative command, retain an assertion for the expected outcome and inspect redraw:complete for timeout results.
Before broader adoption, establish compatibility with the installed SDK and measure waiting overhead and failure behavior in the actual application. Obtain the applicable licence terms before redistributing the skill.
