SkillsReviewed · testdriverai

testdriver:assert

testdriver:assert is a skill for developers adding AI screen checks written in ordinary language to TestDriver tests, but its full example needs correction. It documents assertion calls, per-call AI sampling settings and a polling helper.

Researched 16 Nov 2026

In short.

testdriver:assert is a skill for developers who want AI to check visible application states from ordinary-language descriptions, but its supplied full example contains initialization and API inconsistencies. The documented assertion returns true on success and throws on failure. Useful examples cover forms, navigation and visual states; accuracy, runtime compatibility, pricing and licensing are unknown. Nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is ai/skills/testdriver-assert and its files, with licence notices beside and above that folder. The supplied manifest lists only SKILL.md; no related licence notices are supplied. This report covers that captured document. Other skills, the SDK implementation and the original assert.mdx are outside the supplied evidence. Installation, authentication, screen connection, assertions and polling were not executed. Runtime compatibility, reliability, costs and rights remain unknown.

The overview

identity

The skill declares the name testdriver:assert and documents the TestDriver assert method. It resides at ai/skills/testdriver-assert/SKILL.md in testdriverai/testdriverai. The folder address is [https://github.com/testdriverai/testdriverai/tree/main/ai/skills/testdriver-assert].

The file says it was generated from assert.mdx. That underlying source and the TestDriver implementation are not included in the supplied material.

assessment

The skill provides a useful reference for expressing UI expectations as visible conditions, such as a validation error appearing or a dashboard being displayed. Its clearest guidance is to make assertions specific and check state before and after an action.

The full example needs repair before use: it assigns the new instance to client while subsequent calls use testdriver, and it includes three-argument assertion calls that the documented signature does not explain. These are findings from reading the source; no runtime behavior was tested.

users

The resource suits developers and test engineers already using TestDriver who need checks for forms, navigation, dynamic content or visual states. Beginners can follow the assertion wording, but setup still requires understanding JavaScript asynchronous calls, credentials and a connected TestDriver instance.

Experienced developers can use the API details to integrate these checks with a test framework. The supplied full example uses Vitest.

capabilities

Documented checks include element visibility, displayed text, input contents, checkbox and dropdown states, colors, loading indicators and open dialogs. Workflow examples check validation errors, successful navigation and progress through multiple steps.

The file also demonstrates combining assertions with find(), clicks, typing, keyboard input, hovering and extract(). Those companion methods are illustrated here but are not fully documented by this skill.

Using it

requirements

The JavaScript examples assume the testdriverai package, an API key supplied through TD_API_KEY, an authenticated and connected TestDriver instance, and access to the application's screen. The full example focuses Google Chrome.

Supported operating systems, JavaScript runtime versions, SDK versions and service prerequisites are unspecified. The evidence does not establish that Vitest or Chrome is mandatory.

mechanism

The documented forms are testdriver.assert(assertion) and testdriver.assert(assertion, options). The assertion is a required string describing what should be true on screen. AI examines the screen, and the call is documented to resolve to true when the condition passes or throw an error when it fails.

Per-call options.ai settings override constructor-level AI configuration. Available fields are temperature, top.p and top.k. The underlying model, screen acquisition process, processing location and decision criteria are not described.

setup

The example imports TestDriver from testdriverai, constructs an instance with TD_API_KEY, calls auth() and connect(), and disconnects after testing. Installation, account provisioning and skill-loading instructions are absent.

To make the example internally consistent, the constructor assignment needs to populate testdriver rather than client. Its waitForAssertion calls also require the helper defined earlier in the document. The final three-argument calls need clarification against the supported SDK API.

example

With an authenticated, connected instance named testdriver, the documented call await testdriver.assert('blue submit button is visible below the form'); asks AI to check a specific visible condition. The stated success result is true; failure throws an error.

For a changing screen, the supplied waitForAssertion helper retries after failures, pausing one second between attempts. Its default timeout is 30,000 milliseconds. This is a documented example, not an executed result.

Assessment & evidence

limitations

No measured accuracy, repeatability, latency or false-pass rate is provided. Sampling controls do not establish deterministic results. Screen-data retention and processing arrangements are also unknown.

The polling helper catches every error without preserving its details, so an underlying failure can become a generic assertion-timeout message. Its timeout is checked between awaited calls and does not impose a hard deadline on an individual assertion.

The full example leaves testdriver uninitialized and uses undocumented extra boolean arguments for disappearance checks. The evidence does not establish the intended meaning or supported behavior of those arguments.

reasoning

The strongest fit is a requirement that can be stated as a precise visible condition, such as a named error message appearing beside a field. This follows the document's recommendation to specify both the element and its context.

A screen assertion alone does not establish hidden application state or backend correctness. For detailed text comparisons, the file demonstrates extracting a value and applying a conventional framework assertion. Those checks can complement the AI interpretation.

alternatives

The source demonstrates TestDriver extract() followed by expect(message).toContain(...) when a detailed text comparison is needed. It also shows expect(result).toBeTruthy() around an AI assertion result.

These are companion approaches within the supplied examples. No competing product or independent comparison is documented, so comparative reliability and cost are unknown.

evidence

The supplied evidence consists of ai/skills/testdriver-assert/SKILL.md. Its revision-pinned original is [https://raw.githubusercontent.com/testdriverai/testdriverai/97d4d35d7727b2f83b1a73282aabf2e6e74824a2/ai/skills/testdriver-assert/SKILL.md].

The manifest records 8,627 bytes and SHA-256 7104f861da756c23339f0fa83aca1af7b96cea3e045085ccca78506229860674. Findings are based on this document; no SDK implementation, execution logs or measured results are supplied.

Access & freshness

costs

Pricing is unknown. The file shows an API-key-based setup but provides no subscription prices, usage rates, quotas, free allowance or billing rules.

Polling can invoke the AI assertion repeatedly for one condition. Whether those retries affect billing, and by how much, is unknown.

rights

No licence text or adjacent or parent licence notice is supplied. Permission to copy, modify or redistribute the skill is therefore unknown from this evidence.

The generated-file comment identifies assert.mdx as the source and says not to edit the generated file. It does not provide a licence grant.

freshness

The file was captured at 2026-11-16T01:30:02.230Z from repository revision 97d4d35d7727b2f83b1a73282aabf2e6e74824a2. This identifies the captured snapshot, not a package release or the document's publication date.

The evidence does not establish which released SDK version matches this documentation or whether the current main branch differs.

actions

Before adoption, obtain compatible SDK setup instructions, confirm account pricing and screen-data handling, and read the applicable licence notices.

Correct the instance assignment, include the polling helper and confirm the supported syntax for negative assertions. Then validate passing, failing and delayed conditions on the target application, including how connection or authentication errors are reported. These checks remain unperformed.

Evidence for this report

ai/skills/testdriver-assert/SKILL.mdselected · checked 2026-11-16