Skip to content

Commit 93d1909

Browse files
authored
Merge pull request #81 from gemini-testing/users/rocketraccoon/TESTPLANE-635.testing-library
Add docs for @testplane/testing-library
2 parents 408ae5c + bc358eb commit 93d1909

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/guides/how-to-add-testing-library.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88

99
To be able to use [queries][queries] from `testing-library` in Testplane tests, you only need to follow a few steps.
1010

11-
1. Install the npm package `'@testing-library/webdriverio'`
11+
1. Install the npm package `@testplane/testing-library` (our adapter package for the original testing-library)
1212

1313
```bash
14-
npm i -D @testing-library/webdriverio
14+
npm i -D @testplane/testing-library
1515
```
1616

1717
2. Include it in the Testplane config in the `prepareBrowser` section:
1818

1919
```javascript
2020
// .testplane.conf.js
21-
const { setupBrowser } = require("@testing-library/webdriverio");
21+
const { setupBrowser } = require("@testplane/testing-library");
2222

2323
module.exports = {
2424
prepareBrowser(browser) {
@@ -61,7 +61,7 @@ For a complete usage example, visit [this link](https://github.com/gemini-testin
6161
## Useful Links {#useful_links}
6262

6363
- [Testing-library][testing-library]
64-
- [WebdriverIO Testing Library](https://testing-library.com/docs/webdriverio-testing-library/intro)
64+
- [Testplane Testing Library](https://github.com/gemini-testing/testplane-testing-library)
6565

6666
[testing-library]: https://testing-library.com/
6767
[queries]: https://testing-library.com/docs/queries/about

i18n/ru/docusaurus-plugin-content-docs/current/guides/how-to-add-testing-library.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88

99
Для того чтобы появилась возможность использования [запросов (queries)][queries] из `testing-library` в testplane-тестах, необходимо выполнить всего несколько шагов.
1010

11-
1. Установите npm-пакет `'@testing-library/webdriverio'`
11+
1. Установите npm-пакет `@testplane/testing-library` (наша адаптация testing-library для testplane)
1212

1313
```bash
14-
npm i -D @testing-library/webdriverio
14+
npm i -D @testplane/testing-library
1515
```
1616

1717
2. Подключите реализацию в конфиге testplane в секции `prepareBrowser`
1818

1919
```javascript
2020
// .testplane.conf.js
21-
const { setupBrowser } = require("@testing-library/webdriverio");
21+
const { setupBrowser } = require("@testplane/testing-library");
2222

2323
module.exports = {
2424
prepareBrowser(browser) {
@@ -61,7 +61,7 @@ it("example", async ({ browser }) => {
6161
## Полезные ссылки {#useful_links}
6262

6363
- [Testing-library][testing-library]
64-
- [WebdriverIO Testing Library](https://testing-library.com/docs/webdriverio-testing-library/intro)
64+
- [Testplane Testing Library](https://github.com/gemini-testing/testplane-testing-library)
6565

6666
[testing-library]: https://testing-library.com/
6767
[queries]: https://testing-library.com/docs/queries/about

0 commit comments

Comments
 (0)