1.1.0 • Published 6 years ago
qa-utilities v1.1.0
test-utilities
A collection of test utilities for web applications.
select(qaTag: string): string
Takes in a string argument of your qa selector and returns a CSS selector.
Example return value:
[data-qa="get-react-component__works"]
qa(qaTag: string): object
Takes in a string argument of your qa tag and returns an object to add to your React component.
Example return value:
{ 'data-qa': 'get-react-component__works' }
Example usage:
<SomeComponent {...qa('get-react-component__works')} />