Download Latest Version v0.10.0 source code.zip (1.3 MB)
Email in envelope

Get an email when there's a new version of TestSprite

Home / v0.10.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-09-04 1.4 kB
v0.10.0 source code.tar.gz 2026-09-04 1.2 MB
v0.10.0 source code.zip 2026-09-04 1.3 MB
Totals: 3 Items   2.5 MB 0

Added

  • project create / project update --test-id-attributes <list>. Apps that tag their UI with their own attribute (data-element, data-cy, …) had no way to tell TestSprite, so exported test code located those elements by text chains or absolute xpath and broke on rerun. The new flag registers the project's test-hook attributes, highest priority first (--test-id-attributes data-element,data-testid); an element carrying one of them with a page-unique value is exported as page.locator('[data-element="…"]'), untagged elements keep the default role/label/text locators, and data-testid stays the built-in fallback. project update --clear-test-id-attributes reverts to the default (the two flags are mutually exclusive); project get prints the list as testIdAttrs: when the backend reports it. Names are validated client-side (bare attribute names only, max 10). V3-native projects only — a V2-mirrored project answers PRECONDITION_FAILED (test_id_attributes_native_only), and against a backend that predates the field the CLI answers UNSUPPORTED (exit 7, test_id_attributes_unsupported_backend) naming the fields the server did accept, rather than passing through the server's misleading "at least one field must be provided" 400. The onboarding skill now checks the app's source for its test-hook attribute and sets this during project setup.
Source: README.md, updated 2026-09-04