@@ -60,7 +60,7 @@ This module is distributed via [npm][npm] which is bundled with [node][node] and
6060should be installed as one of your project's ` devDependencies ` :
6161
6262```
63- npm install --save-dev webdriverio- testing-library
63+ npm install --save-dev @ testing-library/webdriverio
6464```
6565
6666## Usage
@@ -72,7 +72,7 @@ modifed to return WebdriverIO Elements. All the queries are async, including
7272queryBy and getBy variants, and are bound to ` document.body ` by default.
7373
7474```
75- const {setupBrowser} = require('webdriverio- testing-library');
75+ const {setupBrowser} = require('@ testing-library/webdriverio ');
7676
7777it('can click button', async () => {
7878 const {getByText} = setupBrowser(browser)
@@ -111,7 +111,7 @@ it('adds queries as element commands scoped to element', async () => {
111111Returns queries scoped to a WebdriverIO element
112112
113113```
114- const {within} = require('webdriverio- testing-library')
114+ const {within} = require('@ testing-library/webdriverio ')
115115
116116it('within scopes queries to element', async () => {
117117 const nested = await browser.$('*[data-testid="nested"]');
@@ -128,7 +128,7 @@ it('within scopes queries to element', async () => {
128128Lets you pass a config to dom-testing-library
129129
130130```
131- const {configure} = require('webdriverio- testing-library')
131+ const {configure} = require('@ testing-library/webdriverio ')
132132
133133beforeEach(() => {
134134 configure({testIdAttribute: 'data-automation-id'})
@@ -151,7 +151,7 @@ added by `setupBrowser` the global `WebdriverIO` namespace will need to be
151151modified. Add the following to a typescript module:
152152
153153```
154- import {WebdriverIOQueries} from 'webdriverio- testing-library';
154+ import {WebdriverIOQueries} from '@ testing-library/webdriverio ';
155155
156156declare global {
157157 namespace WebdriverIO {
@@ -165,7 +165,7 @@ If you are using the `@wdio/sync` framework you will need to use the
165165` WebdriverIOQueriesSync ` type to extend the interfaces:
166166
167167```
168- import {WebdriverIOQueriesSync} from 'webdriverio- testing-library';
168+ import {WebdriverIOQueriesSync} from '@ testing-library/webdriverio ';
169169
170170declare global {
171171 namespace WebdriverIO {
@@ -189,10 +189,10 @@ MIT
189189[ build-badge ] : https://github.com/olivierwilkinson/webdriverio-testing-library/workflows/webdriverio-testing-library/badge.svg
190190[ build ] : https://github.com/olivierwilkinson/webdriverio-testing-library/actions?query=branch%3Amaster+workflow%3Awebdriverio-testing-library
191191[ version-badge ] : https://img.shields.io/npm/v/olivierwilkinson/webdriverio-testing-library.svg?style=flat-square
192- [ package ] : https://www.npmjs.com/package/webdriverio- testing-library
193- [ downloads-badge ] : https://img.shields.io/npm/dm/olivierwilkinson/webdriverio- testing-library.svg?style=flat-square
194- [ npmtrends ] : http://www.npmtrends.com/webdriverio- testing-library
195- [ license-badge ] : https://img.shields.io/npm/l/webdriverio- testing-library.svg?style=flat-square
192+ [ package ] : https://www.npmjs.com/package/@ testing-library/webdriverio
193+ [ downloads-badge ] :https://img.shields.io/npm/dm/@ testing-library/webdriverio .svg?style=flat-square
194+ [ npmtrends ] : http://www.npmtrends.com/@ testing-library/webdriverio
195+ [ license-badge ] : https://img.shields.io/npm/l/@ testing-library/webdriverio .svg?style=flat-square
196196[ license ] : https://github.com/olivierwilkinson/webdriverio-testing-library/blob/master/LICENSE
197197[ prs-badge ] : https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
198198[ prs ] : http://makeapullrequest.com
0 commit comments