Skip to content

Commit 816809b

Browse files
committed
add badges to README
1 parent c3fee3c commit 816809b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# queryByRole
2+
3+
[![CI on main](https://github.com/mehm8128/query-by-role/actions/workflows/main.yml/badge.svg)](https://github.com/mehm8128/query-by-role/actions/workflows/main.yml)
4+
[![NPM Version](https://img.shields.io/npm/v/query-by-role)](https://www.npmjs.com/package/query-by-role)
5+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6+
27
This is a implementation of `queryByRole` for browser.
38

49
## Usage
510

611
You'll get the button whose accessible name is "Click!" from window with the following code.
12+
713
```ts
814
const targetWindow = createTargetWindow(window);
915
const buttonRoleElements = targetWindow.queryByRole("button", {

0 commit comments

Comments
 (0)