@andes-ng/testing
v0.3.0
Published
Testing helpers for Andes NG components.
Maintainers
Readme
@andes-ng/testing
Stable test helpers for applications that consume Andes NG. Helpers query Andes public selectors and semantics, never implementation details.
Helpers
getAndesButtonByName(container, name): returns the native<button>inside theandes-buttonwhose text isname, or throws if there is none.
import { getAndesButtonByName } from '@andes-ng/testing';
getAndesButtonByName(fixture.nativeElement, 'Save').click();Harnesses and query helpers are added together with the components they support, so a helper is never published before the contract it queries.
