Skip to content

Commit 4cd75a0

Browse files
committed
add badges to README
1 parent c3fee3c commit 4cd75a0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
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", {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "query-by-role",
3-
"version": "0.1.0",
3+
"version": "0.1.2",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/mehm8128/query-by-role.git"

0 commit comments

Comments
 (0)