File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 3
3
[ ![ NPM Package] ( https://badge.fury.io/js/pptr-testing-library.svg )] ( https://www.npmjs.com/package/pptr-testing-library )
4
4
[ ![ Build Status] ( https://travis-ci.org/patrickhulce/pptr-testing-library.svg?branch=master )] ( https://travis-ci.org/patrickhulce/pptr-testing-library )
5
5
[ ![ Coverage Status] ( https://coveralls.io/repos/github/patrickhulce/pptr-testing-library/badge.svg?branch=master )] ( https://coveralls.io/github/patrickhulce/pptr-testing-library?branch=master )
6
- [ ![ Commitizen friendly] ( https://img.shields.io/badge/commitizen-friendly-brightgreen.svg )] ( http://commitizen.github.io/cz-cli/ )
7
6
[ ![ Dependencies] ( https://david-dm.org/patrickhulce/pptr-testing-library.svg )] ( https://david-dm.org/patrickhulce/pptr-testing-library )
8
7
9
8
[ puppeteer] ( https://github.com/GoogleChrome/puppeteer ) + [ dom-testing-library] ( https://github.com/kentcdodds/dom-testing-library ) = 💖
@@ -50,9 +49,11 @@ const $form = queries.getByTestId(document, 'my-form')
50
49
51
50
## API
52
51
53
- - ` getDocument(page: puppeteer.Page) `
54
- - ` extendObjectWithTestingUtils(handle: ElementHandle) `
55
- - ` queries `
52
+ See [ dom-testing-libary] ( https://github.com/kentcdodds/dom-testing-library#usage ) API for more. All ` get* ` /` query* ` methods are supported.
53
+
54
+ - ` getDocument(page: puppeteer.Page): ElementHandle ` - get an ElementHandle for the document
55
+ - ` extendObjectWithTestingUtils(handle: ElementHandle): ElementHandle & TestingUtils ` - extend the input object with
56
+ - ` queries: TestingUtils ` - the query subset of ` dom-testing-library ` exports
56
57
- ` queryByPlaceholderText `
57
58
- ` queryAllByPlaceholderText `
58
59
- ` getByPlaceholderText `
@@ -77,3 +78,11 @@ const $form = queries.getByTestId(document, 'my-form')
77
78
- ` queryAllByTitle `
78
79
- ` getByTitle `
79
80
- ` getAllByTitle `
81
+
82
+ ## Special Thanks
83
+
84
+ [ dom-testing-library] ( https://github.com/kentcdodds/dom-testing-library ) of course!
85
+
86
+ ## LICENSE
87
+
88
+ MIT
You can’t perform that action at this time.
0 commit comments