1.1.0 • Published 6 years ago

qa-utilities v1.1.0

Weekly downloads
11
License
MIT
Repository
github
Last release
6 years ago

test-utilities

Build Status Coverage Status

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')} />

1.1.0

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago